Free CSS Minifier
Reduce CSS file size by removing comments and collapsing whitespace, while keeping the spaces that matter (like inside calc() and complex selectors) so your styles still work. Paste, minify and copy — locally in your browser.
- 100% free
- Private & safe
- Runs in your browser
Why use CSS Minifier?
CSS Minifier is a quick, no-nonsense developer utility that runs entirely client-side, so your code and data never leave your machine.
- Runs instantly in your browser — nothing to install, nothing uploaded.
- Completely free, with no account, no watermarks and no usage limits.
- Input/Output: CSS
- Paste your CSS.
- Works on any device — desktop, tablet and phone — and is fully keyboard accessible.
How to use CSS Minifier
- Paste your CSS.
- Click Minify.
- Comments and extra whitespace are removed.
- Copy or download the minified CSS.
Examples
- Shrinking a stylesheet before deploy.
- Inlining critical CSS.
Supported formats & limits
- Input/Output: CSS
Limitations
- Does not merge or reorder rules, or rename selectors.
Frequently asked questions
Will it break calc() or selectors?
No — it keeps the spaces required around +, >, ~ and inside calc().
Uploaded?
No — it runs in your browser.
Does it change my colours or units?
No — values are left as-is; only whitespace and comments are removed.
Was this tool helpful?
Related tools
HTML MinifierShrink HTML by removing comments and unnecessary whitespace.JavaScript MinifierReduce JavaScript size by removing comments and whitespace.CSS FormatterBeautify and indent minified or messy CSS.CSS Gradient GeneratorDesign linear and radial CSS gradients with a live preview and copy the code.