Base64 to Image Converter
Paste a Base64 string or a data URI and see the image, its real format and dimensions, then download it. Free, decoded in your browser.
Base64 or data URI
Image
Paste a data URI or a Base64 string and the picture appears here.
What this tool is for
The other direction of the data URI trick: paste the encoded string and get the picture back, with its real format detected from the bytes rather than from what the string claims. Useful when a data URI turns up in a stylesheet, an email or an API response and you need to see what it actually is.
How to use it
- Paste the full data URI, or just the Base64 part.
- The image appears with its format, dimensions and the size overhead of encoding.
- Download it as a normal file.
Frequently asked questions
It says the data decodes but is not an image.
Then the Base64 is valid but the bytes are something else, or the string was cut short somewhere. Truncation is the usual cause: copying a long data URI out of a console or an editor often loses the tail.
Do I need the data:image prefix?
No. Both forms work, and when the prefix is missing the format is detected from the file signature, which is more reliable than the declared type anyway.
Why is the encoded string bigger than the file?
Base64 turns three bytes into four characters, so it is about 33 percent larger by design. That is the trade-off for embedding an image directly in text.