CSS Minifier

Paste CSS and click Minify — see the result along with the exact size reduction percentage.

Input code
Result

Use cases

  • Shrinking a CSS file before a production deploy
  • Comparing CSS size before and after optimization
  • Preparing CSS for inlining into an HTML document

FAQ

How much does this shrink CSS?

Comments and extra whitespace are removed — typically 15-30% savings depending on coding style. For more aggressive optimization (class renaming, etc.) you need a build tool like PostCSS.

Can I turn it back into a readable form afterwards?

Yes, use the CSS Formatter — it restores indentation.

Related tools