OneSVG Studio

Free Online SVG Optimizer (SVGO)

Upload an .svg file — we run SVGO preset-default with multipass, strip Inkscape metadata, merge paths, round coordinates. Live preview, copy the code, or download .min.svg.

SVG Optimizer
Upload an SVG — we run SVGO and show you the comparison.
Decimal precision3

Lower = smaller file but paths may drift by a few pixels. 3 is a balanced default.

About SVG Optimizer

SVG files exported from Illustrator, Figma, or Inkscape often carry a lot of junk: comments, editor namespaces, auto-generated ids, 10-digit decimal coordinates. SVGO (SVG Optimizer) by Kir Belevich is the standard tool for stripping all of that away without changing the rendered shape.

We use SVGO preset-default with multipass enabled — multiple optimization rounds, each applying 30+ plugins. Decimal precision is adjustable (0-10) to balance size vs. path accuracy. The viewBox is preserved so the SVG stays responsive.

  • SVGO preset-default with multipass
  • Decimal precision slider (0-10)
  • Before/after SVG preview
  • Size comparison and % saved
  • Copy code or download .min.svg
  • viewBox preserved for responsive layouts

How to optimize an SVG

  1. 1

    Upload the SVG

    Drop a .svg file into the upload area. Files up to 25MB (huge for SVG).

  2. 2

    Adjust precision

    3 is the default. Drop to 1-2 for icons, raise to 5-6 for detail-sensitive graphics.

  3. 3

    Click Optimize

    SVGO runs server-side, usually under 1s. Your machine does nothing.

  4. 4

    Compare and download

    See before/after sizes and % saved. Copy the code or download the .min.svg.

When to use SVG Optimizer?

Shrink icons for a web project
Illustrator icons are often 8-15KB; post-SVGO they drop to 1-3KB. 100 icons = megabytes saved.
Prep SVGs for inlining
Inline SVG in HTML needs to be compact so it doesn't bloat payloads — SVGO handles that perfectly.
Reduce email-marketing payloads
Tiny SVG logos load faster in inboxes, improving read rates.
Clean up Figma exports
Figma exports carry many redundant ids — SVGO drops them without changing the shape.

SVG Optimizer FAQ

Will SVGO break my CSS animations?
Not if ids and classes are preserved. Our default preset keeps ids (via removeIds disabled) and the viewBox. If your script or CSS references specific ids, raise precision.
Does it handle SVGs with base64 <image> tags?
Yes, SVGO won't strip <image>. But that isn't pure SVG — use Color Vectorize to convert the raster into real paths.
Does the output visibly differ from the original?
Not noticeably. The default precision of 3 rounds to 0.1 pixels — imperceptible to the eye.
Can I optimize many files at once?
Currently one file per run. For bulk, use Batch Convert (with the right engine) or call /api/optimize multiple times.