What is CSS Minification?
CSS minification removes everything a browser does not need to apply your styles: comments, line breaks, indentation and extra spaces, along with other safe shortcuts such as dropping unnecessary semicolons and shortening some values. The styles stay the same, but the file gets smaller.
Smaller stylesheets download faster, which helps page load times and Core Web Vitals. This CSS minifier compresses your code and reports the original size, minified size and percentage saved, so you can see exactly what you gained.
How to Minify CSS
- 1Add your CSS — paste it into Enter or Paste CSS, or click Upload File to load a .css file.
- 2Click Minify — your stylesheet is compressed.
- 3Check the savings — compare the original and minified sizes.
- 4Copy or download — copy the result, or download it as a .css file.
Why Use This CSS Minifier?
Measured savings
See the before and after size in bytes and the percentage saved on every run.
File in, file out
Upload a .css file and download the minified version without copying long code by hand.
Safe compression
Only removes characters that do not affect how your styles are applied.
No build tools needed
Handy for quick fixes on sites that don't have a bundler or build pipeline.