What does the HTML Minifier remove?
It can remove comments, collapse repeated whitespace, trim the document, and remove spaces between tags. It preserves script, style, textarea, and pre blocks to avoid changing code or preformatted content.
Can minifying HTML change how a page looks?
It can in whitespace-sensitive layouts or templates. Review the output and test the rendered page, especially for inline text, email HTML, and framework templates.
Does this tool upload my HTML?
No. HTML minification runs locally in your browser, so pasted markup is not sent to a server.
Should I use this instead of a build tool minifier?
Use this for quick snippets and manual debugging. For production websites, a build pipeline can provide more complete optimization, source handling, and repeatability.
Can I minify email HTML?
Yes, but test the final email carefully. Some email clients are sensitive to table markup, conditional comments, and spacing around inline text.
Why are script and style blocks preserved?
Whitespace and comments inside JavaScript, CSS, textarea, and preformatted blocks may be meaningful. The tool protects those blocks while compacting surrounding markup.