SVG Optimizer & Minifier

Strip editor metadata, XML comments, and excess whitespace from SVG markup with live preview and byte-savings metrics.

320 B to 286 B (11% smaller)

Optimized SVG preview
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120"><rect x="8" y="8" width="104" height="104" rx="20" fill="#165DFC"/><path d="M36 62 L52 78 L86 44" stroke="#FFFFFF" stroke-width="10" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>

Common questions

Does removing SVG comments change how the graphic looks?

No. XML declarations, editor metadata, and comments are invisible metadata that only add file weight.

Is the preview rendered safely?

Yes. The SVG is encoded as a data URI inside an image element rather than injected as raw DOM markup.