Support Us

SVG Optimizer

Clean, compress and optimize SVG files by removing metadata, comments, and redundant code. Preview before and after — all locally in your browser.

100% Local · Never Uploaded
Remove comments
Remove metadata
Remove editor data
Collapse useless groups
Remove empty attrs
Remove hidden elements
Round/rewrite paths
Remove default values
Minify (remove whitespace)
Input SVG
Optimized SVG

Was this tool helpful?

Frequently Asked Questions

XML declarations, DOCTYPE, HTML comments, metadata tags, Inkscape/Illustrator-specific data and namespaces, empty attributes, default values, and floating-point path coordinate rounding.
No — the optimizer removes invisible data. Always use the before/after preview to verify before using the optimized file.
SVGs from Illustrator or Inkscape typically contain 30–70% redundant data. Expect 40–60% reduction from a fresh design tool export.
Minification removes all whitespace and newlines that aren't part of string values, producing the smallest possible file. Minified SVGs render identically to formatted ones.