SVG Optimizer
Paste or drop an SVG and watch it shrink. Both versions are rendered side by side, so you can see that nothing visible changed.
Runs entirely in your browser. Nothing is uploaded.
Drop an SVG file here
Or paste the markup below
Processed in your browser. Nothing is uploaded.
Press Esc to clear
What to remove
3 is beyond what any screen can show
Nothing that affects rendering is touched — no merged paths, no collapsed groups, no removed definitions. Those are where other optimisers occasionally break an icon.
About the SVG Optimizer
An SVG exported from a design tool is mostly not the drawing. It carries the editor's own namespaces and layer names, a generator comment, an XML declaration, a metadata block full of RDF, and coordinates written to fourteen decimal places. On a typical icon that overhead is more than half the file, and none of it affects a single pixel.
Removing it is where nearly all the saving is. Rounding coordinates is the other half: three decimal places is already finer than any display can resolve, and the difference between 12.000000001 and 12 is not something a screen can render differently. Together those two usually take 40 to 70 percent off an exported file.
What this tool deliberately does not do is the aggressive part. It will not merge paths, convert shapes into paths, collapse groups or remove definitions it thinks are unused. Those transformations are where optimisers occasionally break an icon — a gradient that turns out to be referenced, a group carrying a transform that matters — and they save far less than the metadata does. A tool that silently changes how your logo renders is worse than one that saves fewer bytes.
The title element is kept by default, because it is the accessible name of the graphic. Removing it makes the file smaller and the page worse for anyone using a screen reader, which is not a trade worth making silently.
Both versions are rendered side by side so you can confirm nothing changed, and the whole thing runs in your browser.
Frequently asked questions
Will optimising break my SVG?
Not here. Only metadata, editor attributes and excess numeric precision are removed — nothing that affects rendering. Path merging and group collapsing, where other optimisers occasionally break things, are deliberately not done.
How much smaller will my file get?
Typically 40 to 70 percent for something exported from a design tool, because most of what is in that file is editor metadata rather than drawing.
Why is the title kept?
Because it is the accessible name for the graphic. Removing it saves a few bytes and makes the page worse for screen reader users.