Base64 to Image

Paste anything — a full Data URI, a bare string, a wrapped dump, or a string you already know is broken. The image appears as you paste, and everything happens inside your browser.

Any format accepted: prefixed, raw, wrapped, URL-encoded, URL-safe, or broken.

Decoding options — auto-detected by default; override only when the result looks wrong

Treats - and _ as the URL-safe alphabet (+ and /). Leave it off for ordinary Base64 that happens to contain those characters.

Skips signature detection. Use it when the bytes are a valid image that the signature check does not recognise.

Your image appears here

Paste on the left — no button to press. Everything stays in your browser.

When you need this

  • An API response returns an image as a Base64 field and you need to see it without writing a decoder script.
  • A log line contains a Base64 payload and you want to know whether it is even an image.
  • You are reviewing someone else's code and need to eyeball an embedded asset.

Why other Base64 converters fail here

Most converters require the data:image/png;base64, prefix and silently produce nothing without it.

Many treat the declared MIME in the prefix as the truth. If a string says image/png but the bytes are a JPEG, a strict decoder either fails or hands you a mislabelled file.

Almost none of them tell you why a string failed. You get a red box and no next step.

Frequently asked questions

Does my Base64 string get uploaded anywhere?

No. There is no backend. Decoding uses the browser's own atob/Blob APIs, and you can confirm this yourself: open DevTools, switch to the Network tab, paste a string, and watch that no request is made. The page also works with the network disconnected once it has been loaded.

The image shows up but looks wrong or is cut off. What happened?

That almost always means the string itself is incomplete rather than misparsed. If the original encoder wrapped the output at 76 characters and something downstream truncated a line, you lose bytes from the middle. The diagnostic panel reports the exact decoded byte count, so compare it against what you expect.

Can it tell the difference between a PNG and a JPEG if the prefix lies?

Yes. The format is decided by the file's magic number — the first few bytes — not by the MIME string in the prefix. If the two disagree, the result panel shows both and uses the magic number, because that is what image viewers actually rely on.

How large a string can I paste?

Pasting is comfortable up to about 10 MB. Beyond that the browser has to hold the text in the input field itself, which is what makes it slow. For anything larger, switch to the file drop zone: it reads the file directly, handles up to 100 MB, and never puts the payload in the page.

Related tools