SVG minifier

Shrink SVG files by stripping comments, editor metadata, and extra whitespace.

Minified in this browser. The markup is not sent anywhere.

Removes comments, editor metadata (Inkscape/Sodipodi/Figma exports), and whitespace between tags. Paths and geometry are not touched. Preview fidelity is not verified — check the output renders before replacing files.

How to use

  1. Paste the SVG markup.
  2. Minify it.
  3. Copy or download the result.

What it supports

Removes comments, Inkscape/Sodipodi/Figma-style editor metadata, the XML declaration, and whitespace between tags. Paths and geometry are untouched — verify the output renders before replacing files.

Related tools

Related guides