SVG Optimizer
SVG Optimizer shrinks SVG files with SVGO, the standard optimizer. Drop one SVG or a whole folder, see before and after side by side, choose how many decimals to keep and download a ZIP. It runs in your browser, so your files are never uploaded.
How to use SVG Optimizer
- Drop your SVG files, or load the sample.
- Check the before and after pictures, and change the options if something looks off.
- Copy the result or download it, or download all files as a ZIP.
Frequently asked questions
Are my SVG files uploaded?
No. SVGO runs in your browser, loaded from this site only after you add a file. Nothing is sent anywhere.
Will it change how my SVG looks?
It should not, and the before and after previews let you check. It removes comments, editor data (Inkscape, Illustrator, Sketch), unused definitions and hidden elements, shortens numbers and paths, and merges shapes. If something changes, raise the decimal places or turn on Keep ids.
Why does it keep the viewBox?
The viewBox is what lets an SVG scale to any size. Removing it is the most common way optimizers break icons, so it is always kept. You can remove width and height instead.
What does “returned as it was” mean?
If the optimized version is not smaller than your file, the tool gives you the original rather than a bigger one. Files that are already minimal are common.
Does it remove scripts?
Only if you ask, with Remove scripts and event handlers. For untrusted files use the SVG Sanitizer, which is built for that.
Next step
Need a picture instead of a vector? Convert the SVG to PNG. Open SVG to PNG Converter.
Related tools
- 109
- 116