Image Tools
Optimize and Minify SVG Files
Shrink SVG files by removing editor data, comments and needless precision. Paste the code or add a file, then copy or download the result.
- Runs in your browser
- SVG is not uploaded
- Built by Derar Sattouf
Guide
About the SVG Optimizer
The SVG optimizer makes SVG files smaller by removing what a browser does not need to draw them. It runs SVGO, the open-source SVG optimizer, in your browser to strip editor metadata and comments, shorten path data and round numbers. Paste the code or add a file, compare the before and after previews, then copy or download the result.
By Derar Sattouf · Last updated November 2026
How to use it
- 01Paste SVG code into the Original box, or add an .svg file.
- 02Check the size of the optimized code and compare the two previews.
- 03Adjust Decimal places and the other options if you need to.
- 04Click Copy to copy the optimized code, or Download to save it as a file.
Features
- SVGO optimizations in your browser
- Precision from 0 to 6 decimals
- Keep IDs, drop size, indent output
- Size before and after, with side-by-side previews
- Paste code or add a file up to 5 MB; nothing is uploaded
Frequently asked questions
Is my SVG uploaded?
No. This tool runs in your browser: the SVG is opened and processed on your device and is never sent to my server or to anyone else. Only the page itself is loaded from my hosting provider, which keeps standard request logs (time, IP address and URL), as it does for every page.
What does the optimizer remove?
Things that do not affect the drawing: comments, the XML declaration and doctype, metadata left by editors such as Inkscape, Illustrator and Sketch, empty groups and attributes, default values and unused definitions. It also shortens path data, merges paths, writes colours in their shortest form and rounds numbers to the precision you set.
Will the optimized SVG look the same?
It should: SVGO's default optimizations are meant to keep the drawing unchanged. The setting most likely to cause a visible difference is a low number of decimal places on small or very detailed drawings. Compare the two previews, and raise Decimal places if a shape shifts.
When should I keep IDs?
By default, IDs that are referenced inside the file are shortened and unused ones are removed. Turn on Keep IDs as written if your CSS or JavaScript targets parts of the SVG by ID, or if other files point into it with use references.
Is the viewBox kept?
Yes, and so is the title element. Turning on Remove width and height drops the fixed size and leaves the viewBox, so the SVG scales with its container.
How much smaller will my SVG get?
It depends on where the file came from. Files exported by design tools usually carry the most removable data, while hand-written or already optimized SVGs shrink little. The page shows the size before and after, so you can see the saving for your own file.
Is it free? Do I need an account?
Yes, it is completely free with no sign-up, no watermark on your results and no daily quota. Open the page, add your images and download the output.