CSS Minifier
Paste your stylesheet and shrink it in one click. This minifier removes comments and needless whitespace — while keeping quoted strings exactly as they are — then shows the original size, the minified size and the percentage saved.
Your result will appear here
Minified CSS
Strings in quotes (for example content: " " or font names) are protected and never altered.
How to use
- Paste your CSS into the box above.
- Click Minify CSS to strip comments and collapse whitespace.
- Copy the result or download it as a .css file and link it from your page.
Frequently asked questions
What does a CSS minifier do?
It removes comments, line breaks and extra spaces from a stylesheet, and drops the last semicolon before each closing brace. The rules mean exactly the same thing, but the file is smaller and loads faster.
Will minifying change how my site looks?
No. Only whitespace and comments are removed, and quoted strings are protected, so the computed styles stay identical.
Why is my CSS smaller after minifying?
Stylesheets written by hand contain a lot of indentation and line breaks for readability. Browsers do not need any of that, so removing it can cut 20–40% of the file size.
Does my CSS leave my device?
No. Everything runs in your browser with JavaScript — your stylesheet is never uploaded anywhere.