Decode a Base64 string back to an image
Paste a bare Base64 string (without the data: prefix), pick the format, and preview the decoded image instantly — then download it as a proper file.
No upload, ever
PNG / JPG / WebP
Instant preview
This tool expects the raw Base64 content without a
data: prefix. If your string starts with data:image/, use the Data URI to Image tool instead.
Decoding happens entirely in your browser. No string or image data is sent anywhere.
How it works
Three steps, no learning curve
01
Paste the Base64 string
Paste the raw encoded content — without the data: prefix. Whitespace and line breaks are stripped automatically.
02
Select the format
Choose PNG, JPG or WebP depending on what the original image was. The wrong choice produces a broken image.
03
Decode and download
Preview the image in the browser, then download it as a proper file.
FAQ
Common questions about this tool
This tool expects only the raw Base64 content — the part after the comma in a data URI. If your string starts with ‘data:image/’, use the Data URI to Image tool instead — it parses the full URI and detects the format automatically.
If you got the Base64 from this site’s Image to Base64 tool, the JSON output includes the MIME type. If you’re not sure, try PNG first since it’s the most commonly used lossless format in Base64 contexts.
The most common cause is selecting the wrong format. If PNG is selected but the data is actually a JPEG, the browser can’t render it. Try the other format options. The other common cause is a truncated or invalid Base64 string.
Yes — valid Base64 must be a multiple of 4 characters. If your string is missing trailing = characters, this tool adds them before decoding.