ToolGenie

CSS Minifier

Compress CSS by removing dead weight.

Loading tool…

How to use CSS Minifier

  1. Paste your CSS, or drop a .css file into the editor.

  2. Click Minify to strip comments and redundant whitespace.

  3. Check how many bytes you saved, then copy or download the result.

Frequently Asked Questions

Can minified CSS break my site?

The minifier only removes comments and whitespace that CSS ignores, so selectors, media queries and !important rules keep working exactly as before.

How much smaller does CSS get?

Hand-written stylesheets typically shrink by 20-40%. Files that were already built by a bundler save less, because most whitespace is gone already.

Can I un-minify a stylesheet?

Yes — switch to Beautify to expand a compressed file back into indented rules so you can read or edit it.

Related tools

Looking for something else? Browse all developer tools.