Image Base64 Converter - Convert Images to/from Base64

Convert image files to Base64 strings or restore images from Base64. Useful for embedding in HTML src attributes or CSS background-image. All processing happens in your browser.

Drag & drop file here

or click to select

PNG, JPG, GIF, WebP, BMP, SVG

What is Image Base64?

Base64 is an encoding method that converts binary data to ASCII strings. Converting images to Base64 allows direct embedding in HTML or CSS, displaying images without external file references. It is also widely used for email attachments and embedding images in API responses.

How to Use

  1. In the 'Image→Base64' tab, drag & drop an image to convert
  2. Copy the generated Base64 string
  3. In the 'Base64→Image' tab, paste a Base64 string to restore the image

FAQ

Where can I use the converted data?
You can use it in HTML img src, CSS background-image, or as JSON payload in API requests.
What image formats are supported?
PNG, JPEG, GIF, WebP, and BMP formats are supported.
Is my image data sent to a server?
No. All processing happens in your browser; no data is sent to any server.
How does Base64 encoding affect file size?
Base64 encoding increases the data size by about 33% compared to the original binary. It is intended for direct embedding in HTML or JSON.
Can I convert a Base64 string back to an image?
Yes. Switch to the 'Base64→Image' tab, paste the Base64 string, and you can restore and download the image.

Related Tools

Update History

Last Updated: 2026-02-21

  • 2026-02-21 Initial release