Image to Base64

Pick a direction, then copy the text or download the image.

Image to Base64 runs entirely in your browser: your files are never uploaded to a server. It is free and needs no sign-up.

How to use it

  1. Choose a mode Pick Image to Base64 to encode a picture, or Base64 to image to decode pasted text back into a picture. Each mode has its own box.
  2. Encode or paste In Image to Base64, drop an image of up to 5 MB and pick Data URI or Plain Base64 text. In Base64 to image, paste the text, up to 7 MB, and press Preview image.
  3. Copy or download Press Copy to put the text on the clipboard, or Download .txt to save it as a file named after the image. In Base64 to image, press Download image to save the picture.

Questions

What is the difference between a data URI and plain Base64?

A data URI starts with the detected type, such as data:image/png;base64, and then the encoded bytes. Plain Base64 is the encoded bytes alone, and Base64 to image accepts either form.

Which image types can be encoded?

PNG, JPEG, GIF, WebP, and SVG. The type is detected from the file contents rather than the file name, and any other format shows a message that it is not supported.