svgby garagemade

Optimize an SVG, online

svgby garagemade
0,0browser-local
Drop an SVG to start
or pick a sample on the home page

SVG files from design tools carry a lot of weight that browsers don't need — editor metadata, comments, long decimal coordinates, redundant attributes. This runs SVGO in your browser to strip that and round numbers, making the file smaller while it renders exactly the same. Your file is never uploaded.

How to optimize an SVG

  • Drop your SVG. It stays in your browser.
  • Click “Optimize”. You'll see the size before and after.
  • Confirm it looks identical in the preview.
  • Export the smaller SVG.

What optimizing does

  • Strips editor cruft: comments, metadata, Inkscape/Illustrator namespaces.
  • Rounds long coordinates to a sane precision — usually the biggest saving.
  • Removes redundant attributes and empty groups/defs.
  • Keeps the viewBox and every referenced id (gradients, clip paths, masks, use) intact.

Why smaller SVGs matter

  • Faster page loads and better Core Web Vitals, especially for inline icons.
  • Less to ship in your bundle or your CSS.
  • Cleaner markup that's easier to read and edit.

Frequently asked questions

Will optimizing change how my SVG looks?
No. It rounds numbers and removes unused data within a safe margin; the rendering is unchanged.
Does it keep my gradients and clip paths?
Yes. Referenced ids are preserved, so gradients, clip paths, masks, and use references keep working.
My file barely got smaller — why?
It was probably already clean. There isn't always weight to remove, and we report the real number rather than pretend.
What exactly gets removed?
Comments, editor metadata and namespaces, redundant attributes, empty groups, and excess decimal precision on coordinates.
Is the viewBox kept?
Yes, always. The viewBox is never removed.
Are my files uploaded?
No. Optimization runs in your browser (in a background worker).
Is it free?
Yes. No signup, no watermark.