Base64 to Image Converter
Decode a Base64 string back into a downloadable image.
Base64 or data URL
Result
Your converted file will appear here.
About the Base64 to Image converter
Paste a Base64 string — with or without a `data:` prefix — and get the image back as a file you can preview and download.
The format is detected from the decoded bytes rather than trusted from the prefix, so a mislabelled data URL still produces the right file extension.
What it accepts
Full data URLs, raw Base64, the URL-safe alphabet, wrapped lines and missing padding are all handled. Whitespace is ignored, so copying out of a JSON file or a log works directly.
Format detection
Every image format begins with a recognisable signature: PNG starts with a specific eight-byte header, JPEG with FF D8 FF, GIF with "GIF8". Those bytes decide the output type and extension.
If the decoded data matches no known image signature, you get a clear message rather than a broken file — usually it means the string was text, or truncated.
Frequently asked questions
The decoder says it is not an image.
Either the string is truncated, or it is Base64 of something else. Try Base64 to Text to see what it actually contains.
Do I need to remove the data:image/png;base64, prefix?
No, paste the whole thing. The prefix is stripped automatically.