SVG 压缩
通过删除多余内容和取整数字来缩小 SVG 文件。
在您的浏览器中运行。您的文件不会离开设备。 了解如何验证
…
使用方法
- 1填写各项
输入数字或选择所需选项。
- 2查看结果
更改任何值时,答案会立即更新。
- 3使用结果
复制结果或记下来。不会向任何地方发送任何内容。
About this tool
Paste the code of an SVG and the tool removes comments, the XML header, editor metadata from Inkscape and similar apps, and extra spaces. It can also round long decimal numbers to two or three places, which often saves a lot. Compare the result with the original before using it.
When to use it
Make SVG files smaller by removing extras and rounding numbers.
Tips
Check the result visually.
Privacy
Everything runs in your browser, so your data is not uploaded or stored.
Tips
Remove editor metadata, round coordinates to one or two decimals and delete unused definitions. Keep a copy of the original in case a shape changes.
获得最佳结果的提示
在相信结果之前先检查每一个输入项,因为一个错误的数字就会改变整个答案。请使用工资单、账单、证书或合同上的准确数字,并记下计算日期。税率、门槛和规则会不时变化,因此对于税费和法律事务,请将结果视为估算,并与本页注明的官方来源核对。您可以尝试任意多个方案;不会保存或发送任何内容,刷新页面会清空输入。
要点
- 分类: 图片
- 在浏览器中运行,无需注册,无需上传。
- 您输入的信息保留在设备上。
- 提供多种语言。
- 内容最后审核日期:
常见问题
Will my icon look different?
Rounding to two decimals is usually invisible for icons. Choose three decimals for fine detail or turn rounding off.
Can I upload an SVG file?
Open the file in a text editor and paste its code here.
Is the image changed?
Only metadata and precision are reduced.
How much can it save?
Often 20 to 60 percent.
Does minifying change the look?
It should not, but check the result at a large size.