Skip to content

SVG optimizer

Strip editor junk and shrink SVG markup.

Runs in your browser

About SVG optimizer

SVGs exported from Illustrator, Figma or Sketch carry editor junk that doubles their size. Clean it out, round numbers sensibly, and get a lighter file that renders exactly the same, with a before-and-after preview.

  • Keep IDs if you animate or style elements by ID.
  • Check the preview after enabling aggressive path merging.
  • Batch optimize an entire icon set and download a zip.

How to use it

  1. 1Drop SVG files or paste SVG markup.
  2. 2Choose the optimizations; the defaults are safe.
  3. 3Download or copy the optimized SVG.

Questions

Will the SVG look different?
Not with the default settings. The preview shows both so you can confirm.
How much smaller will it get?
Typically 30 to 70% depending on how much metadata the editor added.
Is anything uploaded?
No. Everything runs in your browser, so your files never leave your device.

More developer tools