How it works
The minifier removes what browsers ignore anyway: HTML comments (except conditional comments, which some legacy setups still need) and the whitespace between tags — the indentation and blank lines that make source readable and files fat. Crucially, it first sets aside the contents of <script>, <style>, <pre> and <textarea> blocks and restores them byte-for-byte afterwards: whitespace is meaningful in all four, and a minifier that cannot tell the difference breaks pages. Text inside your content keeps single spaces, so nothing reflows.
Frequently asked questions
How much will I save?
Heavily indented templates typically shrink 10–25%. On its own that is modest; combined with server compression it compounds nicely.
Will it break my layout?
Whitespace between inline elements can matter visually (the classic gap between inline-block items). If your design depends on those gaps, they were fragile anyway — but do eyeball the page after minifying, as with any optimization.
Why protect <pre>?
Because <pre> means “preserve this formatting”. Minifying inside it would rewrite code samples and ASCII art. It stays exactly as written.
Your privacy
This tool runs entirely in your browser, on your own device. Nothing you type, paste or open here is uploaded to a server, saved, or shared — close the tab and it is gone. That is the standing rule for every tool on Just SEO Tools.