HTML Beautifier

Paste minified or untidy HTML and get it back neatly indented.

How this is worked out

The beautifier splits the HTML into tags, comments and text, puts block elements on their own lines, indents children one level deeper, keeps inline elements (links, bold, spans) on the same line as their text, and leaves the contents of script, style, pre and textarea alone. It is a formatter, not a validator: broken markup is laid out as written. For a smaller file use the HTML Minifier.

Related tools: Html Minifier, Html Editor, Html To Jsx Converter.

Something not working on this page? Tell me through the Contact page: that is how I find out what is broken and fix it.