SVG Optimizer

Clean and shrink SVG files in your browser — strips editor cruft and comments, with no upload and no quality loss.


Drop an SVG here and I’ll tidy it up.

or tap to choose a file



How to use

  1. Drop an SVG file onto the box, or paste your SVG code into the markup field.
  2. Choose what to clean — remove titles/descriptions and round long numbers to fewer decimals if you like.
  3. Press Optimize, see how much smaller it got, then copy or download the cleaned SVG.

FAQ

Is my SVG uploaded anywhere?

No. Your SVG is parsed and cleaned entirely in your browser using the built-in XML tools — it never leaves your device, so the optimizer works offline and keeps your artwork private.

What does it actually remove?

It strips XML comments, editor leftovers from apps like Inkscape and Adobe Illustrator (inkscape:, sodipodi: and adobe: attributes and namespaces), <metadata> blocks, empty groups, and the extra whitespace between tags. Optionally it also removes <title>/<desc> and rounds long decimal numbers in paths and coordinates. The shape of your image stays the same.

Will it change how my SVG looks?

It is designed not to. Only data that does not affect rendering is removed. Rounding numbers can shift points by a tiny fraction of a pixel, so pick more decimal places if you need pixel-perfect precision, or untick rounding entirely.