The quick answer

Base64 to Image turns a Base64 string or a complete data URL back into the picture it encodes. Paste the text and the page shows the decoded image, a size estimate, and a PNG download link. Three bytes become four characters, so a 69-byte PNG travels as 92 characters of Base64.

What the decoder does with your paste

The job is one conversion: Base64 in, image out. A single text box, five rows deep, accepts either a complete data URL such as data:image/png;base64,iVBORw0KG… or bare Base64, and once the pasted text passes 100 characters the decoded image appears below it, with a size caption and a download link. There is nothing to configure between paste and picture.

Bare Base64 gets prepared before rendering: the decoder strips every space and newline, adds the standard data:image/png;base64, prefix, and hands the result to the browser's image renderer. A string that already starts with data: is used exactly as pasted, so its declared MIME type rides along with the bytes. The caption estimates the decoded size at 0.75 times the pasted length, prefix included.

  1. Paste the payload

    Type or paste the Base64 text into the box. A full data URL is used as-is; raw Base64 is whitespace-stripped and wrapped with the data:image/png;base64, prefix.

  2. Watch for the preview

    The image renders once the input passes 100 characters. The caption beside it reports the estimated size in kilobytes, computed at three quarters of the input length.

  3. Download the image

    The Download PNG link saves the decoded image as decoded-image.png; rename the extension after saving if the payload was actually a JPEG or a GIF.

What a data URL is made of

A data URL has three parts: the scheme and MIME type (data:image/png), the ";base64" marker, and the payload, which is the file's bytes written in Base64's 64-symbol alphabet. The prefix tells the browser what the bytes claim to be, and it is the part you can audit by hand.

Image files announce themselves in their first bytes: PNG starts with 89 50 4E 47, JPEG with FF D8 FF, and GIF with 47 49 46. Decode a payload and compare those magic bytes against the declared type; three bytes settle most it-won't-render arguments.

The contract behind the alphabet is three bytes in, four characters out, padded with = at the end. The toll is one third: a 300 KB JPEG becomes about 409,600 characters, and a 3 MB screenshot becomes 4 MB of text before the prefix.

Worked example: the 1×1 red pixel

Here is a complete image in 92 characters: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGP4z8AAAAMBAQDJ/pLvAAAAAElFTkSuQmCC. Decoded, it is 69 bytes: an 8-byte PNG signature, a header declaring a one-by-one pixel image, and the RGB triplet FF 00 00, which is pure red. Wrapped as data:image/png;base64,iVBORw0KG… it works as a self-contained image in any HTML src attribute.

One engine detail matters for this example: the preview starts once the input passes 100 characters, and the bare 92-character string falls short. Paste the full data URL form, 114 characters with the prefix, and the pixel renders with a caption reading 0.1 KB. Round-tripping the same file through the site's Image to Base64 tool regenerates the same 92 characters, which is the quickest check that both directions agree.

Who pastes Base64 into a decoder

Four jobs account for most of the traffic a page like this sees.

Front-end developers: a broken CSS background or img tag turns out to carry a 400,000-character data URL, and one paste answers what it contains: the right image, the wrong image, or a string clipped mid-copy.

Security reviewers: image blobs hide inside JSON logs, webhook payloads and email bodies, and an untrusted artifact should not be uploaded to a stranger's converter just to be identified. Local decoding shows the true content while the sample stays on the reviewer's machine.

QA and support engineers: a bug report attaches an API response instead of a screenshot, a log line is an image smuggled as text, or an export pipeline double-encodes its thumbnails. Extracting the real image is step one of the diagnosis.

Email and template developers: inline images in HTML email are data URLs by design, and inbox clients mangle them in creative ways. Decoding the string from the sent message shows whether the image survived the pipeline.

What this page guarantees

AspectThis tool
Processing100% client-side JavaScript in this tab
Signup requiredNo account, no email, no signup wall
Data uploadedNever; there is no request to intercept
OutputRendered image, size caption, and a Download PNG link (decoded-image.png)
Offline useWorks after the first load; the engine needs no network
CostFree, no usage cap

Every row is testable: open the network panel, paste a payload, and watch the request list stay empty while the image renders.

Compared with the alternatives

AlternativeWhat it trades away
Command-line base64 and xxdIdentical decoding, but the string lands in shell history
Server-side convertersThe embedded image is often exactly what should not be uploaded: unreleased creative, internal screenshots
Image editorsOpening a full application to decode 92 characters is the wrong weight class

Deep software buys capability with setup and licensing; this page buys a ninety-second answer with zero obligation, and the trade only makes sense when the job is one string and one look.

Field notes and gotchas

  • Truncation corrupts: Base64 length is a multiple of 4 (padding counted), and a ragged length usually means the clipboard lost the tail. The decoded image renders blank or garbled.
  • Whitespace is forgiven: raw Base64 is stripped of spaces and newlines before wrapping. Line breaks an email client injected are cosmetic; missing characters are not.
  • Nothing appears after a paste when the input is under 101 characters. Paste the full data URL form, or add a real payload, and the preview triggers.
  • A data URL that renders in some browsers and not others usually declares a MIME type that does not match the bytes. Trust the magic bytes over the prefix.

Frequently asked questions

Does Base64 decoding need a key, or is the image readable directly?

Directly, with no key. Base64 is an encoding, not an encryption: the characters are the image's bytes in a text-safe alphabet, and anyone can reverse them. Never treat a Base64-embedded image as private just because it is unreadable at a glance.

What is the difference between Base64 and a data URL?

A data URL is Base64 with a header: data:image/png;base64, followed by the encoded bytes, so the browser knows what to render. This decoder accepts either form. A pasted data URL is used exactly as-is; bare Base64 is stripped of whitespace and given the standard data:image/png;base64, prefix before rendering.

Are images protected when pasted on this page?

Yes, by construction. Decoding is local computation in this tab, there is no request to leak, and the page keeps working offline after loading. Open the network tab and watch nothing happen while you paste. Embedded images are often screenshots of exactly the things you would never upload.

Why did my Base64 string decode to a broken image?

Almost always truncation. A string clipped mid-copy decodes to incomplete bytes and a corrupt file, so check that its length is a multiple of 4. Whitespace is not the problem here: the decoder strips spaces and newlines before rendering. If the decoded bytes do not start with an image signature such as 89 50 4E 47, the payload was never an image to begin with.

Why does nothing appear after I paste?

The preview starts once the pasted text passes 100 characters, which filters stray keystrokes. A short payload like the 92-character example pixel needs its data:image/png;base64, prefix, 114 characters total, to trigger the preview; any real-world image string clears the bar without noticing it.

Does Base64 encoding compress or shrink my image?

The opposite: it grows by one third, because three bytes become four characters. A 3 MB screenshot is 4 MB of text before you add the data URL prefix. Compress the image first and encode second; the Image Compressor on this site handles exactly that order.

Is the Base64 to Image decoder free to use?

Yes, with no account and no usage cap. The processing never touches a server, so there is no infrastructure cost to recover through fees or gates.

Sources and further reading

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.