Skip to main content
KalkuNet

SVG Optimizer — Shrink SVGs Without Changing How They Look

Remove XML comments, editor metadata & excess whitespace from SVG markup.

Runs in your browserImage · Format Conversion & SVG
Or paste SVG code
Number rounding:

When to use the SVG Markup Minifier & Metadata Stripper

  • Lighter web icons and logos

    SVGs exported from Inkscape, Illustrator, Figma or Sketch carry comments, editor metadata and long decimals. Removing them often shrinks the file by 30–70% without changing the picture.

  • Checked visually

    Every result is rendered next to the original and compared pixel by pixel, so you see at once whether it looks identical or needs lighter rounding.

  • Rounding without drift

    Path coordinates are rounded as absolute positions and relative commands are recalculated from those rounded positions, so rounding errors never add up along long paths.

  • What matters stays intact

    Text and its spacing inside <text>, CSS in CDATA, referenced ids, xlink:href and a DOCTYPE that declares entities are left untouched. Gzip sizes before and after are shown too.

Frequently asked questions

What gets removed?

Comments, the XML declaration, metadata blocks, editor elements and attributes (Inkscape, Sodipodi, Illustrator, Figma, Sketch, Serif), empty groups and defs, whitespace between tags, and namespace declarations no longer used.

Are SVGs with scripts safe?

Scripts and event attributes are left as they are, with a warning. Do not inline SVGs from untrusted sources into a page; use them as <img>, which does not run scripts.

Can I optimise many files at once?

Yes, up to 50 files. Each one gets its own visual check, and all results can be downloaded as one ZIP of .min.svg files.

Are my files uploaded?

No. Optimisation, the comparison renders and the ZIP all happen in your browser.

Learn more