Ready-to-Paste Snippets
Get a plain data URI, raw Base64, or a CSS, HTML, or Markdown snippet built for you.
Turn any image into a Base64 string or data URI in your browser, with ready CSS, HTML, and Markdown snippets. Free, no signup, nothing uploaded.
Drag and drop an image or click to choose one. PNG, JPG, GIF, SVG, WebP, and more all work.
Choose a plain data URI, raw Base64, or a ready CSS, HTML, or Markdown snippet.
Copy the result to your clipboard or download it as a text file to paste into your project.
A Base64 string lets you put an image straight into your HTML, CSS, or JavaScript instead of linking to a separate file. As a data URI it carries the image type and the encoded bytes together, so the browser can show it with no extra request. That is handy for small icons, inline email images, and quick prototypes.
This tool reads your image and encodes it on the spot. Pick the output you need, a plain data URI to drop into a src, raw Base64 to use in code, or a finished CSS background, HTML img tag, or Markdown line. It also shows the original size next to the encoded size, since Base64 always adds about a third to the file.
Everything runs in your browser, so the image never leaves your device. Use it for the cases where inlining helps, and keep larger images as normal files where a separate request is cheaper.
Get a plain data URI, raw Base64, or a CSS, HTML, or Markdown snippet built for you.
PNG, JPG, GIF, SVG, WebP, BMP, and ICO are all supported with their correct type kept.
View the original size next to the Base64 size so you know how much larger it becomes.
Copy the output with a single click, or download it as a text file for later.
The conversion happens the moment you drop in an image, no waiting and no limits.
Your image is read and encoded on your device. Nothing is uploaded, logged, or stored.
More Image tools you might find useful.
Common questions about Base64 images.