Free · Runs in your browser · Production-safe

CSS Minifier

Paste your CSS, get a compressed, production-ready stylesheet.

Input0 B
Minified
Minified CSS will appear here…

What gets minified

Whitespace & comments

Removes all unnecessary spaces, line breaks and regular comments.

Duplicate & mergeable rules

Combines selectors sharing identical rules, when restructuring is on.

Safe by design

Content inside url(), strings, and calc() is parsed and left untouched — never blindly stripped.

Frequently asked questions

Is my CSS uploaded anywhere?

No — minification happens entirely in your browser using a JavaScript library. Your stylesheet never leaves your device.

What does "restructure" do?

It lets the minifier merge and reorder rules where it's safe to do so (e.g. combining duplicate selectors), which shrinks the file further. Turning it off produces a more conservative, purely whitespace/comment-stripping minification if you want the output to stay closer to your original rule order.

Will this break my CSS custom properties or calc() expressions?

It shouldn't — the minifier parses CSS properly rather than using find-and-replace, so custom properties (--variable-name), calc() expressions, and content inside url() and strings are left untouched.

Why keep /*! ... */ comments?

Comments starting with an exclamation mark are a common convention for license or attribution notices that tools deliberately preserve through minification — useful if your CSS credits a third-party stylesheet.

How much smaller will my file get?

It depends heavily on your formatting — CSS with a lot of whitespace, comments and indentation typically shrinks 40–70%. Already-compact or highly optimized CSS will save less.