Minify CSS instantly
Compress your CSS by removing comments, collapsing whitespace, and optimizing syntax. All processing happens in your browser.
CSS Minifier
Paste your CSS code to minify it and see compression statistics.
Ready to Minify CSS
Enter CSS code above and click Minify to compress your stylesheet and reduce file size.
What this tool does not do
- Does not validate CSS syntax or fix errors in your code.
- May not handle all CSS @-rules and advanced syntax perfectly.
- Designed for standard CSS, not preprocessors (SCSS, Less, Stylus).
How It Works
Paste your CSS
Enter or paste your CSS code into the input area.
Click Minify
Get instant compression and savings statistics.
Copy the result
Copy the minified CSS or download it as a file.
Frequently Asked Questions
What does the CSS minifier do?
It removes CSS comments, collapses multiple spaces into one, removes spaces around special characters like curly braces and semicolons, and removes trailing semicolons before closing braces.
Can I minify multiple CSS files at once?
You can paste CSS from multiple files into the textarea and minify it all at once. The tool processes all CSS in the input.
Is my CSS uploaded to a server?
No. All processing happens entirely in your browser. Your code never leaves your device.