CSS Minifier
Minify CSS by stripping comments, whitespace and empty rules.
Every byte of CSS blocks rendering: browsers won't paint until stylesheets download and parse. Minification is the zero-risk part of that optimization — comments, indentation and formatting whitespace exist for humans and can vanish from production files without changing a single computed style.
Paste CSS and get a minified version with comments stripped, whitespace collapsed, redundant semicolons removed and empty rules dropped — along with a before/after size comparison. Typical hand-written CSS shrinks 20–40%.
How to use CSS Minifier
- 1
Paste your CSS
A file's contents or a style block.
- 2
Review the minified output
Semantics preserved, formatting removed.
- 3
Copy the result
The size saving is shown alongside.
Features
- Strips comments and collapses whitespace
- Removes empty rules and trailing semicolons
- Shows before/after byte sizes
Frequently asked questions
Common mistakes to avoid
- Minifying your only copy — keep the readable source and minify at deploy time.
- Minifying CSS containing template-language placeholders ({{ }}) that whitespace changes can break.
Get new tools in your inbox
One email a month with new tools, guides, and updates. No spam, unsubscribe anytime.

