SVG optimizer
Shrink an SVG with SVGO in your browser, see how many bytes it saved, and copy the result as markup or as a CSS data URI.
Runs in your browser. Nothing you enter is uploaded.
Output
CSS data URI
Preview
About this tool
This tool minifies SVG markup with SVGO, running in multipass mode inside your browser, and reports the size before and after in bytes. You can paste markup or pick a file, then copy the optimized SVG or a background-image rule with a URL-encoded data URI.
- Is my SVG uploaded anywhere?
- No. SVGO is loaded into the page and the file is read and optimized in your browser.
- Why is the data URI URL-encoded instead of base64?
- SVG is text, so URL-encoding only the characters that break a double-quoted CSS url() is usually shorter than base64. Spaces and line breaks are collapsed before encoding.