SVG Minifier

Shrink SVG markup with SVGO — no signup, nothing leaves your browser.

This free online SVG minifier strips comments, metadata, and excess path precision from your SVG markup using SVGO's optimizer. Paste markup or upload a .svg file, tune a couple of options, and copy the minified result.

Upload SVG file

Remove comments

Remove metadata & titles

Strips <title>, <desc>, and <metadata> elements. Turn off if you rely on <title> for accessibility.

Path precision

Lower values round coordinates more aggressively for smaller files.

SVG Input
Minified SVG
Before: After:

Loading minifier…

Frequently asked questions

Paste your SVG markup into the input, or upload a .svg file. The minified output appears automatically on the right, along with a byte-size comparison showing how much smaller it is.
No. Minifying only removes redundant data — comments, metadata, unnecessary whitespace, and excess decimal precision in path coordinates. The rendered appearance stays the same, though reducing precision too aggressively on very detailed paths can occasionally introduce tiny visual differences.
SVGO's default preset strips comments, XML declarations, editor metadata (like Illustrator or Figma export cruft), collapses whitespace, merges paths where possible, and rounds numeric precision — all without altering the visible output.
No. Minification runs locally in your browser using SVGO's client-side library — nothing you paste or upload is ever sent to a server.

Related tools: SVG Viewer · SVG to PNG · SVG Background Remover