SVG to Data URI
Make a percent-encoded or Base64 data URI from SVG markup.
Runs on your device. Nothing you add is uploaded.
How to use SVG to Data URI
- Paste SVG markup with an SVG namespace.
- Select percent encoding or Base64.
- Copy the full data URI, including its prefix.
Questions
Where can I use the result?
Use it in an image source or a quoted CSS url() where your site allows data URLs.
Can I use either encoding?
Both forms embed the same UTF-8 bytes. Try both if the destination has a character limit.
How this works
Builds the data URI from UTF-8 bytes without loading the URI or sending the input anywhere.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy