Stylesheets are render-blocking: the browser will not paint your page until the CSS arrives and parses, so every unnecessary byte delays what your visitor sees. Our free CSS Minifier trims your stylesheets down to the essentials — comments gone, whitespace collapsed, spaces around braces, colons and semicolons removed, and the redundant semicolon before each closing brace dropped. Quoted strings are protected first, so tricks like content:”/*” survive untouched. Free forever, no signup required.
The whole process runs in your browser, so your stylesheets are never uploaded — paste proprietary theme CSS with confidence. You get the original and minified sizes in bytes plus the percentage saved, and one click copies the result or downloads it as a .css file ready to replace the original on your server.
Run your theme CSS, plugin overrides and custom styles through it before every deploy, or paste the output into a Customizer “Additional CSS” box where size limits matter. Pair it with the HTML and JS minifiers for a fully trimmed front end.
CSS Minifier
Compress CSS by removing comments and unnecessary whitespace.
How to use
- Paste your CSS into the text box.
- Click Minify CSS.
- Review the byte counts and percentage saved.
- Click Copy Minified or Download .css to get the result.
- Replace the original stylesheet (keep a backup of the readable version).
- Reload your site and confirm the styling looks identical.
FAQs
Is it safe for complex CSS with variables and calc()?
Yes. The minifier only removes comments and redundant whitespace; it never rewrites values, selectors, custom properties or calc() expressions. Quoted strings are extracted before processing so comment-like text inside them is never stripped.
Should I keep the original CSS file too?
Absolutely. Minified CSS is for production; keep the readable original for future edits, minify again after each change, and consider adding a version query string (style.min.css?v=2) so visitors get the fresh file.
Why does my CSS barely shrink sometimes?
If the stylesheet was already written compactly or generated by a build tool, there is little whitespace left to remove — the tool still strips comments and trailing semicolons, but the saving will be small. Heavily commented, indented source files shrink the most.