How to minify CSS
- Paste your CSS.
- Check the minified result and the size saved.
- Copy it or download it.
About this tool
Shrink a stylesheet for faster pages. The csso minifier removes comments and spaces, writes colors in their shortest form, drops zero units, and merges rules where the result is identical. You see the size before and after. A broken rule is reported with its line and column.
Common questions
Does minifying change how the page looks?
It should not. csso only makes changes that give the same result in the browser.
How much will I save?
It depends on your file. The page shows the exact bytes and percentage for your CSS.
Does it merge duplicate rules?
Yes, where the order of rules does not affect the outcome.
Is it free to use?
Yes. There's no sign-up, and you can use it as often as you like.
Is my text uploaded anywhere?
No. This tool runs inside your browser, so what you enter stays on your device.
Do I need to install anything?
No. It works in your browser on a computer or a phone.