CSS Minifier
Shrink CSS for production by removing whitespace and comments.
Minify CSS for Performance
CSS blocks rendering until it is downloaded and parsed, so smaller stylesheets mean faster first paint. This minifier removes comments, collapses whitespace, and strips the last semicolon in each rule to produce the smallest valid output.
Optimisations applied
- Comment blocks removed
- Whitespace around { } : ; , collapsed
- Redundant final semicolons dropped
- Line breaks and indentation removed
Safe and reversible
Minified CSS behaves identically to the original â only the formatting is stripped. Keep your source file readable and minify only the production copy.
Part of a build pipeline
For large projects, minification usually runs automatically as part of a build step. This tool is perfect for quick one-off minification, optimising a small stylesheet, or checking how much weight your CSS carries before you ship it.
100% Private & Processed Locally
Every conversion on this page runs entirely inside your browser using JavaScript. Your data is never uploaded to a server, logged, or stored â making this tool safe even for sensitive payloads such as API responses, configuration files, and access tokens.
Because there is no network round-trip, conversions are instant and work even when you are offline. It is free to use with no sign-up, no rate limits, and no ads injected into your output.
Frequently Asked Questions
Common questions about the CSS Minifier.