SVG Optimizer — Minify SVG with SVGO
Optimize and minify SVG files with SVGO — strip metadata, round numbers and shrink file size, in your browser.
About SVG Optimizer — Minify SVG with SVGO
Clean up and shrink SVG files with SVGO, the standard SVG optimizer. Paste your SVG and it strips editor metadata, comments and hidden cruft, collapses groups, and rounds path coordinates to a precision you choose — typically cutting 30–70% off exported icons from Figma, Illustrator or Sketch without changing how they look.
Toggle the options that matter: multipass runs the optimizer repeatedly for a smaller result, precision controls how many decimals path numbers keep, and 'remove width/height' drops fixed dimensions so the SVG scales to its container (handy for responsive icons). The before/after byte count shows exactly what you saved.
SVGO runs entirely in your browser — your SVG is never uploaded. Copy the optimized markup or download it as a file, ready to inline in HTML/JSX or ship as an asset.
Optimized icon
<svg ...><!-- comment --><path d="M12.00000 2.0000 L 2 7 ..."/></svg>
<svg ...><path d="m12 2-10 5..."/></svg>
Comments removed, numbers rounded, whitespace stripped.
Frequently asked questions
Is my SVG uploaded to a server?
No. Optimization runs in your browser with SVGO compiled to run client-side. Nothing is sent anywhere.
Will optimizing change how my SVG looks?
It shouldn't — the default preset is lossless in appearance. Very low precision can visibly distort fine paths, so raise precision if you notice artefacts.
What does 'remove width/height' do?
It strips the fixed width and height attributes while keeping the viewBox, so the SVG scales to fill its container. Leave it off if you rely on the intrinsic size.
What is multipass?
It runs the optimizations repeatedly until the output stops shrinking, which can squeeze out a bit more size at the cost of a little extra processing.
Does it work on complex illustrations?
Yes, though very large files take longer. Everything is processed locally, so big SVGs depend on your device's speed.