The HTML mode strips comments (except IE conditional comments), then collapses every run of whitespace outside <pre>, <textarea>, <script>, and <style> tags down to a single space and trims the ends — those four tags' contents are carved out first and pasted back untouched, since whitespace inside them can be visible text or syntactically significant code. The CSS mode strips /* */ comments, removes whitespace around { } : ; ,, drops the redundant semicolon before a closing brace, and removes empty rule blocks — while protecting url(...) values and quoted strings from having their internal whitespace collapsed. Byte sizes are measured with the same UTF-8 encoding a real HTTP response uses, not plain character counts, so the savings percentage is accurate for non-ASCII content too. Everything runs in your browser; nothing you paste is sent to a server.
When minifying is worth it
Minify what the browser must download before it can draw the page: the HTML document and any CSS in the head. Hand-written or CMS-generated markup is full of indentation and comments that cost bytes on every visit. If your site already goes through a build step that minifies for production (most modern frameworks do), you will see little gain here; the tool is most useful for hand-edited pages, email templates, CSS snippets pasted into a CMS, and one-off pages with no build pipeline.
A small example
The CSS below is 81 bytes before minifying and 52 bytes after, roughly a 36% saving:
/* buttons */
.btn {
color: #fff;
background: #0a66c2;
padding: 8px 16px;
}.btn{color:#fff;background:#0a66c2;padding:8px 16px}What minifying will not do
It does not rename classes, merge rules, remove unused CSS or reorder anything, so the page renders exactly as before. The bigger speed wins are usually elsewhere: oversized images, render-blocking scripts and slow server responses. Run the Page Speed Check or the Core Web Vitals Checker to see what is actually slowing a page, and read Core Web Vitals explained for what the numbers mean.