CSS Minifier
Strip comments, blank space, and unnecessary characters from your CSS files. Faster downloads and better Core Web Vitals.
Paste your CSS
Single file or combined stylesheet.
Click minify
We strip everything browsers do not need.
Replace on server
Use the minified version in production.
Minify CSS
Why minify CSS?
CSS files often have lots of comments, indentation, and blank lines that exist purely for developer readability. Browsers ignore all of it. Stripping it can shrink your CSS by 20–50%, reducing the time until your page can render.
Best practices
- Keep your source CSS readable. Minify only for production.
- Use a build process for sites you update often (Webpack, Gulp, esbuild).
- Combine multiple CSS files before minifying to reduce HTTP requests.
- Enable Gzip/Brotli on your server for another huge size reduction on top.
Frequently asked questions
Will minification break my CSS?
It should not. The tool preserves all selectors, declarations, and values. Only whitespace and comments are stripped.
How much can I save?
Typical CSS gets 25–40% smaller. With Gzip on top, you save another 60–80%.
Should I minify CSS frameworks like Bootstrap?
They are usually shipped pre-minified (bootstrap.min.css). Only minify custom CSS you write yourself.
Does minified CSS affect debugging?
Yes, it is harder to read. Use source maps (in build tools) or keep the unminified version handy.
Is there a downside?
Only debugging difficulty. For users and SEO, smaller is always better.