Image to Base64

Turn an image into a Base64 string or data URI, or turn a Base64 string back into a downloadable image. All in your browser.

Mode

Drop an image here

or

Output format

Output:

How to convert an image to Base64

  1. Choose the Image to Base64 mode and drop an image, or click to select one.
  2. Pick Data URI for the full data: string, or Raw Base64 for just the encoded part.
  3. Copy the output with the Copy button when it appears.
  4. To go the other way, switch to Base64 to Image and paste your string.

FAQs

What is the difference between a Data URI and Raw Base64?

A Data URI includes the data:image/...;base64, prefix, while Raw Base64 is only the encoded characters. Most code editors and JSON fields need the raw form.

Are my images uploaded to a server?

No. Encoding and decoding run entirely in your browser, so your images and strings never leave your device.

What image format is assumed when I paste raw Base64?

If you paste raw Base64 without a data: prefix, the tool assumes it is a PNG image by default.

Is this tool free to use?

Yes. Every Handio tool is free, with no sign-up and no limits on file size beyond your browser memory.

Related Tools

Why convert an image to Base64?

Base64 turns an image into a plain string of text you can embed directly in HTML, CSS or JSON without a separate file. It is the standard way to inline small icons and images into code.

Tips and Limits

Base64 makes an image roughly 33% larger than the original file, so it is best for small graphics. When pasting raw Base64 without a data: prefix, the tool assumes a PNG. Everything stays in your browser.