CSS Minify
Shrink CSS to a smaller version.
Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.
CSS Minify
How to use this tool
- Enter your values in the fields above.
- Press Generate to see the result.
- Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.
Worked example
The sample stylesheet (35 characters with line breaks) minifies to “body{color:red;margin:0}” (24 characters).
What this tool does not do / Limits
This is a simple minifier for everyday stylesheets. It does not rewrite values, merge rules, or guarantee identical rendering for exotic CSS tricks.
Frequently asked questions
Is the minified CSS safe to use?
For normal stylesheets, yes. Keep the original file as your source and use the minified copy for delivery.
Does it remove comments?
Yes. All block comments are removed, including notes you may want to keep in the source.
Related tools
JSON Studio
Format, validate, minify, query and compare JSON in your browser, with precise line-and-column errors.
LiveRegex Tester
Test patterns against sample text with match highlighting, capture groups and a safe one-second timeout.
LiveSecurity Header and DNS Checker
Check HSTS, CSP and other security headers, TLS details, and DNS/email authentication records (SPF, DKIM, DMARC).
Live