HTML Formatter

Format and minify HTML — with proper tag indentation

Free Client-Side No Login No Storage
Loading tool...

How to Use the HTML Formatter

  1. Paste your HTML.
  2. Choose Format or Minify mode.
  3. Select indent style and click Format.

Indents nested tags, handles self-closing and void elements, or minifies by stripping comments and whitespace.