CSS Minifier & Compressor
Paste your CSS or upload a file and get a smaller stylesheet instantly. Strip comments and whitespace, shorten colors and see exactly how many bytes you save.
- Live minify
- Browser-only
- No sign-up
Tip: drag and drop a .css file straight into this box.
Your CSS never leaves your browser. Nothing is uploaded.
- 0 BOriginal size
- 0 BMinified size
- 0%Saved
- –Minified + gzip
Faster pages
Smaller stylesheets download and parse sooner, which helps Core Web Vitals and mobile load times.
Private by design
Everything runs in your browser with JavaScript. Your code is never sent to a server.
Safe output
Strings and url() values are protected, so quoted content and data URIs are never altered.
Frequently asked questions
What does a CSS minifier do?
It removes characters the browser does not need, such as comments, line breaks, extra spaces and the last semicolon in a rule, without changing how the page looks.
What is the difference between minifying and gzip?
Minifying rewrites the file to be smaller. Gzip compresses the file again when your server sends it. They stack, so the "Minified + gzip" figure shows roughly what visitors download when gzip is enabled.
Will minifying break my CSS?
Not normally. Test the result on your site before deploying, and keep your original file for editing. Turn off "Shorten hex colors" or "Shorten zero values" if you see any unexpected change.