Add to Chrome

Image to Base64 converter

Turn an image into Base64 text for HTML, CSS or JSON, or paste Base64 to get the image back. Free, and your picture never leaves your device.

Base64 to image

How to use it

  1. Choose your image, or drop it on the page.
  2. Pick the format you need: a data URI, plain Base64, CSS or an HTML tag.
  3. Copy the text. To go the other way, paste Base64 into the box at the bottom.

Common questions

Is the image to Base64 converter free?

Yes. There is no sign-up and no limit.

Is my image uploaded?

No. The conversion happens in your browser, so your image stays on your device.

What is a data URI?

A data URI puts the whole image inside text, like data:image/png;base64,… . You can paste it straight into an HTML img tag or a CSS rule, so no separate image file is needed.

Why is the Base64 text bigger than my file?

Base64 uses about one third more space than the original file. It is best for small images such as icons and logos.

Can I turn Base64 back into an image?

Yes. Paste the Base64 text or the whole data URI into the box at the bottom and you will see the image and a download button.

More free tools