CSS 压缩
压缩 CSS 提升页面加载效率
🔒 100% client-side — your data never leaves this page输入
输出
Minified CSS will appear here
🔒 100% client-side
About this tool
将 CSS 代码压缩为生产可用的紧凑格式,自动移除普通注释和多余空白,并优化符号周围间距。内置大括号匹配校验,可在复制前快速发现明显语法问题。输出区域提供体积节省统计,便于你评估压缩带来的性能收益。
Frequently Asked Questions
What does CSS minification do?
It removes comments, line breaks and unnecessary spaces, then compacts punctuation to reduce the final stylesheet size.
Can I keep license comments?
Yes. Enable the keep important comments option to preserve comments written as /*! ... */.
Why do I see an unmatched braces error?
Your CSS likely has a missing { or }. Fix structural syntax issues first, then minify again.