PB
Available
tune
lock Free · Private · In-Browser

SVG Optimizer

Minify SVG by removing comments, declarations, and whitespace, with a byte-savings readout.

Shrink SVG the safe way

SVG exported from design tools carries baggage: an XML declaration, editor comments and metadata, and generous indentation. None of it affects how the graphic renders, but all of it inflates the file — which matters when the SVG is inlined in HTML or CSS and shipped on every page load.

This optimizer removes only the safe things: the declaration, comments, any DOCTYPE, the whitespace between tags, and runs of extra spaces. It deliberately does not round coordinates or rewrite paths, so what you paste and what you get look identical. The readout shows exactly how many bytes you saved.

Private and instant

Minification happens locally in your browser. Nothing is uploaded.

Frequently Asked Questions

What does this remove?

It strips the XML declaration, comments, any DOCTYPE, whitespace between tags, and runs of extra spaces — the safe wins that shrink a file without changing how it renders.

Does it change the shape or numbers?

No. It never rounds coordinates or rewrites paths, so the visual output is identical; only markup that does not affect rendering is removed.

Is it private?

Yes. Minification runs entirely in your browser and nothing is uploaded.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward