HTML Formatter

Indent and beautify minified or messy HTML so the structure of your markup is clear.

Input
Output
Ad · in-content

About the HTML Formatter

Generated or minified HTML is hard to read and edit. This formatter re-indents your markup based on tag nesting, making it easy to scan templates, email HTML and scraped pages.

Formatting happens locally for privacy and speed.

How to use the HTML Formatter

  1. 1Paste HTML into the editor.
  2. 2Click “Format HTML”.
  3. 3Copy the indented markup.

Key benefits

  • Readable, indented markup.
  • Great for templates and emails.
  • Private and instant.

Real-world examples

Beautify email HTML

Indent a minified email template.

Frequently asked questions

Does it fix invalid HTML?+

It indents based on tags but does not correct invalid markup.

Related tools

Ad · sticky-mobile