Skip to content
TabKiwiTabKiwi

CSS Minifier

Compress stylesheets by dropping comments and whitespace without touching strings, url() or calc().

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

The minifier walks through your stylesheet token by token, so quoted strings and url() values are copied exactly and the spaces that calc() needs around + and - are kept. Comments are removed except /*! license */ blocks if you want them, final semicolons are dropped and empty rules can be deleted. The size before and after is shown, and the work happens on your device.

How to use CSS Minifier

  1. Paste your CSS into the left box.
  2. Decide whether to keep license comments and empty rules.
  3. Check the bytes saved.
  4. Copy the minified CSS or download it as a file.

Frequently asked questions

Does it rename classes or merge rules?

No. It only removes characters that cannot change the meaning, which makes it predictable. Rule merging and renaming belong in a build step that knows your HTML.

Why is the space kept in “calc(100% - 10px)”?

Inside calc(), the plus and minus operators must have spaces around them; without the spaces the expression is invalid.

More Developer tools

View all 91 →