Base64 to Image
Decode a Base64 string or data URL back into a downloadable image.
About Base64 to Image
Base64 image data turns up in API responses, database columns and email source. Reading it as text tells you nothing; you need to see the picture.
Paste the string and this tool decodes it, previews the result, reports the real dimensions and file size, and gives you a download with the correct extension.
How Base64 to Image works in your browser
Base64 text is decoded back into bytes in your browser. If you paste a full data URL, its declared type is used; if you paste raw Base64, the format is detected from the file signature in the first bytes — PNG, JPEG, GIF, WebP, BMP and SVG are recognised.
Whitespace is stripped automatically, and the decoded image is previewed with its real dimensions and size before you download it with the correct extension.
When to use it
- Seeing what image is stored in a database column or API response.
- Recovering an embedded image from email or HTML source.
- Checking that an encoded image is complete rather than truncated.
Frequently asked questions
Do I need the data URL prefix?
No. Paste the raw Base64 and the tool detects the image type from the first bytes, or paste a full data URL and it will use the declared type.
Why does nothing render?
Usually the string is truncated or contains stray whitespace or quotes from the surrounding code. The tool strips whitespace automatically but cannot recover missing data.
Which formats can it detect?
PNG, JPEG, GIF, WebP, BMP and SVG are recognised from their signatures.