SVG optimizer
Make SVG files smaller without changing how they look.
Using toolbook means you agree to our Terms and Privacy Policy.
or drag it here
SVG file
Your files stay on your device
How to use it
Drop an SVG here to strip out the clutter design apps leave behind, often halving the file. Compare before and after side by side. Your file stays private.
SVGs saved from Figma, Illustrator, or Inkscape carry lots of hidden extras the picture doesn’t need — notes from the app, unused labels, and numbers with far too many decimal places. On a small icon, that can be most of the file.
Drop your SVG onto the box above. You see the new size straight away, with before and after previews to check nothing changed.
Two decimal places is the sweet spot: invisible at normal sizes, and it often trims a third of the file. Going down to zero can warp small icons.
Every option here is safe on any file. We skip the riskier tricks other optimisers use, because a smaller file isn’t worth a broken one.
FAQ
Will it change how my SVG looks?
It shouldn’t — it only removes things that don’t affect the picture. The before and after previews let you check.
How much smaller will it get?
Files from design apps often shrink by half or more. Hand-written ones may already be small.
What does “Remove width/height” do?
It lets the SVG grow or shrink to fit wherever you put it. Skip it if you need a fixed size.
Is this the same as SVGO?
It’s a safer, gentler version. SVGO can save more, but sometimes changes the drawing.
How it worksFor the curious
Removed: comments, Inkscape and Sodipodi namespaced attributes and namedview elements, Illustrator generator comments and metadata blocks, and ids nothing references. Ids are checked against url(#id) references, href targets, and selectors in style blocks, so gradients, clip paths, and filters keep working.
Path data is usually the largest part of an SVG, and exporters write coordinates at full floating-point precision — 12.703124999999998 where 12.7 draws the same line. The precision slider rounds them.
Merging paths, converting shapes to paths, and collapsing groups with transforms are deliberately not done. Those SVGO-style plugins save more but can change the drawing subtly; this tool is a conservative subset.
“Remove width/height” deletes the fixed size attributes and keeps the viewBox, so the SVG scales to its container.