SVG Base64 Data URI Image

Copy a data URI image string for any src that accepts images

HTML img? SVG to Base64 HTML imgGeneric URI? SVG to Base64 data URI

FAQ

Quick answers

What is a data URI image from SVG?
A string that starts with data:image/svg+xml;base64, and decodes to the vector graphic — browsers treat it like an image file.
How do I copy an SVG as a data URI image?
Use the photo-mark sample or paste your SVG, then click Copy image data URI.
Is this a raster image?
No. The MIME type is image/svg+xml, so it stays vector. For PNG, use the PNG tab instead.
Want an img tag around the URI?
Open SVG to Base64 HTML Img.
SVG to Base64 data URI → SVG image to Base64 string → SVG to Base64 HTML img →
Open full editor →

Source

Type or paste SVG markup. The preview on the right updates as you type.

Ready

Live preview

PNG export · 2× for retina