What this does to your stylesheet
It removes comments and collapses whitespace around selectors, braces and property separators. For anything beyond a quick one-off - production builds, especially large stylesheets - a proper build tool (like the minifier built into most modern bundlers) will do a more thorough job, including removing unused rules. Keep your original, readable CSS file as the source of truth either way.
Why whitespace and comments make up most of an unminified file's size
Indentation, line breaks, and comments exist purely to help a human read the file - a browser's CSS parser needs none of them, so stripping them out shrinks the file without changing what it actually does, which is why this kind of whitespace-only minification is both safe and effective as a first pass.
Why this intentionally stops short of what a full build tool does
A production-grade minifier can also merge duplicate rules, shorten color values, and remove selectors that don't match anything in your actual HTML - but that last step specifically requires analyzing your HTML and JavaScript alongside the CSS, which is a much bigger task than a simple paste-and-minify tool can safely attempt, since getting it wrong could silently break your page's styling.
Why keeping the original readable file matters even after minifying
A minified stylesheet with no line breaks or comments is effectively unreadable for future edits - treating the minified output as a build artifact for production, while always editing and maintaining the original readable version, is the same workflow any proper build pipeline follows automatically.
How much can minifying save
For a typical hand-written stylesheet, removing comments and whitespace often cuts the file size by around 20 to 40 percent before any compression. Servers that also use Gzip or Brotli shrink it much further, so minifying and compression work together rather than replacing each other.
How to use the minified file safely
- Paste your CSS, run the minifier, and copy the result.
- Save it as a separate file, for example
style.min.css, and keep your readable original. - Point your page at the minified file, then check the pages visually to confirm nothing changed.
- Clear any cache or CDN copy so visitors get the new version.
When a build tool is the better choice
If your project already has a build step, tools such as esbuild, cssnano or Lightning CSS minify automatically on every build, and they are free. A paste-and-minify tool is most useful for small projects, quick fixes, WordPress customizations, or when you do not have a build pipeline at all.
Free vs paid
CSS minification is a solved problem with excellent free tools, so there is no reason to pay for it. Paid performance plugins mostly bundle minification with caching and image optimization, which is convenient but not necessary if you only need smaller CSS.