CSS Minifier
Every extra byte of CSS slows your page. Paste your stylesheet here to strip comments and unneeded whitespace, then see exactly how much smaller the file got with the size saving and percentage shown.
How to use
- Paste your CSS into the first box.
- Click Minify CSS.
- Copy the minified result and check the size saving.
Tips
- Always minify a copy and keep the readable source file for future edits.
- The tool preserves the CSS meaning, but test the page after deploying minified code.
- Combine minification with compression on the server (gzip or brotli) for the biggest saving.
- Do not minify twice - a second pass gains nothing and can be harder to debug.
Note: Minification here removes comments and safe whitespace only — it does not rename classes or change values, so the output behaves exactly like the input.
Frequently Asked Questions (FAQ)
What does the CSS minifier do?
It strips comments and unnecessary whitespace from pasted CSS and shows the size saving and percentage instantly.
Will minifying change how my CSS works?
No. It only removes what is not needed, so the styles behave exactly the same.
Should I minify my only copy of the CSS?
No. Always minify a copy and keep the readable source file for future edits, then test the page after deploying the minified code.
Does minification replace server compression?
No — use both. Combine the minified CSS with gzip or brotli compression on the server for the biggest saving.