How to beautify and format HTML online

Paste minified or messy HTML — get indented, readable markup.

HTML from view-source or email templates arrives as one unreadable line. The HTML Beautifier adds indentation and line breaks so you can debug structure quickly.

Try it — paste HTML to format

How it works

  1. Paste HTML — minified page or template fragment.
  2. Formatted output — nested tags indented.
  3. Copy — readable markup for review or docs.

Indentation rules

Block elements get new lines and nested indentation. Inline elements stay compact where possible.

Minify for production

After editing, compress with the HTML Minifier before deployment.