CSS Minifier

Minify CSS online — strip whitespace and compress stylesheets for smaller files and faster page loads. Free, instant, client-side CSS minifier.

🔒 100% Client-Side Processing

Your data is processed entirely in your browser and never transmitted to any server.

0 / 100M Limit

Common Use Cases

Shrinking stylesheets for production

Compress hand-written CSS before uploading to a site without a build pipeline — smaller files, faster loads.

Preparing inline email styles

Minify CSS destined for style attributes and email templates where size and line breaks matter.

Compacting widget embeds

Reduce the CSS payload of embeddable widgets and third-party snippets.

Frequently Asked Questions

What does the CSS minifier remove?
Whitespace runs, and spaces around structural characters — braces, colons, semicolons, and commas. Rules collapse onto single lines, typically shrinking hand-written stylesheets by 15–30%. Looking to minify JSON instead? Use our JSON Minifier.
Will minification ever break my CSS?
This is whitespace-level compression, so selectors and values are preserved. One caveat: CSS comments are not stripped, and calc() expressions requiring spaces around operators keep working since only redundant spacing is removed.
Can this also unminify or beautify CSS back to a readable format?
Not on this page — this tool only compresses CSS. Use the CSS Beautifier to reformat minified CSS back into indented, readable code.
Is my data private when I use this tool?
Yes. This tool runs entirely in your browser using client-side JavaScript — nothing you type is transmitted to, logged by, or stored on any server. You can safely process confidential text, tokens, or code.