SVG Optimizer
Exported SVGs are full of editor data. Optimize them to cut file size, often by half or more, while the image looks the same.
- Select one or more SVG files
- Choose the precision and options
- Click Optimize SVG and download
Your files never leave your device
How to optimize an SVG
Vector editors save a lot of extra information in SVG files, such as editor settings, comments and unused definitions. Add one or more SVG files, choose how many decimal places to keep and which options to use, and the tool rewrites each file in a shorter form. The picture should look the same, and the result message shows how much was saved.
- Editor metadata, comments, hidden elements and empty groups are removed.
- Redundant attributes and default values are dropped.
- Extra digits in numbers are cut: fewer decimal places make paths shorter.
A worked example
A logo exported from an editor weighs 48 KB. After optimizing it is 21 KB, so the tool reports a saving of 56 percent, because 27 divided by 48 is about 0.56. Most of the gain comes from the numbers: a coordinate like 12.345678 shortened to two decimals becomes 12.35, which saves 4 characters, and a path can contain hundreds of them.
Limits and good practice
Keep the viewBox on, because it lets the image scale to any size. Be careful with a precision of 0 or 1 on small icons, since rounding the coordinates can visibly shift curves, so compare the result with the original. Keep the original file in case you need to edit it later, because optimized code is hard to read, unless you turn on the pretty-print option.
Frequently asked questions
Are my files uploaded?
No. The SVG is optimized in your browser, and nothing is sent to our servers.
Will the image look different?
Not with normal settings. Very low precision (0 or 1) can shift fine details, so compare the result with the original.
Should I keep the viewBox?
Yes, unless you know you do not need it. The viewBox lets the image scale to any size.
What does multiple passes do?
It repeats the optimization until nothing more can be saved, which can make the file a little smaller.
Can I optimize many files at once?
Yes. Add several SVG files and download them together as a ZIP.
Does it work for animated SVG?
Usually. Animation and style elements are normally kept, but optimization can change unusual constructs, so always check the result in your browser.