CSS Minifier — Compress CSS for Production

Minify CSS source. Strips comments, collapses whitespace, removes redundant semicolons. Typical savings 20–50%. Runs in your browser.

Runs in your browser.

Why minify CSS?

CSS minification removes everything from a CSS file that doesn't affect how it's interpreted — comments, indentation, line breaks, redundant whitespace, the optional last semicolon before each closing brace. The result is functionally identical CSS in 50–80% the file size. Smaller CSS files mean faster page loads, better Core Web Vitals scores, and lower bandwidth costs.

Most modern build pipelines (webpack, Vite, Parcel, esbuild) minify CSS automatically on production builds. This tool is for ad-hoc minification — quickly shrinking a hand-written CSS file before pasting it into a project, or auditing what production CSS would look like.

What this minifier does

Typical savings

When to minify

Tips

FAQs

Is anything uploaded?

No.

Will it break my CSS?

Conservative approach — preserves whitespace inside strings and url() values. Test minified output before deploying.

What about comments I want to keep?

Use /*! "important" comment syntax — preserved by most minifiers including this one.

Related