Web · Performance

SVG Minifier & Data URI Encoder

Clean exported SVG markup and turn icons into tiny inline CSS background-image or HTML <img> data URIs — nothing leaves your browser.

Optimized SVG preview

Percent-encoded URI or Base64 — which should I use?

The percent-encoded data:image/svg+xml, form is usually smaller for SVG and stays human-readable, so it is the best pick for CSS background-image. Base64 is about 33% larger but survives tools that mangle special characters, which is why the HTML <img> snippet uses it.

Is it safe to strip ids, comments and decimals?

Ids referenced by url(#…), href="#…" or xlink:href are detected and kept automatically. Comments, editor namespaces and <metadata> never affect rendering. Rounding coordinates can shift paths at very small sizes, so raise the decimal precision (or turn the option off) for detailed artwork — everything runs locally and is re-checked live.