Daldal Tools

SVG Optimizer

Strip editor leftovers from an SVG and shrink it, with control over coordinate precision, viewBox and id names, all in your browser.

Runs in your browserFree to use

Files are processed in your browser and are never uploaded to a server.

Coordinate precision

Decimal places kept in path data.

Repeats until it stops shrinking. A little slower, a little smaller.

Adds line breaks and indenting. The file gets bigger.

Only safe when CSS sets the size everywhere the icon is used.

Breaks anything referencing those ids from outside the file.

Files are processed in your browser and are never uploaded to a server.

How to use

Free to use with no sign-up, no install and no usage limit.

Paste an SVG or drop the file in, and the cleaned version appears next to it with the before and after sizes. Exports from Figma, Illustrator and Sketch carry editor-only attributes, comments and unused ids that have nothing to do with the drawing, and an icon set full of them makes a whole page heavier than it needs to be.

Coordinate precision is where most of the saving lives. Editors write path data to many decimal places; for an icon drawn at twenty-four pixels, three decimals is already far finer than a screen can show. Lower it and watch the preview, because curves do eventually get visibly angular.

Removing the viewBox is off by default and should stay off unless you know the icon is sized by CSS everywhere it is used. Without a viewBox the drawing cannot scale, and the usual symptom is that it disappears completely rather than looking wrong.

Shortening ids is also off by default. It saves a little, but if any id is referenced from outside the file, from CSS, from a script or from a use element in another document, that reference breaks silently.

The preview renders the optimized SVG, not the original, so you are looking at exactly what you are about to download. Comparing it against the source is the only reliable way to tell whether you pushed the precision too far.

The file never leaves your browser. The optimizer itself is loaded only when you press the button, so opening the page costs nothing.

Tools people use next