Minify CSS Online
Paste CSS or upload a file and click "Minify": everything the code doesn't need — comments, indentation, line breaks — is removed, so files are smaller and pages load faster. The tool shows the size before and after.
Besides removing white space and comments, colours and numbers are shortened (#ffffff → #fff, 0.5 → .5) and, if you choose, rules with the same selectors or properties are merged.
Why Use This Tool?
- Smaller files, faster loading
- Size before and after at a glance
- Syntax errors shown with line and column
- Free, no registration, works in your browser
How to Minify CSS
- Paste your CSS or upload a file
- Choose the options and click "Minify"
- Copy the minified code or download it
Frequently Asked Questions
Is this tool free?
Yes, it is completely free, with no registration and no limits.
Are license comments kept?
Comments starting with /*! are kept when "Remove comments" is off; switch it on to remove every comment.
Is my code sent anywhere?
No. Everything runs in your browser: the code you paste or the file you choose never leaves your device.