Base64 to Image
Paste a Base64 data URI to preview the image and download it as a file.
How to use the Base64 to Image
- Paste a data URI or raw Base64 image string.
- The decoded image previews instantly, with its dimensions.
- Download it as an image file.
About the Base64 to Image
This tool does the reverse of encoding: paste a Base64 data URI — the kind that starts data:image/png;base64, — and it decodes the text back into a real, viewable image. It previews the picture immediately and shows its pixel dimensions, then lets you save it as a file. If you paste a bare Base64 string with no data: prefix, the tool assumes PNG and tries to decode it anyway.
All the decoding happens in your browser: the string you paste is turned into an image element locally and is never sent anywhere. That makes it safe for data pulled from a stylesheet, an API response, an email source or a config file. If the text is not valid image data, the tool says so rather than showing a broken picture.
This is the companion to image to Base64, which creates these strings in the first place. Once you have the file, you can edit it here too — crop, rotate or flip it — or shrink it with compress image. To decode plain Base64 text instead of an image, use Base64 decode.
Frequently asked questions
What can I paste in?
A full data URI beginning with data:image/, or a raw Base64 image string on its own. If there is no data: prefix, the tool assumes it is a PNG and decodes it.
Is the Base64 sent to a server to decode it?
No. The string is decoded into an image in your browser. Nothing you paste is uploaded or stored.
Why does it say the data could not be decoded?
That means the text is not valid Base64 image data — it may be truncated, be a non-image file, or have stray characters. Copy the full string again, including the data:image prefix.
What format will the downloaded file be?
It keeps the format named in the data URI — PNG stays PNG, JPEG stays JPEG. A raw string with no prefix downloads as PNG.
Can I see the image size before downloading?
Yes. Once decoded, the tool shows the width and height in pixels so you know exactly what you are saving.

