Drop an image here or click Open to get its Base64 code

80
Loading… Free for Limited Time

How to convert an image to Base64

  1. Click Open or drag an image onto the page.
  2. Choose the output: a data URI, plain Base64, a CSS background or an HTML <img> tag.
  3. Optionally re-encode as WebP, JPG or PNG to make the text shorter.
  4. Click Copy and paste it into your code. To decode, switch to Base64 → Image and paste the text.

Frequently asked questions

When should I use Base64 images?

For small images such as icons and tiny backgrounds, where saving an extra file request matters. Large images are better linked as normal files.

Why is the Base64 text larger than the file?

Base64 encoding makes data about a third larger. The tool warns you when the result is too big to inline comfortably.

Can I turn Base64 back into an image?

Yes. Switch to Base64 → Image and paste raw Base64, a data URI, or a CSS or HTML snippet.

Is my image uploaded?

No. Encoding and decoding happen in your browser.

Related tools

Every Imavo tool is free for a limited time and runs in your browser - your files are never uploaded. See all tools · Privacy