Back to Free Tools
FREE TOOLS
HTML minifier
Remove HTML comments with optional conservative whitespace collapse.
HTML
HTML
Browser only
Your input and output are processed in this browser. They are not uploaded for processing. No account is required.
This tool needs JavaScript. If it does not load, refresh the page and try again.
How to use this tool
- Paste HTML source.
- Leave whitespace unchanged by default, or enable ordinary whitespace collapse if appropriate for the layout.
- Run the tool and review or download the minified source; it is not sanitized HTML.
Examples
<p>Hello</p><!-- comment --> →<p>Hello</p>
Limitations
At most 200,000 characters and 100 nesting levels.
HTML parser normalization may change quoting or implied markup.
Not an HTML sanitizer; scripts in downloaded source are preserved.
Related tools
No items found.