HTML Beautifier
Minified markup, template output and HTML pasted out of a page inspector all tend to arrive as one dense block. Indenting it properly makes the nesting visible, which is what you need when you are hunting for an unclosed tag or working out where a section begins.
Paste the markup in and get it back with each level of nesting on its own line.
Runs in your browser. HTML Beautifier processes your input on your own device. Nothing you enter or upload is sent to a server.
How to use the HTML Beautifier
- Paste your HTML into the input area.
- Run the formatter.
- Copy the indented markup.
Frequently asked questions
Does formatting change how the page renders?
It only changes whitespace between tags. Be aware that whitespace is meaningful inside elements like <pre> and <textarea>, and between inline elements, so re-indenting can shift rendering in those specific cases.
Is my markup uploaded?
No. Formatting happens in your browser.
Will it fix broken HTML?
No. It formats what you give it. Indenting the markup often makes a missing closing tag obvious, but the tool does not repair it for you.