SVG Viewer & Optimizer

Preview an SVG and minify it — strip metadata, comments, and whitespace.

Runs locally in your browser
Preview No signup · local processing

Add an SVG to preview and optimize it

Drop a file or paste markup to see it rendered, then optimize to shrink it — all in your browser.

Runs entirely in your browser

Preview and optimize SVG, locally

Paste SVG markup or upload a .svg file to see it rendered instantly and get a live before/after size. The optimizer removes XML comments, and editor namespaces, empty attributes, and collapses redundant whitespace, while leaving the artwork intact. Copy or download the cleaned SVG. Because it runs in your browser, your graphics are never uploaded.

Common questions

What does the optimizer remove?

Safe, non-visual cruft: XML comments, <metadata> and <title>/<desc> if you choose, editor-specific namespaces and attributes (like Inkscape/Illustrator data), XML declarations and DOCTYPEs, and redundant whitespace between tags. The paths and shapes are left unchanged.

Will it change how my SVG looks?

No. It only strips metadata and whitespace, so the rendered result is identical. It does not round path coordinates or merge shapes, so there is no risk of visual drift — the trade-off is a more conservative size reduction than heavy optimizers.

Can I preview before optimizing?

Yes. The preview renders your SVG as you paste or upload it, and updates to the optimized version so you can confirm it still looks right before copying or downloading.

Is my SVG uploaded anywhere?

No. Parsing, preview, and optimization all run in your browser. The markup you paste or the file you upload is never sent to a server.