Base64 to Image

Decode a data URI back into a real image file.

Base64 to Image takes a Base64 string or a full data URI, decodes it in your browser, previews the result and lets you download it as a real file. It detects the actual format from the decoded bytes rather than trusting the declared MIME type, and it never sends the string anywhere.

Loading Base64 to Image…

Runs entirely on your device. No file or text you enter here is uploaded. How to verify it.

How to use Base64 to Image

  1. Paste the Base64 string or full data URI.
  2. Check the preview and the detected format and dimensions.
  3. Download the decoded file, or convert it to another format.

Questions about Base64 to Image

Do I need the "data:image/png;base64," prefix?
No. Paste the raw Base64 and the format is detected from the file signature in the decoded bytes. The prefix is accepted and used as a hint when present.
Nothing decodes — what is wrong?
Usually whitespace and line breaks copied from a source file, which are tolerated, or URL-safe Base64 using - and _, which is also handled. If it still fails, the string is truncated — Base64 length must be a multiple of four after padding.
Is my string sent anywhere?
No. Decoding is atob plus a Blob in your browser. Data URIs frequently contain private screenshots, which is exactly why this must be local.
Can it decode a Base64 PDF or font, not only images?
It previews images, and the format check looks for image signatures, so a Base64 PDF will not display here. Base64 Encoder / Decoder handles arbitrary text and data instead, without trying to render what comes back.
How long a string can it take?
A few megabytes is comfortable; beyond that the slow part is the browser handling the paste rather than the decode itself. If the data already sits in a file, opening that file is quicker than pasting several megabytes of text into a page.
Is Base64 to Image really free, with no limits?
Yes. There is no account, no daily cap, no file-size tier and no watermark, because there is no server cost to recover. The site is funded by clearly disclosed partner recommendations on the Partners page, never by metering the tools.
Are my files or text uploaded when I use Base64 to Image?
No. Everything is processed by JavaScript running in your browser, on your device. You can verify it: open your browser's developer tools, switch to the Network tab, and use the tool. You will see no request carrying your data — because there is nowhere for it to go.