Developer & Utility SVG → Data URI
SVG to Data URI
This SVG to URI encoder produces a URL-encoded data URI (data:image/svg+xml;utf8,...). It is the recommended form for CSS backgrounds because it compresses better than base64.
Input SVG
Output Data URI
Result will appear here after conversion.
Runs in your browser. No files leave your device.
How the svg to uri tool works
The workbench above is a self-contained web application. When you drop a file, the browser reads it locally, runs the conversion, and writes the result to a downloadable blob. Nothing is uploaded to any server, and the tool keeps working even if you disconnect after loading the page.
Frequently asked questions
URI or base64 for CSS?
URL-encoded is smaller for SVG. Base64 is safer if you pipe the URI through a system that mishandles quotes.