SVG Optimizer

Run SVGO in your browser to shrink SVG files, with byte-level before and after stats.

Input
What it does

Runs the real SVGO optimizer engine on your SVG, right in your browser, and shows byte level before and after stats. Comments, editor metadata (Inkscape and Illustrator cruft), and redundant precision get stripped, paths get merged and shortened, and the result is a smaller file that still renders identically. Toggle multipass, decimal precision, viewBox handling, pretty printing, and id cleanup to match your needs.

How to use it

Paste an SVG file's markup or drop the file itself into the input. Adjust the options if you want a different tradeoff (higher precision for detailed illustrations, pretty printed output for readability, or keep unused ids for scripts and ARIA references). Copy the optimized SVG from the first output row, or read the before, after, and saved byte counts underneath.

Why this one

The popular SVGO web frontends make you upload your artwork to a server, and many of them lag behind the actual SVGO releases with outdated defaults. This tool runs the current SVGO engine locally: your files and inputs never leave your device. A side by side preview and PNG export are coming next.

FAQ
Is this the real SVGO, or a reimplementation?
It is the actual SVGO engine, the same one that popular web based SVG optimizers wrap around a server upload.
Why does it keep the viewBox attribute by default?
Removing viewBox breaks an SVG's ability to scale responsively with CSS, so it is protected unless you turn off "Keep viewBox".
Is my SVG file uploaded anywhere?
No. Optimization runs entirely in your browser: your files and inputs never leave your device.