Paste your SVG markup to strip comments, design-tool metadata and unnecessary whitespace, and round excess coordinate precision.
Google AdSense Banner
This area will contain advertisements after approval.
Google AdSense Banner
This area will contain advertisements after approval.
This tool strips XML comments, removes design-tool editor metadata (Illustrator, Inkscape and Sketch-specific namespaced attributes and elements, which have no visual effect), collapses unnecessary whitespace, and rounds excess decimal precision inside coordinate-bearing attributes (d, viewBox, points, transform) to your chosen precision. It's a text-based, heuristic cleanup, not a full AST-based optimizer like SVGO, but it safely handles the cleanups that account for most of the reducible size in hand-exported SVGs.
Design tools frequently export path coordinates with far more decimal places than are visually meaningful (like 12.340000000001 instead of 12.34), a side effect of internal floating-point math. Rounding this precision, and only within known coordinate attributes so nothing else in the file is affected, shrinks path data without any visible change to how the SVG renders.
Paste in an Inkscape-exported SVG containing an XML comment, an inkscape:version attribute, a <metadata> element, and a path with coordinates like 'M10.123456789 20.987654321 L30.5 40.2', at precision 2. The output strips the comment, the Inkscape-specific attribute, and the metadata element entirely, rounds the path to 'M10.12 20.99 L30.5 40.2', and collapses extra whitespace between tags, shrinking a 274-byte original down to 103 bytes, a 62.4% reduction, with no visible change to how the SVG renders.
Setting precision to 0 on an SVG with fine, sub-pixel-scale detail, rounding coordinates to whole numbers can introduce a visible shift or distortion in complex or small-scale artwork, 1-2 decimal places is a safer default for most designs.
Expecting SVGO-level file size reduction, this is a safe, heuristic text-based cleanup (comments, metadata, whitespace, coordinate precision), not a full path-simplifying optimizer, savings are real but generally more modest than a dedicated AST-based tool would achieve.
Running already-hand-optimized, minified SVG through this tool expecting further large gains, once comments, metadata and excess precision are already gone, there's little reducible size left for this particular cleanup approach to find.
No, every change made is either purely cosmetic (comments, metadata, whitespace) or a coordinate rounding small enough to be visually imperceptible at any reasonable precision setting (2 decimal places is a safe default).
No, this tool doesn't merge, simplify, or restructure path commands, a task that requires real path-data parsing. It focuses on safe removals and precision rounding, the highest-value, lowest-risk cleanups for typical exported SVGs.
Google AdSense Banner
This area will contain advertisements after approval.