SVG Optimizer
Make SVG files smaller with SVGO: remove editor junk, round numbers and simplify paths – see the size saved and a before/after preview.
Tool
About this tool
About SVG Optimizer
SVGs exported from Illustrator, Figma or Inkscape often contain comments, editor data, unused IDs and numbers with too many decimals. The optimizer cleans them with SVGO – the same tool used by professional web developers – usually making files 30–70% smaller without changing how they look. Compare before and after, then download or copy the code.
How it works
Example
How to use this tool
- Choose an SVG file or paste the code.
- Pick the number precision and options.
- Check the before/after preview, then download or copy.
Frequently asked questions
Will it change how my SVG looks?
Normally not. With precision 1 or 2, very detailed paths can change slightly – always check the preview.
Why keep IDs?
If your CSS or JavaScript selects parts of the SVG by id or class, tick “Keep IDs and classes”.
Are my images uploaded by the SVG Optimizer?
No. The SVG Optimizer works inside your browser, so your images stay on your device.