Skip to content
Icon Pantry

SVG optimizer

Make SVG files smaller without changing how they look. Uses SVGO to remove editor metadata, round numbers and merge paths, then shows you the before and after.

How it works

  1. Choose an SVG file or paste SVG code.
  2. Pick the number precision and the options you want.
  3. Compare the original and optimized preview side by side.
  4. Copy the code or download the optimized SVG.

Questions

Something else? Every tool runs in your browser, so nothing you add is uploaded.

How much smaller will my SVG get?

Files exported from Illustrator, Figma or Inkscape usually shrink by 30 to 80 percent, because they carry metadata, editor attributes and long decimal numbers. Already clean icons shrink less.

Will it change how my SVG looks?

Not at precision 2 or higher for icons. For detailed illustrations or maps, use precision 3 or 4 and compare the two previews before you download.

What is SVGO?

SVGO is the standard open source SVG optimizer, used by most build tools. This page runs it in your browser with its default preset plus the options you pick.

Should I remove width and height?

Remove them when the SVG should scale with CSS, like icons and logos in a layout. Keep them if you open the file in apps that need a fixed size.

Is my file uploaded?

No. Everything runs in your browser and your file never leaves your computer.

More free tools