What gets removed
- Editor metadata, comments and namespaces added by Illustrator, Inkscape, Sketch and Figma.
- Empty groups, unused
<defs>and default attribute values. - Excess decimal places in coordinates, controlled by the precision slider.
- Verbose path data, rewritten with shorter relative commands.
- Whitespace between tags.
Choosing a precision
Precision is the number of decimal places kept in coordinates. 3 is safe for almost everything. Icons drawn on a 24-unit grid usually look identical at 1–2. Detailed illustrations and maps may need 4+. Check the right-hand preview as you move the slider.
When to optimize
Optimize the final file you ship to a website or app, and keep an unoptimized source for editing. To make changes first, open the file in the online SVG editor. To recolour or resize without editing, use the SVG color changer or resize SVG tools.