首页
Tom Utilities

删除注释和不必要的空白以压缩 CSS。

输入

结果

使用方法

How to minify CSS

Press Minify to remove comments and collapse whitespace.

  1. Paste CSS into the input editor.
  2. Press Minify.
  3. Copy the compressed stylesheet.

常见问题

Are vendor prefixes kept?

Yes, all declarations are preserved, only whitespace and comments are removed.

Does it break calc expressions?

No, whitespace inside calc and similar functions is protected.