Developer tools
HTML Beautifier
Format messy or minified HTML into clean, indented, readable code. Free online HTML formatter.
How to use the HTML Beautifier
-
1
Paste your HTML.
-
2
Pick the indentation.
-
3
Click Beautify and copy the result.
About this tool
Paste minified or messy HTML and get consistently indented, readable markup. Choose two or four spaces, or tabs.
Frequently asked questions
Does formatting change how the page works?
It only changes whitespace between tags, which rarely affects layout. Check inline elements if spacing matters.
Can I format inline CSS and JS?
Yes. Script and style blocks are formatted too.