Formatters tool
✦ Browser-firstHTML Beautifier
Indent and tidy messy HTML.
About this tool
Re-indent HTML so the structure is easy to read. Inline elements, pre blocks, scripts and styles are left intact.
How to use the HTML Beautifier
- Paste messy or minified HTML.
- Choose Beautify to indent or Minify to compress.
- Copy the result.
Common uses
- Reading minified markup
- Cleaning email templates
- Reducing page weight
HTML Beautifier questions
Will minifying break my page?
Normally not, but check pages that rely on whitespace inside pre or inline text.
Does it fix invalid HTML?
It formats what you give it and does not repair structural errors.
Is my code uploaded?
No, it stays in your browser.