HTML Formatter

Paste minified or messy HTML and indent it. Formatting runs locally, which is useful for email templates, widget snippets, and copied markup.

How to use it

  1. Paste an HTML snippet.
  2. Run Format to indent the tags.
  3. Copy the beautified markup.

Useful for

  • Read a minified widget
  • Indent nested tags
  • Clean markup before a diff

Related tools

Questions about HTML Formatter

Does this validate HTML? +

It formats structure and indentation. It is not a full HTML validator.