CSS Minifier
Strip comments and unnecessary whitespace from CSS to shrink file size, with a live byte-savings summary. Runs entirely in your browser.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
How it works
- Paste your CSS.
- Comments and unnecessary whitespace are stripped instantly.
- Copy the minified result, and see how many bytes you saved.
FAQ
Does it change how my CSS works?
No — it only removes comments and unnecessary whitespace/semicolons. Selectors, properties, and values are untouched.
Are there edge cases it might get wrong?
This uses straightforward pattern-based minification rather than a full CSS parser, so an unusual edge case — like whitespace inside a quoted string value — could theoretically be affected. For most everyday CSS it works cleanly.
Is my CSS uploaded anywhere?
No — minification happens entirely in your browser.
How we compare
| Feature | Online Tool Store | Build tool minification | Manual whitespace removal |
|---|---|---|---|
| No build setup needed | ✓ | ✗ | ✓ |
| Instant, for a one-off snippet | ✓ | ✗ | ✗ |
Setting up a build tool just to minify one CSS snippet is overkill. CSS Minifier gets you a smaller file instantly.