SVG Optimizer: Compress & Minify SVG Online

Runs SVGO, the same engine behind SVGOMG, right in your browser. Typical exports from Illustrator, Figma and Inkscape shrink 30–70%.

Loading the SVG Optimizer tool…

Processed on your device. Files are never uploaded.

How to use the SVG Optimizer tool

  1. Drop or paste one or more SVGs.

  2. Adjust precision and toggles while watching the before/after preview and the byte count.

  3. Download the optimized file(s) or copy the code.

What gets removed

Editor metadata (Inkscape and Sketch namespaces, Illustrator comments), empty groups, default attribute values, hidden elements and redundant path commands. Coordinates are rounded to the precision you choose and paths are rewritten in their shortest form.

Precision is the big lever

Design tools often write coordinates like 12.3456789. Rounding to 1–2 decimals rarely changes anything visible on icons drawn at 24–512 px, but it can halve the file. Drop precision too far and curves start to wobble; the explainer below lets you see exactly where that happens.

Questions

Is this the same as SVGOMG?

It uses the same open-source engine, SVGO (v4), with a curated set of options. Like SVGOMG, it runs locally, so your files are never uploaded.

Will optimizing break my SVG?

Default settings are safe for icons and illustrations. If you reference IDs from CSS or JavaScript, turn on “Keep IDs”. If you animate the SVG, keep precision at 2 or higher.

Should I also gzip SVG?

Yes. Web servers (and Vercel, Netlify, Cloudflare) compress SVG with gzip or Brotli automatically, which typically cuts another 50–80%. Optimizing first makes that compressed size smaller too.