SVG 优化器
通过移除不必要的数据和压缩代码来优化 SVG 文件。由 SVGO 提供支持。
Drop an SVG file or click to upload
SVG files only
Optimization Options
About SVG Optimization
- • Removes unnecessary metadata, comments, and editor data
- • Optimizes path data and numeric values
- • Merges similar paths and collapses groups
- • Minifies CSS and converts colors to shorter formats
SVG Optimization - 技术详情
SVG files from design tools often contain unnecessary metadata, comments, and editor-specific data. SVGO removes this bloat, optimizes path data, and minifies the code—typically reducing file size by 50% or more.
命令行替代方案
# Optimize with SVGO CLI\nnpx svgo input.svg -o output.svg\n\n# Optimize entire folder\nnpx svgo -f ./icons\n\n# With specific plugins\nnpx svgo input.svg --disable=removeViewBox