SVG Optimizer & Viewer

Optimize SVG files with SVGO and preview the result.

Paste SVG markup or choose a .svg file to shrink it with SVGO and see the result rendered next to the original size and the savings. Adjust the number precision, run multiple passes for a smaller file, or pretty-print the output, then copy the code or download the optimized file. The preview is rendered as an image, so scripts inside an SVG never run. Nothing is sent to a server.

Paste SVG markup or choose a file to optimize it and preview the result. Everything runs in your browser.

SVG source

SVG

Optimized