Base64 to Image

Paste Base64 text above, then press Show Image.

Base64 is how images travel as plain text: inside JSON responses, emails, database fields, and data URLs pasted into code. When someone hands you a wall of characters instead of a picture file, this free Base64 to Image tool turns it back into a viewable, downloadable image. Paste the text, press one button, and the picture appears.

The tool accepts both forms you are likely to meet. A full data URL already carries its image type in the prefix, so it is used exactly as given. Raw Base64 has no prefix, so you pick the image type from the menu; PNG is the safest first guess, since most encoders default to it. The decoded picture is measured and displayed, and the download uses the correct file extension for its type. Be aware that text copied from a chat or document is sometimes cut short or wrapped, and damaged Base64 cannot be repaired; if the preview fails, the original string is usually incomplete. All decoding happens locally in your browser, so even private images stay private.

How to use

  1. Paste your Base64 string or full data URL into the text box.
  2. If there is no data URL prefix, choose the image type from the menu. PNG is the best first try.
  3. Click Show Image and wait for the preview.
  4. Check the dimensions and approximate size shown below the preview.
  5. Click Download Image to save the picture with the right file extension.

Frequently asked questions

Why does my Base64 show an error?

The usual causes are a string that was cut off while copying, extra spaces or line breaks added by an email or chat app, or choosing the wrong image type for raw Base64. The tool ignores spaces automatically; if it still fails, the string is most likely incomplete.

How do I know the image type of raw Base64?

Sometimes the start of the string hints at it: iVBOR usually means PNG and /9j/ usually means JPEG. When in doubt, try PNG first, then JPEG. A wrong choice simply fails to display; no harm is done.

Is there a size limit?

There is no set limit, but very long strings, tens of millions of characters, can make a phone browser slow while it works. On a computer, even large images normally decode in seconds.

Is my pasted data uploaded anywhere?

No. Decoding is done by your browser on your device. Nothing you paste is sent to a server.