Developer Tools

CSS Minifier

Minify CSS by stripping comments and whitespace — with a size-saved report.



About this tool

Whitespace and comments help humans, not browsers. Paste your stylesheet and get a minified version with comments stripped, whitespace collapsed and trailing semicolons removed — typically 20–40% smaller, which means faster first paint.

The minification is conservative by design: it only removes what is provably safe, so the output behaves identically. Everything runs locally in your browser — nothing is uploaded, logged or stored.

How to use

  1. Paste your CSS.
  2. Click Minify — the size saving is reported.
  3. Copy the result into your build or style tag.

Frequently asked questions

No — only comments and insignificant whitespace are removed. Selectors, values and order are untouched.

Typically 20–40%, depending on how heavily commented and formatted the source is. Gzip on the server shrinks it further.

Always — edit the readable source and minify for production. Minified CSS is painful to maintain.