How to use SVG optimizer
- 1
Choose an SVG file or paste SVG code.
- 2
Adjust the decimal places and options. The optimized SVG and its size appear straight away.
- 3
Compare the two previews, then download the optimized SVG, copy the code, or save a PNG at the size you need.
What this tool does
The SVG optimizer cleans up vector graphics exported from design tools, which often carry metadata, hidden layers and numbers with far more precision than a screen can show. Smaller SVGs load faster and are easier to inline in HTML or CSS.
Features
- SVGO 4, the standard SVG optimizer, with its safe default preset.
- Decimal places from 0 to 5, and repeated passes for extra savings.
- Options to remove width and height, keep IDs, or output readable, indented code.
- Before and after previews side by side, with the size saved.
- Downloads: the optimized .svg, or a PNG at the original size or 256 to 2048 pixels wide.
Limits
- Embedded raster images inside the SVG aren't recompressed. Use compress image for those first.
- SVGs that rely on scripts or external files may behave differently after optimization; check the preview.
Where your file is processed
This tool works in your browser: your SVG is optimized on your own device, so it isn't sent to our server for this tool. Some other tools on UtiloNest do use our server, and their pages say so.
Frequently asked questions
What does an SVG optimizer remove?
Things browsers don't need, such as editor metadata and comments from Illustrator, Inkscape or Figma, empty groups, default attribute values, unused definitions and over-precise numbers. Shapes are rewritten as shorter paths and colours as short codes. The drawing looks the same.
Which decimal places setting should I use?
For icons and logos, 1 or 2 decimal places are usually invisible to the eye and save the most bytes. If curves or small details shift in the optimized preview, raise it to 3.
Will my SVG still scale and stay accessible?
Yes. The viewBox is always kept, so the SVG scales cleanly, and the title element stays for screen readers. Tick "Remove width and height" if you want the SVG to fill its container in CSS.
When should I keep IDs?
Keep them if your CSS, JavaScript or animation refers to elements by ID, such as a #logo-text selector. Otherwise IDs are shortened or removed, which saves space.
Is my file uploaded?
No. SVGO runs in your browser, and the previews are shown as images that can't run scripts or load outside files.