Render-blocking bytes removed
Stylesheets block first paint, so every kilobyte you shave off is time the browser is not waiting. Minification is the cheapest win available on critical CSS.
Compress a stylesheet by removing comments and whitespace.
Loading tool…
The tool is loading its code on your device. This happens once and is cached for later visits.
Processed entirely on your device
Overview
Minify CSS online — strip comments, whitespace and unnecessary characters from a stylesheet to reduce its size, and see the byte saving. Runs in your browser, no upload.
CSS is render-blocking: the browser will not paint the page until the stylesheet has downloaded and parsed. That makes it the one asset where minification has a direct, measurable effect on how fast a page appears, rather than just on how much bandwidth it uses.
Comments go first — they are notes for humans and are never part of the cascade. Then the whitespace that carries no meaning: the newlines between rules, the indentation inside a block, and the spaces around braces, semicolons and colons. A declaration written across four lines becomes one, and the whole sheet collapses to a single stream of rules.
CSS uses whitespace as syntax in a few places, and this is where naive minifiers break stylesheets:
The rule the minifier follows is simple: collapse a run of whitespace to a single space where a space is meaningful, and delete it entirely where it is not. Getting that distinction right is the whole job.
A full CSS optimiser can also shorten hex colours, convert rgb values, strip units from zero lengths, merge duplicate rules and reorder declarations. Those transforms change the text of your CSS and occasionally change behaviour, so they belong in a configurable build step you can test against your real pages. This minifier does the safe, universal part — comments and whitespace — and leaves the rest alone.
Keep the readable, commented stylesheet in source control and minify during the build, so the file you ship is small and the file you maintain is legible. For a quick one-off — inlining critical CSS into a document head, or shrinking a snippet for an email — minifying by hand here is the fastest route.
Step by step
Paste your stylesheet into the input panel.
Press Minify CSS; comments and insignificant whitespace are removed.
Check the before and after byte counts to see the saving.
Copy the compressed CSS or download it as a .css file.
Why use it
What this tool is good for, and what it deliberately does not try to do.
Stylesheets block first paint, so every kilobyte you shave off is time the browser is not waiting. Minification is the cheapest win available on critical CSS.
Selectors, properties and values are left exactly as written; only comments and whitespace that carry no meaning are removed, so specificity and cascade order never change.
Whitespace inside content strings, url() values and base64 data URIs is preserved, which naive find-and-replace minifiers get wrong.
The stylesheet is compressed in your tab, so proprietary styles and unreleased design tokens are never transmitted.
Questions
Short, honest answers about quality, limits and privacy.