Base64 to image converter

Paste a Base64 string or a data:image URI to see the picture and download it as a real file. The file type is read from the data itself. You can also turn an image into Base64. Free, and nothing leaves your browser.

Image to Base64

Need the other direction? Choose an image to get its data URI, ready for HTML or CSS.

How to decode Base64 to an image

  1. Paste the string, with or without the data:image/…;base64, prefix.
  2. Press Convert to image. You get a preview, the detected format, the file size and the pixel dimensions.
  3. Download the file with the right extension.

When it fails

Base64 only contains letters, digits, +, / and = padding (or - and _ in the URL-safe variant). Quotes, JSON keys or a truncated copy will stop it from decoding. If the decoded bytes are not an image, for example a PDF or text, the tool tells you rather than producing a broken file.

Decoded an AI image? Check whether it still carries its creation records with the AI image detector or read any saved prompt with the prompt extractor. See all free image tools.

Questions about Base64 images

How do I convert Base64 to an image?

Paste the Base64 text or the full data:image URI into the box and press Convert to image. The tool decodes it in your browser, detects the real file type from its first bytes, shows a preview with the size and dimensions, and gives you a download button.

Do I need the data:image/png;base64, prefix?

No. The tool works with or without the prefix. It reads the file type from the decoded bytes, so a missing or wrong prefix still produces the right file. URL-safe Base64 (with - and _) and line breaks are accepted too.

Which image formats are supported?

PNG, JPEG, GIF, WebP, AVIF, BMP, ICO and SVG. If the decoded data is not one of these, the tool says so instead of guessing.

Is my data uploaded?

No. Decoding and encoding happen entirely in your browser; nothing is sent to isGenAI.