CSS minifier
Minify CSS by stripping comments and whitespace without touching your values.
Related tools
CSS minifier
Paste a stylesheet and this tool returns a compact version with comments stripped, whitespace collapsed and the last semicolon of every block removed. Use it to shave bytes off a stylesheet before shipping, to inline critical CSS into a page head, to squeeze styles into an HTML email template, or simply to see how much of your file is formatting — the tally under the output shows the byte counts and the percentage saved.
The minifier parses your CSS instead of blindly replacing text, so the tricky parts stay intact: string literals keep every character, calc() expressions keep the spaces around their operators, url() values are copied through untouched, and a descendant selector like "a :hover" is never fused into "a:hover". What it deliberately does not do is rewrite your values — colors, units and shorthands come out exactly as you wrote them. It is an honest whitespace-and-comments minifier, not an optimizer that restructures rules.
Two options tune the output. "Keep /*! comments" preserves comments that start with /*!, the convention for license banners that must survive minification — turn it off to drop them like any other comment. "One rule per line" emits a newline after each top-level rule, which keeps the result diff-friendly and easier to scan than one long line.
Everything runs in your browser. Your CSS is never uploaded, so proprietary stylesheets and unreleased designs stay on your device.