Paste your SVG code
Exported from Illustrator, Figma, Inkscape or hand-written.
Paste your SVG code and get a smaller, cleaner version: no comments, no editor metadata, no unnecessary whitespace. See exactly how much you saved.
100% private — your text is processed in your browser and never sent to any server.
Keep going with your result in another tool. Nothing is uploaded.
Exported from Illustrator, Figma, Inkscape or hand-written.
Comments, metadata, empty groups, spacing and decimal precision.
The optimized SVG, with the saved percentage.
Design tools save a lot more than the shape of your icon. A file exported from Illustrator, Figma or Inkscape usually carries an XML declaration, editor-specific metadata, comments, long generated ids on every element, empty groups left over from editing, and coordinates with far more decimal places than a screen can ever show. None of that changes how the icon looks, but it adds up in a page that loads dozens of icons or in an email signature with limits on size.
<g></g>, left behind after edits.Below the result you see the size before and after, and the percentage saved, so you know at a glance whether it was worth it. Icons with long paths and many decimal places usually shrink the most; already tidy, hand-written SVG shrinks less.
This is a text-based cleanup, not a full XML optimizer: it does not merge overlapping shapes, simplify paths mathematically or convert strokes to fills, which a dedicated design tool does better. Very unusual or malformed SVG may not clean up perfectly. Nothing is uploaded; the code is processed in your browser. To turn the result into a PNG, use the SVG to PNG converter.
More utilities that also run without leaving your browser.