— free browser tool, no upload." /> — free browser tool, no upload." /> — free browser tool, no upload." />

SVG to Base64 HTML Img

Copy <img src="data:image/svg+xml;base64,…"> ready to drop in markup

HTML hub? SVG to Base64 HTMLURI only? Data URI image

FAQ

Quick answers

How do I make an HTML img from SVG Base64?
Paste SVG and click Copy HTML img. The tag uses src="data:image/svg+xml;base64,…".
Do I need width and height on the img?
Optional. The sample SVG has no root width/height, so you size the img in HTML or CSS.
Will this work in Markdown?
If the host allows data URI images, yes. Many READMEs block them — then keep a .svg file instead.
Want the URI without the tag?
SVG Base64 Data URI Image copies only the image string.
SVG to Base64 HTML → Data URI image → SVG to Base64 →
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