SVG optimizer
Optimize SVG files with SVGO
The same optimizer build tools use, running in your browser. Pick the plugins, set the precision, drop a whole folder of icons and download them as a ZIP.
Runs in this tab. Nothing is uploaded.
Settings
Plugins
Preview
Files
| File | Original | Optimized | Saved | Actions |
|---|---|---|---|---|
| No files yet. Open or drop SVGs, paste code above, or try the sample. | ||||
How to optimize an SVG
- Add files. Open or drop one or more SVGs, or paste code. Each file is optimized as soon as it arrives.
- Check the preview. Pick a file in the list to compare the original with the optimized version side by side.
- Tune the settings. Every change re-runs all files. If something looks different, lower the precision or switch off the plugin responsible.
- Download one file, or all of them as a ZIP. Files are named like
logo.min.svg; your originals are not changed.
Which plugins matter most
Optimize path data and Round numbers usually save the most; both follow the precision setting. Clean up IDs shortens IDs, so switch it off if CSS or JavaScript selects elements by ID. Remove width/height is a popular extra: it keeps the viewBox so the SVG scales with CSS. Plugins marked as risky can change how the image looks or is announced by screen readers.
Questions
Will optimizing change how my SVG looks?
With the default plugins and a precision of 3 it almost never does. Very low precision can shift points on large drawings, and the plugins marked risky can remove things you need. Compare the previews before downloading.
Are my files uploaded?
No. SVGO runs as JavaScript in this tab, so your SVGs never leave your device. Your settings are remembered in this browser only.
Why is the optimized file bigger?
That can happen with pretty-printing turned on or with files that were already minified. Turn pretty-print off, or keep the original.
More SVG tools
- SVG RepairDiagnose and fix broken XML, missing xmlns or viewBox, editor junk, bad IDs and scripts.
- SVG OptimizerSVGO with plugin toggles, precision and multipass. Batch files and download a ZIP.
- SVG ViewerZoom and pan on a checkerboard or colour, see dimensions, file size and the element tree.
- SVG to PNGExport PNG, JPG or WebP at 1× to 8× or an exact width, with any background.
- SVG to JSXTurn an SVG into a React component with camelCase props, style objects and TypeScript.
- SVG to Data URIMinimal URL-encoding or base64, ready-made CSS background-image snippets, size comparison.
- SVG SanitizerRemove scripts, event handlers, javascript: links, foreignObject and external references.
- SVG Path EditorInspect path commands, drag points and handles, convert absolute ↔ relative, round and minify.
- SVG Sprite GeneratorCombine icons into one <symbol> sprite with IDs from file names and a usage snippet.