Skip to content

SVG Optimizer

Optimize static SVGs locally with SVGO. Compare the result and download individual files or a ZIP.

Paste static SVG, or choose local files. Up to 12 files, 1 MB each.

Add SVG source or files to start.

How to use

  1. Paste SVG markup or choose up to 12 SVG files, each no larger than 1 MB.
  2. Choose precision and cleanup options, then select Optimize SVGs.
  3. Compare each original with its optimized result and download the files you want.

Example

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><path fill="#2563eb" d="M 20 20 L 100 20 L 100 100 L 20 100 Z"/></svg>

Details and limitations

SVGO runs in a local worker. Files and SVG source are never uploaded. Each file has a 12-second processing deadline.

The conservative default keeps viewBox, IDs, groups, metadata and accessibility text. Coordinate rounding may slightly change geometry; inspect the previews before using a result. Path merging is optional.

The static SVG profile supports inline styles, shapes, text, gradients, common local filters and #fragment references. It rejects scripts, stylesheets, animation, embedded images, external references, document declarations, CSS variables and unsupported CSS functions. Previews use image elements, never page markup. To bound rendering work, previews are withheld for filters, use, patterns, masks, markers, files over 100 KB or more than 2,000 XML tags. Optimization still preserves those supported features for download.

Some SVGs grow after optimization. The result reports growth honestly and still lets you download it. Byte counts compare the original input with the optimized output.

FAQ

Does optimization always reduce file size?

No. Already compact files or SVGO's serialization can produce a larger result. Compare the byte count and preview before downloading.

Format references

Tool page updated: