SVG to Data URI & CSS Converter
Turn any SVG into an optimised, URL-encoded data URI, base64 string, CSS background or <img> tag.
Help shape SVG to Data URI & CSS Converter
The bug you just noticed will fade in 3 minutes. The feature idea will vanish after your next tab switch. Crazy peps don't suffer silently.
Frequently Asked Questions
URL-encoded is usually about 30% smaller than base64 for SVG and compresses better with gzip. Base64 is only needed by a few older tools.
Every byte ends up in your CSS. Removing metadata, comments and extra precision first keeps stylesheets small.
Yes. Choose the <img> output for a ready tag, or CSS for a background-image rule.
No. Encoding and optimisation happen in your browser.