← All tools
Developer tool

CSS Minifier

Minify CSS to reduce file size. Remove comments, whitespace and optimize for production.

Bookmark this tool (Ctrl+D) — free to use, no account needed
Copied!
Input CSS
Minified CSS

Minify a CSS stylesheet

Make CSS text more compact when preparing a stylesheet for a website or small embedded page.

  1. Paste your stylesheet into Input CSS.
  2. Select Minify CSS to reduce comments and unnecessary formatting.
  3. Copy the result and test it with your website before deploying.

Example

A spaced declaration such as “.card { color: green; }” can be represented with less formatting after minification.

What to check

Always keep a readable source copy. Check special comments, complex values and CSS behavior before replacing production files.

Share your feedback

Found a bug? Have a suggestion? We read every message.

✓ Thank you!

We appreciate your feedback and will look into it.