Base64 to Image Converter

Paste Base64 or a data:image URI and see the picture right away. The tool identifies the real format from the file bytes, then lets you save the original or convert it to another format.

Runs entirely in your browser. Nothing is uploaded.

How to use

  1. Paste a Base64 string or a complete data URI into the input box, or press Load example to try a sample.
  2. Check the preview and the details: detected format, MIME type, dimensions and decoded size.
  3. Choose a download format. Original saves the exact decoded bytes; every other option converts the image in your browser.
  4. Download the file.

Turning Base64 text back into a picture

Images travel as Base64 whenever a channel only accepts text: data URIs in HTML and CSS, JSON responses from APIs, HTML email, database columns and log files. The encoded text is about one third larger than the binary file. Decoding reverses the process and gives you back the original bytes.

You can paste the bare Base64 string or the full data:image/...;base64, URI. Line breaks and spaces are ignored, and URL-safe Base64 (with - and _) is accepted as well. Decoding, previewing and converting all happen locally in your browser, so the image is never uploaded.

Recognising the format from the first characters

Every image format begins with a fixed byte signature, and those bytes always encode to the same leading Base64 characters. The tool checks the decoded bytes rather than trusting the MIME type in a data URI, so a mislabeled string is still identified correctly.

Base64 starts withFormat
iVBORw0KGgoPNG
/9j/JPEG
R0lGODGIF
UklGRWebP (RIFF container)
PHN2Zy or PD94bWwgSVG
QkBMP
AAABAAICO
SUkq or TU0ATIFF
JVBERPDF, not an image: use Base64 to PDF

Choosing a download format

Original writes the decoded bytes unchanged, which is the right choice when you only need the file. The other formats are produced by drawing the image onto a canvas and encoding it again:

  • PNG is lossless and keeps transparency.
  • JPEG fills transparent areas with white and uses the quality slider.
  • WebP and AVIF usually give smaller files; AVIF is offered only if your browser can encode it.
  • GIF is limited to 256 colours and keeps only the first frame of an animation.
  • BMP, ICO and TIFF cover legacy software, favicons and print workflows.
  • SVG wraps a raster image in an SVG file. It does not trace the picture into vector shapes.

Frequently asked questions

Why is my Base64 image not showing?
The most common causes are a truncated string (copied from a log or a cell with a length limit), leftover quotes or JSON escapes such as \/ or a literal \n, or data that is not an image at all. Remove the extra characters and paste again. The Base64 validator shows invalid characters and the detected content type.
Do I need the data:image prefix?
No. Both the raw Base64 string and the complete data URI work. If you need to build a data URI from a file, use Image to Base64 or the Data URI generator.
Is my image uploaded to a server?

No. The page decodes and converts the image with JavaScript in your browser. Nothing you paste leaves your device.

Can it open HEIC or TIFF images?

Both formats are detected, but most browsers cannot display them, so the preview may be empty. You can still download the original file, and converting works when your browser is able to decode the image.

What if the decoded data is not an image?
Use Base64 to file. It recognises PDFs, archives, audio, video and other file types and saves them with the right extension.