CSS Minifier

Runs in your browser — your data is never uploaded.

Shrink a CSS file by stripping comments and unnecessary whitespace, while leaving quoted strings and url() values completely untouched. Runs entirely in your browser, so proprietary stylesheets never leave your device.

0 characters · runs entirely in your browser

How to use CSS Minifier

  1. 1

    Paste your CSS into the box.

  2. 2

    Click “Minify”.

  3. 3

    Copy the result, or download it as a .css file.

Share

Embed this tool on your site

Paste this where you want the tool to appear. It runs entirely in your visitor's browser — no uploads, no account, no tracking.

Please keep the attribution line — it's what keeps these tools free.

Need a different size, a dark theme, or a different tool? Build an embed lets you preview it first.

Frequently asked questions

How much smaller will my CSS get?+

It depends on how much whitespace and how many comments the file carries — hand-written, well-commented stylesheets often shrink 20–40%, while already-compact CSS changes little. The savings come purely from removing characters the browser ignores.

Is it safe for CSS containing quoted content, like `content: "a b"`?+

Yes. The minifier tracks quoted strings and url() contents and never alters whitespace inside them — only the surrounding selectors and declarations are compacted.

Does it remove comments?+

Yes, all `/* ... */` comments are stripped, since they add size with no effect on rendering.

Is my CSS uploaded anywhere?+

No. Minification runs entirely in your browser — nothing is sent to a server.