Clean and minify SVG files by removing comments, metadata, empty groups, redundant attributes, and whitespace β all in your browser.
SVG Optimizer cleans and minifies SVG markup by stripping elements and attributes that bloat file size without affecting the rendered graphic. It removes XML declarations, HTML comments, <metadata> blocks, <title> and <desc> elements, empty <g> groups, editor-specific namespaces (Inkscape, Sodipodi, Adobe Illustrator), and excessive whitespace. It also rounds floating-point coordinates to a configurable decimal precision to reduce numeric bloat.
A side-by-side preview lets you confirm the optimized SVG looks identical to the original before you download. All processing is done locally in your browser β your SVG code and any embedded brand assets stay entirely on your machine.
The "Remove unused IDs" option is unchecked by default precisely to protect IDs that are referenced internally (e.g., by <use>, <clipPath>, gradient <stop> elements, or SMIL animations). Only enable it if you have confirmed your SVG contains no internal ID references. All other options are safe for most SVGs.
A precision of 2 (the default) is a good balance for most icons and illustrations β it rounds values like 50.000000 to 50 while keeping sub-pixel accuracy for curves. For large illustrations with complex paths, try precision 1 for maximum compression; for icons that need crisp sub-pixel rendering at small sizes, precision 2 or 3 is safer.
SVGO (SVG Optimizer Node.js library) is a full-featured command-line tool with dozens of plugins including path merging, transform collapsing, and shape conversion. This browser tool focuses on the most impactful and safe operations β metadata removal, whitespace collapse, and coordinate rounding β with zero setup, no Node.js required, and full privacy since everything runs locally.