SVG Optimizer
Paste an SVG — comments, metadata and Inkscape/Illustrator junk are stripped, numbers are rounded, whitespace collapsed and empty groups removed. See exact byte savings and a side-by-side preview. Everything runs in your browser.
About this tool
The SVG is parsed as real XML, cleaned, and re-serialized compactly: XML prolog and comments are dropped, <metadata> and Inkscape/Sodipodi elements and attributes are removed, unused xmlns:* declarations are pruned, redundant defaults like opacity="1" are stripped (inherited properties are only removed when no ancestor overrides them), coordinates in d, points, transform, viewBox and other numeric attributes are rounded to your chosen precision, and empty or attribute-less groups are unwrapped. Previews are rendered via sandboxed data: URI images, so scripts inside a pasted SVG never execute on this page.
Your files never leave the page — there is no server, no upload, and no tracking of tool inputs. Always eyeball the after preview: aggressive rounding (0–1 decimals) can visibly shift tiny paths.