Image to Base64 / Base64 to Image

Encode an image as a Base64 data URI or decode Base64 back into a downloadable image.

Runs entirely in your browser. Your files are never uploaded.

About the image to base64 / base64 to image

Embed small images directly in HTML, CSS or JSON, or recover an image from a Base64 string. Encode any image to a data URI with one click, or paste Base64 to preview and download the picture.

How to use it

  1. Choose Image to Base64 or Base64 to Image.
  2. Upload an image or paste the Base64 text.
  3. Copy the result or download the decoded image.

Frequently asked questions

Does Base64 make files smaller?

No. Base64 increases size by about 33%. It is useful for tiny inline assets, not for large images.

Do I need the data: prefix to decode?

No. Paste either a full data URI or just the Base64 body. The tool detects the image type from its content.

Related tools