developer
SVG Optimizer

Shrink SVG markup — comments, whitespace, redundant attributes and shorter path data — with viewBox and accessibility attributes preserved, after a strict safety check that rejects scripts and external references.
Input
0 B of 2.0 MB used. Paste markup — e.g. an <svg>…</svg> document — drop an .svg file here, or choose one below.
Result
Paste SVG markup or drop an .svg file on the left, then press Optimize SVG. The result — a sanitized preview, byte savings and the optimized markup — appears here.
Paste SVG markup or choose an .svg file, then press Optimize SVG.

