CSS Minifier

Minify or beautify CSS code by removing comments and whitespace. Copy optimized code with one click. Free, no signup.

Preparing private browser tool…

Your file will stay on this device.

Frequently asked questions

What does CSS minification do?
It removes comments, collapses whitespace, and strips unnecessary characters like trailing semicolons and spaces around braces and colons. The CSS behaves identically but the file is smaller.
Is minified CSS still editable?
Technically yes, but minified CSS is difficult to read or modify by hand. Always keep a source version for development and ship the minified file to production.
Does this tool handle CSS variables and media queries?
Yes. Standard CSS features including custom properties, media queries, keyframes, and nested selectors are all preserved. Only whitespace and comments are stripped.