Toolbox/Base64 to Image Converter & Viewer
Runs locally
IMAGES & FILES

Base64 to image converter & viewer

Decode Base64 to an image, inspect its format and dimensions, and download the original bytes. PNG, JPEG, GIF and WebP stay on your device.

PNG · JPEG · GIF · WebP

Paste raw Base64 or a full data URI. Maximum decoded file size: 10 MB. SVG is not supported in this version.

IMAGE PREVIEWWaiting for input
A little less mystery.Your decoded image will appear here.
Files stay on your device
A LITTLE CONTEXT

From text back to pixels.

Base64 represents the original image bytes as text. A data URI adds a media type and prefix. This tool checks the byte signature, previews the image and offers the original decoded bytes for download. It does not compress or change formats.

data:image/png;base64, + encoded image bytes

References: RFC 2397: Data URLs · RFC 4648: Base64

Good to know

Does decoding change image quality?

No. Base64 decoding restores the original bytes. The download keeps those bytes, including animation in GIF or WebP files. It does not redraw the preview onto a canvas.

Does changing .png to .jpg convert the image?

No. A file extension is a label, not a conversion. This tool chooses the download extension from the detected byte signature.

Why does my declared format not match?

A data URI can declare image/jpeg while its bytes contain a PNG. The preview reports a mismatch and uses the detected format for download.

Can I preview SVG?

Not in this version. PNG, JPEG, GIF and WebP are supported. Unsupported types and files that the browser cannot decode are rejected.

PRACTICAL REFERENCE

Base64 image troubleshooting

A valid Base64 string is not necessarily an image. This viewer checks both the encoded value and whether your browser can decode the image bytes.

My Base64 image is not displaying

Copy only the encoded image value from an API response. Remove surrounding JSON quotes or an HTML tag, but keep a complete data:image/...;base64, prefix if present. Invalid characters, truncation and a non-image payload can all stop a preview.

Base64 to PNG or JPEG?

If the bytes contain PNG, the download is PNG. If they contain JPEG, it is JPEG. Decoding does not convert JPEG into PNG, and renaming a file does not change its format.

Missing or incorrect MIME type

A raw Base64 value has no declared MIME type. This viewer checks the byte signature instead. If a data URI declares a different type, a warning reports the mismatch; downloading uses the detected format.

Files, limits and unsupported types

PNG, JPEG, GIF and WebP are supported up to 10 MB, with a 40-megapixel preview limit. SVG and non-image files are rejected. A recognizable header alone does not guarantee a valid image: the browser must also decode it.

What a data URI looks like

data:image/png;base64,iVBORw0KGgo...

The shortened data URI above illustrates the structure; it is not a complete image. Use the PNG, JPEG or WebP sample buttons above for complete, working Base64 image examples. Original GIF/WebP animation bytes are preserved on download.

Find a tool

Unix timestampTime & datesPX ↔ REMCSS & layoutBase64 encode / decodeEncodingBase64 to imageImages & files