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.
CSS minifier FAQs
What does a CSS minifier do?
Is it safe? Will minifying break my styles?
How much smaller will my CSS get?
Should I remove the last semicolon in each rule?
Does this tool support @media queries and keyframes?
Is my CSS sent to a server?
What's the difference between minifying and gzipping?
Try a sample or see input tips
Start small, review the output, then use your own input. Sample files contain synthetic data.
For file tools, download the sample first, then select it with the tool’s upload control. Your own file is never replaced automatically.
Keep going with your next task
Choose a related next step. Copy any result you want to reuse; opening a tool does not transfer your inputs.
Syed Waleed