CSS Minifier

Compress CSS to its smallest form — strip comments and unnecessary whitespace. Runs in your browser; nothing is uploaded.

100% free, no sign-up Runs in your browser — nothing uploaded Instant, works offline

Minifying CSS removes the comments and whitespace a stylesheet carries for readability — the spaces, indentation and line breaks — leaving the same rules in the most compact form. Because that whitespace has no effect on how the CSS is applied, the result is identical in meaning; only the size changes. Paste your CSS and press Minify to shrink it for faster page loads. Everything runs in your browser, so nothing is uploaded. For markup, try the HTML Formatter.

Frequently Asked Questions

Does minifying CSS change how my styles work?

No. Minifying only removes comments and the whitespace between tokens, which has no effect on how the browser applies your styles. Every selector, property and value is preserved exactly — the minified stylesheet renders identically to the original. Only the file size changes, which is why production sites serve minified CSS to load faster.

How much smaller will my CSS get?

It depends on how much whitespace and how many comments the original contained. Heavily commented, nicely indented stylesheets often shrink 20–50%, while already-compact CSS barely changes. This tool shows the exact before and after byte sizes and the percentage saved so you can see the real benefit for your file.

Is my CSS uploaded anywhere?

No. The minifier runs entirely in your browser using built-in JavaScript, so your CSS is never sent to a server, logged or stored. There is no account and no sign-up, and it keeps working offline once the page has loaded.