CSS Minifier

Compress CSS by removing extra whitespace. This MVP uses js-beautify in compact CSS mode. It does not rewrite colors or merge identical rules.

Result

Paste code, then Minify. Libraries load in your browser.

How to minify CSS

  1. Paste CSS.
  2. Click Minify.
  3. Whitespace around standard separators is collapsed (no cssnano rewrites).
  4. Copy or download the result. Use CSS Formatter to expand it again.

FAQ

It only collapses whitespace around standard separators. Unusual hacks or data URIs with spaces can still need a review after minify.
cssnano is deferred. This page keeps the bundle smaller by reusing js-beautify already used for CSS format.
No. Minify runs in your browser.
No. This MVP only collapses whitespace. It does not run advanced optimizations like cssnano. Expect smaller files from spacing removal, not structural rewriting.
Savings depend on how much whitespace and indentation you had. Already-minified CSS may shrink only slightly. The tool shows before/after size when available.

Related tools