CSS Minifier
- Free forever
- No sign-up
- Runs in your browser
Shrink CSS for faster websites: remove spaces and comments, shorten colours and values, and merge duplicate rules.
About CSS Minifier
Shrinks a stylesheet before it goes live, using the CSSO optimiser. Beyond removing spaces and comments, it shortens colours and values, such as #ffffff to #fff and 0px to 0, and can merge duplicate selectors and repeated declarations. The Original, Minified and Smaller figures show what you saved, and licence comments can be kept so legal notices stay in the file.
How to use CSS Minifier
- Paste your stylesheet into the Your CSS box.
- Leave Merge and reorder rules ticked for the smallest file, and keep licence comments if you need them.
- Click Minify CSS and check the Original, Minified and Smaller figures.
- Click Copy, or Download .css to save the file as styles.min.css.
How your data is handled
Minifying runs in your browser with the CSSO library, loaded from our own site the first time. Your stylesheet isn't uploaded or stored.
Limits and accuracy
- Broken CSS isn't always reported: an unclosed rule can be dropped quietly, so compare the result.
- SCSS and LESS aren't supported; variables and mixins can vanish or cause an error, so compile them first.
- No source map is created, so browser developer tools will point to the single minified line.
Questions and answers
What does Merge and reorder rules do?
It combines duplicate selectors and repeated declarations to save more space. It's designed to keep the same result, but if anything looks different afterwards, untick it and minify again for a lighter clean-up.
Which comments are kept?
Comments that start with /*!, usually licence notices, are kept while Keep licence comments is ticked. All other comments are removed.
Is my CSS uploaded?
No. Minifying happens in your browser, so your code isn't sent to SAA Tool or stored anywhere.
Do I need to sign up?
No. CSS Minifier is free with no sign-up, no login and no daily limit, and there's nothing to install. It works on a phone as well as a PC.
How much smaller will my CSS get?
Usually 20 to 40%: comments, whitespace and redundant rules go. The result shows both sizes. Keep the original for editing; minify only the copy you serve.