Image Tools

Base64 to Image

Paste a Base64 string to see the picture and save it as an image file.

The decoded image will appear here.

Turn Base64 text back into a picture

Images are sometimes stored or sent as Base64 text: inside API responses, JSON files, database fields, HTML emails or CSS files. Looking at the long string tells you nothing about what the picture is. This decoder shows you the image straight away and lets you save it as a normal file.

How to decode Base64 to an image

  1. Paste your Base64 code into the box. It can be a full data URI starting with data:image/ or only the encoded part.
  2. Click Show image. The tool checks the text, detects the format and shows a preview with the image size.
  3. Click Download to save the picture with the correct file extension.

How the format is detected

If you paste a data URI, the format is read from its MIME type. If you paste plain Base64, the tool looks at the first few characters, which come from the file's "magic number" (the signature bytes at the start of every image file):

Base64 starts withFormat
iVBORw0KGgoPNG
/9j/JPEG
R0lGODGIF
UklGRWebP
PHN2Zy or PD94bWwSVG

Common problems

Frequently asked questions

How large an image can I decode?

Several megabytes work fine in modern browsers. Very long strings may take a moment to paste.

Can I convert an image to Base64 instead?

Yes, use the Image to Base64 converter.

Is the decoded image stored anywhere?

No. Decoding and preview happen in your browser only.