Skip to content
Jellykit

HTML Beautifier

Beautify minified or messy HTML with one element per line and consistent indentation. Keeps inline tags, pre blocks and scripts intact. Free HTML formatter.

Runs in your browser. Nothing is uploaded.

About HTML Beautifier

HTML Beautifier re-indents markup so the nesting is visible: block elements go on their own lines and children are indented one level, while inline tags such as b, a and span stay inside their line of text.

Use it to read the source of a minified page, tidy an email template or clean up HTML pasted from a WYSIWYG editor. Whitespace inside pre and textarea elements is preserved exactly.

How to use HTML Beautifier

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. Adjust the options. The result updates as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Will it fix broken HTML?

No. It only changes whitespace. Unclosed tags stay unclosed, although the indentation often makes them easy to spot.

Can I minify it again afterwards?

Yes, use the HTML Minifier.

Is HTML Beautifier free and private?

Yes. HTML Beautifier is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all developer tools →