How to use the SVG Optimizer
- 1. Add your SVGChoose an .svg file or paste the code.
- 2. Choose optionsNumber precision, keep the title for accessibility, unwrap plain groups, remove unused IDs.
- 3. OptimiseCompare both images, then copy or download the optimised SVG.
What gets removed
Design tools save far more than the drawing: XML declarations, comments, <metadata> blocks, editor namespaces such as inkscape: and sodipodi:, and IDs on every layer. The optimizer removes those, unwraps <g> groups that carry no attributes, removes IDs that nothing refers to, and rounds coordinates to the precision you choose. Paths are rewritten with the shortest separators. IDs used by gradients, masks, <use> or CSS are kept. Your code is processed in your browser and never uploaded.
We tested it on 21 SVGs, from icons to illustrations: rendered before and after, the worst case differed visibly in 0.007% of pixels.
Worked example
The sample is an Inkscape badge: a navy circle and an orange tick with long decimals, wrapped in two groups with editor attributes. With 3-decimal precision it goes from 1.18 KB to 321 B, 73.4% smaller: 1 comment, 2 metadata elements and 10 editor attributes removed, 2 groups unwrapped and 4 unused IDs dropped. The <title> stays, so screen readers can still name the image.
Good to know
- Scripts and event attributes are left as they were, so treat SVGs from unknown sources with care.
- One or two decimals suit simple icons; check the preview when going below 3.
- For inline SVG icons, also set
aria-hidden="true"when the icon sits next to a text label.
Frequently asked questions
Will my SVG look different?
It shouldn't at 3 decimals; that's why the original and optimised images are shown side by side.
Does it convert SVG to PNG?
No, it keeps SVG. To get a PNG, use our SVG to PNG converter.
Is the SVG optimizer free?
Yes. You can open the SVG optimizer, paste code and change every setting without signing up. When you optimise an SVG for the first time, we ask once for your name and WhatsApp number; after that it, and every other Uncodemy tool, opens straight away.