SVG Optimizer
Shrink SVG files by cleaning metadata, comments, and empty groups and rounding decimals — with scripts and external references stripped, in your browser.
Options
Everything runs in your browser — your file is never uploaded.
How to optimize an SVG
- 1Drop or paste an SVG file.
- 2Adjust decimal precision and what may be removed.
- 3Optimize, check the preview and the size saving, then download.
What gets removed, and what never does
Editor exports carry comments, XML declarations, title and description blobs, Inkscape or Figma namespaces, empty groups, and coordinates with six pointless decimals. This optimizer strips those, rounds numbers to a precision you choose, and collapses whitespace — the drawing itself is unchanged. Before anything else it removes scripts, event handlers, foreignObject blocks, and javascript: links, so an untrusted SVG can be previewed and shipped safely.
FAQ
Will precision 0 break my shapes?
At precision 0 every coordinate becomes a whole number. That is usually fine for pixel-aligned icons but visibly dents detailed illustrations — 1 or 2 decimals is the safe default.
Does it upload my SVG?
No. Parsing, optimizing and preview all happen in the page.
Advertisement space — reserved