No uploads · runs in browser
HTML Formatter
Pretty-print compressed HTML or strip it to one line for deployment.
Favorite it to find it fast on home
When to use it
Indent minified HTML until it is readable
Strip comments and whitespace before deploy
Clean up markup without touching inline scripts
How to use it
1Step 1Paste your text into HTML input to start
2Step 2Press Beautify and the result appears below
3Step 3Use the copy button to take the result anywhere
If the result looks off
The result looks cut off
Use the copy button to get the full result.
My input disappeared
It is saved on this device. Clearing browser storage removes it too.
Frequently asked questions
Will it break inline scripts?
No. Content inside script, style, pre, and textarea is left untouched.
Will inline scripts break?
Content inside script, style, pre, and textarea is left untouched, so inline JavaScript is safe.