CSS Minifier
Compress a stylesheet in your browser: comments, surplus whitespace, duplicate semicolons and empty rules go, colours and numbers get shortened. Nothing is uploaded.
What this CSS minifier does
Paste a stylesheet and this tool compresses it: comments, repeated whitespace, duplicate semicolons, empty rules and the last semicolon of every block are removed, colours such as #FFFFFF become #fff, and numbers such as 0.50 become .5. It works context-aware — a value inside url(...) or a CSS custom property declared as --name is left alone, and a hex value in a selector (an ID) is never shortened, because that would change which element is styled. Strings, calc() expressions and media features keep the whitespace they need. The result appears while you type, with byte counts before and after, the number of removed comments and empty rules, and copy plus download. Unclosed braces, unterminated comments and stray closing braces are reported instead of silently swallowed. Everything runs in your browser, so the CSS never leaves your device.
Was dieser CSS-Minifier macht
More free tools
What is CSS Minifier?
CSS Minifier is a free online utility tool built for anyone who needs a quick answer without an account. Compress a stylesheet in your browser: comments, surplus whitespace, duplicate semicolons and empty rules go, colours and numbers get shortened. Nothing is uploaded In practice you paste or enter what you want to process, adjust the options on the page, and then copy the result.
Generation happens locally, so the values you create are not logged on any server.
How to use CSS Minifier
- Paste or enter what you want to process.
- Adjust the options on the page.
- Copy the result.
CSS Minifier FAQ
Is CSS Minifier free to use?
Yes. CSS Minifier is completely free and needs no account, no trial and no payment details. Every feature on the page is available without limits.
Is my data uploaded anywhere?
No. CSS Minifier runs entirely in your browser, so the text, file or number you enter never leaves your device.
Does CSS Minifier work on a phone or tablet?
Yes. It works in any modern browser on desktop, tablet and phone. There is no app to install and no account to create.
How do I use CSS Minifier?
Paste or enter what you want to process. Adjust the options on the page. Copy the result.