All tools

SVG Minifier

Strip comments, metadata, and whitespace from SVG.

Before

202 B

After

140 B

Saved

31%

Minified
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="#6366f1"/></svg>

Before

After

About

Paste SVG markup. The minifier removes comments, editor metadata (Inkscape/Illustrator namespaces), unused attributes, and extra whitespace. Output is the same image, just smaller.

How to use

  1. Paste SVG.
  2. See the size before and after.
  3. Copy the minified version.

FAQ

Will it break my SVG?+

Conservative defaults are safe for almost any hand-coded or exported SVG. If you have unusual scripts or filter chains, double-check the rendered output before shipping.