这个工具做什么?
| 直接答案 | CSS 压缩器删除注释和所有不必要的空白,生成最小的有效样式表。 |
| 关键事实 | 根据CSS语法,在}之前的最后一个分号是可选的,并会被移除。 |
| 处理 | 在您的浏览器中本地运行;不会将数据发送到服务器。 |
如何使用
- 将CSS粘贴到输入框中。\n点击压缩CSS。\n复制压缩后的样式表。
Who is this for?
This tool was built for people who need a fast answer in the browser — no install, no account, no data leaving the device.
Developers formatting API responses or config files, analysts inspecting minified payloads, and students learning structured data formats. If you have ever squinted at a one-line blob hoping to find a missing brace, this page is for you.
常见问题
url() 中的数据 URI 安全吗?
是的 — 字符串内容永远不会被修改,只会删除周围的空白和注释。
它会缩短颜色名称或合并规则吗?
不会 — 此压缩工具仅移除空格和注释,保持输出可预测。
CSS能压缩多少?
典型的样式表可以压缩20–40%;带有注释的文件压缩得更多。