Skip to content
Toolwright

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.

Tool 050 · Image
Outside requests …How to checkRuns on this deviceWorks offline once opened

How to use Image to Base64 & Data URI

  1. Drop an image, or paste a Base64 string.
  2. Copy the data URI or the HTML, CSS or Markdown snippet.
  3. 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.

  1. 004

    Base64 Encode & Decode

  2. 045

    Image Compressor

  3. 108

    SVG to Data URI

  4. 072

    MIME Type Lookup