Instant • private • developer-friendly

SVG Optimizer

Paste SVG markup to strip comments, metadata and extra whitespace, and see exactly how much smaller it gets.

Original SVG

Optimized SVG

0 B before0 B after0% smaller

🔒 Your SVG stays on your device and is never uploaded.

Shrink SVG files without breaking them

Icons and illustrations exported from design tools often carry comments, editor metadata and inconsistent whitespace that add bytes without changing how the SVG looks. Paste your markup here to strip that cruft and preview the result before and after.

Safe by default

Only non-visual cruft like comments and metadata is removed; path data stays untouched.

Live preview

See the original and optimized SVG rendered side by side to confirm nothing changed visually.

Private by design

Optimization runs entirely in your browser. Nothing is uploaded.

SVG optimizer FAQ

What does the SVG optimizer remove?

XML comments, XML declarations, doctype, metadata, title and desc tags, editor-specific attributes and namespaces, and unnecessary whitespace between tags.

Will this break my SVG's appearance?

The default cleanup only removes non-visual cruft, so the rendered appearance should stay identical. Always preview the result before replacing your original file.

Does it re-encode paths or shapes?

No. Path data and shape coordinates are left untouched; only markup structure and whitespace are cleaned.

Is my SVG uploaded anywhere?

No. Optimization runs entirely in your browser using JavaScript.