Developer

SVG cleaner

Shrink an SVG: remove comments, metadata and whitespace, see the savings.

  • Instant
  • Free
  • Private (processed locally)
  • No sign-up
Before: After: Saved:
Cleaned SVG

Clean SVGs, free of editor cruft

SVGs exported from drawing software carry lots of invisible data. This tool removes it without harming the drawing and shows before/after size to measure the savings.

  1. Paste the SVG

    The source code, with its comments and metadata.

  2. Read the savings

    Size before, after, and percentage saved.

  3. Copy

    The cleaned SVG, ready for the web.

What gets removed

ElementAction
Comments Removed
, Removed
inkscape:/sodipodi: attributesRemoved
Whitespace between tagsReduced
Paths, shapes, colorsKept

Everything is processed locally. The visual rendering stays identical: only invisible cruft disappears.

Frequently asked questions

What exactly does this cleaner remove?

Comments <!-- … -->, the <?xml ?> declaration, the DOCTYPE, <metadata> tags, editor-specific elements and attributes (Inkscape, Sodipodi) and useless whitespace between tags. The vector artwork (paths, shapes, colors) is kept intact.

Does the image rendering change?

No. Only non-visible data is removed: comments, metadata, editor information. The graphic elements and their style attributes stay unchanged, so the image looks exactly the same.

Why is an editor SVG so heavy?

Illustrator and Inkscape add metadata, layer ids, display preferences and namespaces that only serve editing. On a small icon, this data can exceed the weight of the drawing itself.

Is this full minification?

It is a safe, readable cleanup that does not break the file. It does not rewrite paths or round coordinates like an aggressive optimizer, but it removes most of the cruft for a clean, much lighter SVG.