About CSS minification
A CSS minifier removes comments, whitespace and unnecessary characters from CSS to make stylesheets smaller and faster to load, without changing how they style your page. Paste your CSS, minify it, and copy the compact result for production. It runs entirely in your browser.
How CSS Minify works
How to minify CSS
- Paste your CSS in the box above.
- Click minify to strip comments and collapse whitespace.
- Copy the smaller CSS into your stylesheet or build.
What gets removed
Comments, spaces, tabs and newlines are removed, and the final semicolon in each rule can be dropped — all without altering the styles themselves.
Why minify CSS
Smaller stylesheets download faster, improving page speed and Core Web Vitals. Keep the readable source for editing and ship the minified version.
What gets stripped
| Removed | Effect |
|---|---|
| Comments | Smaller file, identical styles |
| Whitespace & newlines | Collapses to a compact form |
| Trailing semicolons | Saves a few extra bytes |
Pair minification with gzip or Brotli compression on your server for the smallest possible CSS download.
Common uses
- Shrink CSS for faster loading
- Improve PageSpeed scores
- Reduce stylesheet bandwidth
- Minify before deploying
- Compress critical CSS
- Compare original vs minified size
- Clean up generated CSS
- Optimise a theme or template
Frequently asked questions
How do I minify CSS?
Paste your CSS and click minify — comments and whitespace are removed and you copy the result.
Will minifying change my styles?
No — it only removes characters that do not affect how the CSS works.
How much smaller will it get?
Removing comments and whitespace usually reduces size noticeably, especially on large files.
Is my CSS uploaded?
No — minification happens entirely in your browser.
Should I keep the original?
Yes — edit the readable version and minify a copy for production.
Can I un-minify it?
A CSS formatter can re-indent minified CSS to make it readable again.
Does it remove the last semicolon?
It can safely drop the final semicolon of each rule to save bytes.
Is it free?
Yes — completely free with no sign-up.