All tools

CSS Minifier

Shrink CSS for production by removing whitespace and comments.

CSS Input
Minified CSS

Minify CSS for Performance

CSS blocks rendering until it is downloaded and parsed, so smaller stylesheets mean faster first paint. This minifier removes comments, collapses whitespace, and strips the last semicolon in each rule to produce the smallest valid output.

Optimisations applied

  • Comment blocks removed
  • Whitespace around { } : ; , collapsed
  • Redundant final semicolons dropped
  • Line breaks and indentation removed

Safe and reversible

Minified CSS behaves identically to the original — only the formatting is stripped. Keep your source file readable and minify only the production copy.

Part of a build pipeline

For large projects, minification usually runs automatically as part of a build step. This tool is perfect for quick one-off minification, optimising a small stylesheet, or checking how much weight your CSS carries before you ship it.

100% Private & Processed Locally

Every conversion on this page runs entirely inside your browser using JavaScript. Your data is never uploaded to a server, logged, or stored — making this tool safe even for sensitive payloads such as API responses, configuration files, and access tokens.

Because there is no network round-trip, conversions are instant and work even when you are offline. It is free to use with no sign-up, no rate limits, and no ads injected into your output.

Frequently Asked Questions

Common questions about the CSS Minifier.

What optimisations are applied?
Comments are removed, whitespace around braces, colons, and semicolons is collapsed, and redundant final semicolons are dropped.
Does minified CSS behave the same?
Yes. Only formatting is removed, so the minified stylesheet renders identically to the original.
Is my CSS uploaded?
No. Minification runs entirely in your browser.

More Developer Utilities

View all tools →
JSON ValidatorJSON MinifierJSON to CSVCSV to JSONJSON to XMLXML to JSONJSON to YAMLYAML to JSON
File Transfer