SVG Optimizer
Clean your SVG files — remove editor junk, comments, metadata and unused attributes. 100% local.
Drop an SVG file or click to browse
Or paste your SVG code below
Input SVG
—
Optimized SVG
—
What gets removed
1
XML declaration & DOCTYPE —
<?xml version="1.0"?> and <!DOCTYPE> are unnecessary in HTML contexts.2
Comments —
<!-- ... --> blocks added by editors like Figma, Illustrator or Inkscape.3
Editor metadata —
<metadata>, <title>, <desc>, Inkscape/Sodipodi/Sketch namespaces and attributes.4
Empty groups —
<g></g> elements that serve no purpose but increase file size.5
Whitespace — Collapses multiple spaces and newlines into single spaces, reducing size significantly.