SVG Optimizer
Clean up SVG markup by removing comments, editor metadata (Inkscape/Sodipodi namespaces), the XML declaration and redundant whitespace. Conservative by design — it never touches path data, so the shape never changes.
Paste SVG markup and toggle which cleanups to apply. Each option is independent, so you can see the size drop and preview update as you enable or disable a step. The result is downloadable as clean, smaller markup.
Options
SVG source — 365 B
Optimized — 142 B(61% smaller)
Frequently asked questions
Does this rewrite or simplify path data like SVGO does?
No — this is a conservative, text-level cleaner. It only removes things that are provably safe to drop (comments, metadata, whitespace); it never touches 'd' path data or restructures shapes, so visual output never changes.
Why does my SVG have inkscape: or sodipodi: attributes?
Vector editors like Inkscape embed their own metadata (layers, guides, tool state) directly in the SVG file. Browsers ignore it, but it adds dead weight — this tool strips it safely.
Is the live preview safe for SVG I didn't create myself?
Yes — the preview renders through an <img> tag rather than inserting the markup into the page, and browsers never execute scripts inside an SVG loaded that way.