Skip to main content

SVG Optimizer

New

Optimize and minify SVG files by removing unnecessary attributes and whitespace.

svgoptimizeminifycompress
Read the guide
Shortcuts:⌘ KSearch

Frequently Asked Questions

What does this optimizer actually change in my SVG?

It removes comments, optionally removes metadata/title/desc, collapses whitespace, shortens #ffffff and #000000, drops fill="black" and stroke="none", and rounds many decimal values to 2 places.

Can optimization change the look of a very detailed SVG?

Yes, it can. The number rounding step trims non-integer values to 2 decimals, which is small but still enough to affect very precise geometry.

Is this basically SVGO in the browser?

No. It is a lightweight cleanup pass, not a full structural optimizer. It does not do advanced path simplification, grouping, plugin pipelines, or viewBox rewrites.

Why did my <title> or <desc> disappear?

The “Remove metadata/title/desc” option is enabled by default. If you need those accessibility or metadata nodes, turn that checkbox off before optimizing.

Will it tell me if my SVG markup is broken?

Yes. The tool parses the input as image/svg+xml first, and if the parser reports an error it stops instead of emitting a broken optimized string.

Related Tools