What this does
Runs your SVG through SVGO, the standard SVG optimizer. It removes metadata, comments, hidden elements, redundant attributes, and rounds path coordinates — typically shaving 30–70% off the file size with no visible change.
Toggles
- Multipass — runs the optimizer repeatedly until no further changes happen. Slower, slightly smaller output.
- Remove viewBox — off by default for safety: removing viewBox breaks responsive scaling. Turn on only if you know the SVG will always render at fixed dimensions.
- Clean up IDs — shortens and dedupes
idattributes. Disable if your CSS or scripts reference specific IDs. - Remove width/height — leaves only the viewBox so the SVG scales to its container. Good for icon systems.
When to skip optimization
- SVGs used as direct illustration assets, where editing is more important than file size.
- SVGs with custom animations or scripts — SVGO can occasionally rewrite attributes in ways that break interaction. Always check the preview.
Privacy
SVGO is bundled and runs entirely in your browser. The optimizer loads on demand so the rest of the site stays light.