Skip to content
kivo

CSS Minifier

Strip comments and unnecessary whitespace from CSS without touching what it does.

Free No signup Runs in your browser — nothing uploaded
Result

What it does

CSS Minifier reads the whole document before doing anything, so what comes back is either valid output or a specific error with the position that caused it — not a partially rewritten file.

When you need it

Usually when something has already gone wrong: a config file an application will not load, an API response that has to be read by a human, or an export that has to be checked before it goes anywhere near a database.

Limits and caveats

Key order is preserved as it appears in the input. Very large documents are limited by your device's memory rather than by an upload cap, since the parsing happens locally. Everything happens in your browser, so the file never leaves your device.

How to use the CSS Minifier

  1. Paste your content, or load a file.
  2. The result appears as you type.
  3. Copy or download the output.

Frequently asked questions

Will it break a stylesheet with quotes in it?
No, and that is the part most naive minifiers get wrong. Strings and url() values are lifted out before anything is stripped, so a semicolon or a comment marker inside content: "…" is treated as content rather than syntax.
Does it rename or merge rules?
No. It removes comments and whitespace and nothing else. Merging selectors and reordering properties can change what a stylesheet does, and a tool that silently did that would not be worth the bytes it saved.
Do my files get uploaded?
No. This tool runs entirely in your browser, so the file never leaves your device.

Related tools