Base64 To Image
Result
Share on Social Media:
Base64 to Image Converter — Decode, Preview, Download
You've found a Base64 blob in an API response, a database column, an email source, or a CSS file — and you need to see the actual image. Paste it here: this free decoder converts any Base64 string back into a viewable, downloadable image instantly, auto-detecting the format from the data URI prefix or the file's magic bytes. Everything runs in your browser; nothing is uploaded.
Where Base64 Images Hide
- API responses — endpoints returning avatars, thumbnails, QR codes, or generated charts inline in JSON.
- Databases — legacy schemas storing images in TEXT columns.
- Email source — embedded signatures and logos in MIME parts.
- HTML/CSS — data URIs in img tags and background-image rules.
- Mobile and IoT payloads — camera captures transmitted over JSON APIs.
Troubleshooting Failed Decodes
Truncated string: Base64 length must be a multiple of 4 (with = padding). A copy that cut off mid-string won't decode — grab the full value. URL-encoded characters: if the string traveled in a URL, + may have become %2B and / became %2F; the decoder normalizes common cases. Wrong prefix: a PNG declared as image/jpeg still decodes — the tool trusts the magic bytes (\x89PNG, \xFF\xD8\xFF for JPEG) over the label. Leading junk: stray whitespace or newline characters before the data are stripped automatically.
Format Detection by Magic Numbers
| Format | First bytes |
|---|---|
| PNG | 89 50 4E 47 |
| JPEG | FF D8 FF |
| GIF | 47 49 46 38 |
| WebP | 52 49 46 46 ... 57 45 42 50 |
This byte-signature check is how the tool names your download correctly even when the data URI prefix is missing or wrong.
Free and Private
No signup, no server contact, no size limits beyond browser memory. Pairs with our Image to Base64 converter for full round-trip testing of embedded-image workflows.