HTML Minifier
Minify HTML by stripping comments and collapsing whitespace, entirely in your browser.
Examples
Collapsing whitespace and removing comments
<div> <!-- comment --> <p>Hello</p> </div>
<div><p>Hello</p></div>
FAQ
No. Minification runs entirely in your browser.
No — minification only removes whitespace and comments that don't affect rendering. It doesn't change the page's structure or content.
Related Tools
Guide
Paste your HTML into the input box and click Minify to get a compacted version, ready to copy.