Image to Base64 & Data URI
Image to Base64 & Data URI converts an image into a Base64 data URI with ready-made HTML, CSS and Markdown snippets, and turns pasted Base64 back into an image you can preview and download. It runs locally, so the image is not uploaded.
How to use Image to Base64 & Data URI
- Drop an image, or paste a Base64 string.
- Copy the data URI or the HTML, CSS or Markdown snippet.
- Or preview and download the image from Base64.
Frequently asked questions
How do I convert an image to Base64?
Drop the image and copy the data URI or one of the ready-made snippets.
Does Base64 make an image bigger?
Yes. Base64 text is about a third larger than the original bytes, so use it for small images such as icons.
Can I turn Base64 back into an image?
Yes. Paste the Base64 string, preview the picture and download it.
Next step
Embedding an SVG? Its URL-encoded data URI is usually smaller. Open SVG to Data URI.