Clean your SVGs before you ship them

Run exported SVGs through SVGO or SVGOMG to strip editor junk and shrink the file.

Tool
SVGO
Published
20 Aug 2026
Disciplines
WebGraphic
  1. Export the icon or illustration as SVG.
  2. Drop it into SVGOMG in the browser, or run npx svgo file.svg.
  3. Keep the viewBox, remove fixed width and height, and check the preview still matches.

Files often shrink by half, and cleaner markup is easier to recolour with CSS.