Paste or open a CSS file and get a minified version with comments, line breaks, extra spaces and final semicolons removed, plus a before-and-after size comparison.
How to minify CSS
- Paste your CSS or open a file.
- Press Minify (it also updates as you type).
- Copy the result or download it.
Where to use minified CSS
Serve minified CSS in production and keep the readable original for editing. In WordPress, many caching plugins minify automatically, but a hand-minified critical CSS block is useful for inlining in the page head.
Frequently asked questions
Can I un-minify CSS?
Yes. Use the CSS Beautifier to format it again; comments that were removed cannot be restored.
Updated October 2026 · Built and tested by Sharjeel Tahir · How our tools are tested