Minify HTML by removing comments and collapsing whitespace
Free HTML minifier. Remove comments, collapse whitespace, and reduce your HTML file size. See exact byte savings. Runs entirely in your browser.
It removes comments, collapses whitespace, and trims unnecessary characters from HTML to reduce file size without changing how it renders.
Yes. Browsers parse minified HTML identically to formatted HTML. The visual output is the same.
Yes. <!--[if IE]> conditional comments are preserved since they affect rendering in older browsers.
Yes, for performance. Most modern frameworks and CDNs do this automatically, but you can also do it manually.
No. All processing happens locally in your browser. Nothing is transmitted.
Get all tools in your browser
Install the Chrome extension for one-click access to every tool — no tab switching needed.
Last updated: January 2025