A worked example, rendered from real sample data. Sign in to run the tool on your own input.
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100">
<!-- A simple circle -->
<circle cx="50" cy="50" r="40" fill="#3b82f6" stroke="#1d4ed8" stroke-width="2"/>
<text x="50" y="55" text-anchor="middle" fill="white" font-size="14">SVG</text>
</svg><svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="#3b82f6" stroke="#1d4ed8" stroke-width="2"/><text x="50" y="55" text-anchor="middle" fill="white" font-size="14">SVG</text></svg>
Minify and clean SVG markup by removing metadata and comments. Part of the DevTools Surf developer suite. Browse more tools in the Images collection.