Minify and clean up SVG with SVGO
- Free
- No sign-up
- No upload
- Batch
- Works offline
Tool facts
- Opens
SVG- Saves as
SVGZIP- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- Yes, several files at once
- Offline use
- Works without a connection once this page has loaded
- Built with
- SVGO and fflate
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About SVG Optimizer
SVG Optimizer shrinks SVG files by running SVGO 4 with its default preset directly in your browser. It removes editor metadata, comments, XML declarations, empty groups and hidden elements, shortens colors and IDs, merges paths and rounds coordinates, which typically cuts files exported from Illustrator, Figma, Inkscape or Sketch by 30 to 70 percent without changing how they look on screen.
Paste SVG code or drop one or many .svg files. Each file shows its size before and after and the percentage saved, with a side-by-side preview of the original and the optimized image so you can spot any visual change. Adjust the number precision, turn individual cleanups on or off, then copy the code, download a single file or download all files as a ZIP. Files never leave your device.
SVG Optimizer runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use SVG Optimizer
- Paste SVG code into the Input box, or drop one or more .svg files on the drop area.
- Set the Precision and toggle options such as Remove viewBox, Remove width and height or Pretty print.
- Compare the Before and After previews and check the size reduction.
- Click Copy or Download, or Download ZIP when you optimized several files.
Frequently asked questions
Will optimizing change how my SVG looks?
Normally not. The default SVGO preset only applies safe transformations. Very low precision (0 or 1) can visibly shift small details, so compare the Before and After previews and raise the precision if shapes move. Keep Remove viewBox off unless you know you need it, because without a viewBox the image can no longer scale.
Are my files uploaded?
No. SVGO runs as JavaScript inside this page, so the SVG code is processed on your device and nothing is sent to a server. You can disconnect from the internet after the page has loaded and it still works.
What does the precision setting do?
It sets how many decimal places are kept in coordinates and other numbers. The default of 3 is visually lossless for icons and illustrations; 1 or 2 gives smaller files for large drawings, while 4 or more is useful for tiny icons that are scaled up a lot.
Why should I keep the IDs or the title?
Turn off Clean up IDs when CSS or JavaScript on your page targets elements inside the SVG by ID, because the optimizer renames or removes IDs it considers unused. The title element is kept by default because screen readers use it as the accessible name of the image.
Is it safe to preview an SVG from an unknown source?
Yes. Previews are shown as images, and browsers never run scripts or load external files from an SVG displayed that way. The optimizer itself does not remove script elements, so do not inline untrusted SVG code into your own web pages.