Eazy SEO Tools

CSS Minifier

Shrink CSS files instantly — strip comments and whitespace, keep every style intact.

Runs 100% in your browser — your input never leaves this page. How we handle your data →
Runs 100% in your browser — your input never leaves this page.

Comments and whitespace are stripped; strings and URLs are preserved exactly.

Your results will appear here.

Fill in the input above and run the tool to get started.

Honest limits

This tool performs safe whitespace-and-comment minification only. It does not restructure rules, merge selectors, or remove unused CSS — for those deeper optimizations, use a build tool like Lightning CSS or cssnano.

How to use the CSS Minifier

  1. Paste your CSS into the input box.
  2. Press Minify CSS — the compact output appears with byte savings.
  3. Copy the result or download it, then replace the original stylesheet.

Examples

Example

Paste /* header */ .nav { color: blue; } → .nav{color:blue}. The comment and whitespace vanish; the rule is identical.

What this tool doesn't do

  • Only whitespace and comments are removed — rules are never merged and unused CSS is never deleted.
  • Quoted strings and URLs are preserved byte-for-byte, including intentional spaces.
  • For deeper optimization (dead-code removal, selector merging), use a build tool like Lightning CSS.

Frequently asked questions

Need another tool?

Browse all 61 free tools — no signup, no paywalls.

Browse all tools