SVG Optimizer & Minifier

Strip comments, metadata and whitespace from SVG. Export minified, as a CSS data-URI or an img tag.

Frequently asked questions

What does the SVG optimizer remove?

Comments, XML and DOCTYPE declarations, editor metadata (Inkscape/Sodipodi namespaces and elements), and redundant whitespace between tags. The visual result is unchanged while the file gets smaller.

Can I use the SVG as a CSS background?

Yes. Switch the output to CSS data URI and you get a ready background-image rule, or pick the img-tag option for inline HTML. Data-URI SVGs avoid an extra HTTP request for small icons.

Does it run in my browser?

Yes, the optimization is pure client-side string processing. Your SVG is never uploaded.