Developer tool
HTML Formatter and Minifier
Paste HTML and choose Format or Minify. The parser runs only in your browser.
Runs in your browser. No upload.
Values are processed locally in this browser.
Result
About this tool
HTML Formatter and Minifier made simple.
The minifier keeps comments and does not minify scripts or styles inside the HTML. Whitespace collapsing can affect spacing in visible text, so compare the output and keep your original before replacing a page. This is not a sanitizer.
Common questions
About HTML Formatter and Minifier.
How do I use HTML formatter?
Paste HTML and choose Format or Minify. The parser runs only in your browser.
Is my data uploaded to a server?
No. This tool runs locally in your browser. Your input is not uploaded.