fixtdoc

SVG Optimizer

Clean the comments, metadata, and editor leftovers out of an SVG. The picture stays identical, the file gets smaller.

Files stay on your device

Drop an SVG file, or click to browse

or
Choose files

Or paste SVG code below. Input is sanitized first (scripts and handlers stripped), then cleaned of editor cruft.

Frequently asked questions

What does the optimizer remove?

Comments, the metadata element, and Inkscape or Sodipodi editor leftovers (namespaced elements, attributes, and namespace declarations), plus whitespace between tags. It deliberately keeps everything that affects how the SVG draws, including the viewBox.

Is the input made safe first?

Yes. Every SVG runs through a sanitizer before optimizing: script elements, event handler attributes, and external references are stripped, so the code you copy or download cannot smuggle active content.

Will the optimized SVG look different?

No. The removals are limited to content that never renders. The preview shows the optimized file, so you can confirm the picture is unchanged before downloading.

Why is my file only a little smaller?

This optimizer is conservative by design: it does not rewrite paths, round coordinates, or merge shapes the way aggressive optimizers do. Files exported from editors with heavy metadata cruft shrink the most.