HTML Formatter
Re-indent HTML markup so nesting is easy to read.
Runs locally · Nothing uploaded
HTML input
Formatted HTML
Result will appear here…Advertisement
About HTML Formatter
Formats HTML with consistent indentation, one element level per step, making minified or copy-pasted markup readable again. Inline elements and preformatted content are treated sensibly so formatting does not change rendering. Works on fragments as well as full documents.
Related tools
Web & CSSRuns locally in your browser.HTML MinifierStrip whitespace and comments from HTML to reduce its size.Web & CSSRuns locally in your browser.HTML PreviewerPaste HTML and render it instantly in a sandboxed preview.JSON & DataRuns locally in your browser.XML FormatterPretty-print XML with consistent indentation and one element per line.