CSS Minifier
Strip comments, collapse whitespace and remove unneeded semicolons in CSS.
Quick answer: Strip comments, collapse whitespace and remove unneeded semicolons in CSS.
Last updated
Frequently asked questions
- How do I minify CSS?
- Paste CSS and the minified version appears immediately. Copy or save with one click.
- Are comments removed?
- Yes — every `/* … */` comment is stripped. If you rely on a license header, add it back manually after minifying.
- How much smaller does CSS get?
- Typically 15–35% on hand-written CSS, less on already-tooled output. The byte counter shows your exact saving.
- Will it break my CSS?
- It performs only whitespace and trailing-semicolon edits — it doesn't rename or reorder anything, so visual output is identical.
- Should I minify CSS in production?
- Yes if you don't already have a build-step minifier. Combined with gzip, minified CSS shaves real bytes off page load.
- Is the CSS sent to a server?
- No. Minifying runs entirely in your browser.
- What about CSS variables and calc()?
- Both are preserved verbatim — only whitespace around them is collapsed.
- Why didn't my data: URI shrink?
- Encoded data inside url(data:…) is preserved verbatim. Compress it before embedding for real savings.
- Can I un-minify CSS?
- Most editors include 'format document' which produces a readable layout from any valid CSS.
- Is this CSS minifier free?
- Yes — free, no signup, no limits.