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.

Privacy settings

Checking…

We count anonymous tool use and coarse errors to improve ToolDeck. We do not send your files, pasted text, generated links, or results. Normal network delivery still exposes connection metadata to Cloudflare. Your choice is stored only in this browser's local storage — we do not create a visitor ID. Decline opts out; your browser's Global Privacy Control or Do Not Track signal overrides any choice.

Developer feedback