Tool overview
什么是SVG 优化器?
SVG 优化器是一款帮助您壓縮并优化 SVG 標记的開發者工具。
為什么使用SVG 优化器?
在需要壓縮并优化 SVG 標记時提升可讀性与效率,且不會将数據上传到服務器。
核心功能
即時語法高亮、錯誤捕获、客戶端私隱保护与一鍵複製。壓縮并优化 SVG 標记
使用方法
按照以下步骤使用上方工具并获得准确結果。
- Paste SVG markup or upload from disk.
- Optimize to strip comments, metadata, and redundant whitespace.
- Download smaller SVG for inline sprites or icon fonts.
SVG Optimization Scope
Safe minification transforms applied.
| 功能 / 场景 | 有效語法示例 | 常见陷阱 / 无效示例 |
|---|---|---|
| Comments | <svg></svg> | <!-- comment -->Comments are removed. |
| Metadata tags | <svg viewBox='0 0 24 24'> | <metadata>...</metadata>Editor metadata may be stripped. |
| Whitespace | Compact single-line SVG | Pretty-printed indentInsignificant whitespace collapses. |
常见問題
關于常见调试問題和数據私隱的可展開解答。
官方文件与参考
本工具的权威规范与平台文件。