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
- Paste your CSS into the left box.
- Decide whether to keep license comments and empty rules.
- Check the bytes saved.
- 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.