SVG优化工具
通过删除元数据、注释和编辑器特定属性来优化和压缩SVG文件,在不损失视觉质量的前提下减小文件大小。
选项
使用方法
通过删除元数据、注释和编辑器特定属性来优化和压缩SVG文件,在不损失视觉质量的前提下减小文件大小。
- 1Paste your SVG code into the input area, or click 'Load Sample' to try an example.
- 2Choose your optimization options: remove comments, metadata, editor attributes, XML declaration, and optionally strip unused IDs.
- 3Click 'Optimize' to process your SVG.
- 4Review the stats showing original size, optimized size, and percentage saved.
- 5Copy the optimized SVG output using the 'Copy' button and use it in your project.
主要功能
- Removes XML comments, metadata blocks, and editor-specific attributes (Inkscape, Illustrator)
- Optional removal of XML declaration and stripping of unreferenced id attributes
- Shows original size, optimized size, and savings percentage
- Removes xmlns:xlink namespace automatically when no xlinks are used
- All processing is done in your browser — your SVG never leaves your computer