Free Online CSS Minifier — Shrink Your Stylesheets in Seconds
Paste your CSS and get an optimized, compressed version instantly. Smaller stylesheets mean faster page loads, lower bandwidth bills, and better Core Web Vitals — all processed in your browser, never uploaded anywhere.
Your CSS never leaves your browser. No uploads, no tracking, no storage.
Open the page and start minifying. No accounts, no email walls.
Unlimited minifications, no size caps, no watermarks — free for everyone.
How to use the CSS minifier
- 1Paste your CSS
Drop your full stylesheet (or a snippet) into the "Original CSS" box on the left.
- 2Pick your options
Choose whether to strip comments, drop the last semicolon, shorten hex colors, or keep line breaks per rule.
- 3Minify & compare
Hit "Minify CSS" and check the live size readout: original bytes, minified bytes, and your exact percentage saved.
- 4Copy or download
Copy the output to your clipboard or download it as a ready-to-deploy .css file.
Why minify your CSS?
Smaller stylesheets download quicker, especially on mobile connections — a direct win for your Lighthouse performance score.
Every byte stripped saves bandwidth on every single page view. On high-traffic sites, that adds up to real money.
Quoted strings, URLs, and data URIs are protected during minification, so your content and images are never corrupted.
Optionally compresses 6-digit hex colors like #aabbcc into #abc — valid CSS, roughly 3 bytes saved per color.
Keep comments for licensed code, keep trailing semicolons for easier diffs, or keep line breaks for a readable-but-compact output.
Everything runs in JavaScript in your browser tab. No server round-trips, no queues, no waiting.
Syed Waleed