CSS Minifier
Strip comments and whitespace from CSS.
Results appear as you type
Everything runs locally in your browser โ your input never leaves this page.
About the CSS Minifier
The CSS Minifier strips comments, whitespace and line breaks from your stylesheet to produce a smaller, production-ready file. Smaller CSS means faster page loads and less bandwidth for your visitors. The minification runs locally in your browser, so your styles are never sent anywhere.
How to use
- Paste your CSS into the input box.
- Run the minifier to collapse whitespace and remove comments.
- Copy the minified CSS into your build or production stylesheet.
Frequently asked questions
- What does minifying CSS do?
- It removes comments, extra spaces and line breaks that browsers don't need, shrinking the file size without changing how the styles render.
- Will minifying change how my site looks?
- No. Only insignificant characters are removed, so the visual result of your stylesheet stays the same.
- Is my CSS uploaded to a server?
- No. The CSS is minified directly in your browser, keeping your code private.