CSS Minifier

Code Tools

Compress your CSS files by removing unnecessary whitespace, comments, and optimizing code. Reduce file sizes for faster page loads.

Input CSS

Minified CSS

Minified CSS will appear here...

Instant Compression

Minify CSS instantly in your browser. No server uploads, no waiting—results appear immediately.

Smart Optimization

Removes comments, shortens hex colors, removes unnecessary units from zero values, and more.

Size Statistics

See exactly how much space you're saving with before/after byte counts and percentage reduction.

What Gets Optimized

  • Comments: All /* */ comments are removed
  • Whitespace: Extra spaces, newlines, and tabs are eliminated
  • Hex colors: #ffffff becomes #fff when possible
  • Zero units: 0px becomes 0 (units aren't needed for zero values)
  • Semicolons: Trailing semicolons before } are removed
  • Decimals: 0.5 becomes .5

Related Tools