CSS minifier
Paste CSS to remove comments and collapse whitespace for a smaller file. A fast, conservative minifier that runs entirely in your browser.
Loading tool…
What the CSS minifier does
It removes comments, collapses runs of whitespace, and trims spaces around braces, colons, and semicolons to reduce byte size while keeping rules intact.
Why minify CSS
Smaller stylesheets download and parse faster. Minification is a simple win for page performance, especially on mobile connections.
Conservative by design
This minifier only strips whitespace and comments. It does not merge rules, shorten colors, or rewrite selectors, so the risk of breaking your styles is minimal.
How to css minifier
- Paste your CSS into the input pane.
- Click Convert to minify it.
- Copy the compact output or download it as a .css file.