SVG Optimizer / Minifier

Shrink SVG for production or pretty-print it for reading. Live byte count and side-by-side preview, no upload, all in your browser.

Mode
Options
Live preview
Render appears here when output is valid SVG.

Tip: keep xmlns if you serve the SVG standalone (e.g. image/svg+xml); inline-in-HTML SVG does not need it.