Base64 Image Viewer
Paste a Base64 string or data URI and see the image, its format, dimensions and decoded size, then download it or copy it as a data URI.
About Base64 Image Viewer
The Base64 Image Viewer turns Base64 text back into a picture. Paste a data URI or a plain Base64 string and see the image, its format, size and dimensions, then download it.
Formats recognised
PNG, JPEG, GIF, WebP, BMP, ICO, AVIF and SVG.
Clear errors
Invalid Base64 shows the bad character and its position.
Cleaning tips
A broken or cut-off string will not show. Base64 that was wrapped, escaped or URL-encoded may need cleaning first.
Download or copy
Save the picture as a file, or copy it as a data URI.
Going the other way
Use Image to Base64 to turn a picture into text.
Private
Everything runs in your browser. Nothing you paste is uploaded.
What is a data URI?
A data URI puts a file straight into a link: data:image/png;base64, followed by the Base64 text. Browsers show it as an image without loading a separate file.
How to use Base64 Image Viewer
- Paste a Base64 string or a data URI into the box.
- Press Show image.
- Check the format, dimensions, decoded size and Base64 length.
- Press Download image, Copy as data URI or Copy raw Base64.
Related guide: Base64 Explained: What It Is and When to Use It
Help & FAQ
What does the Base64 Image Viewer do?
It decodes Base64 text and shows the image it contains, with its format, dimensions and size.
Do we need the data:image prefix?
No. The tool accepts a full data URI or a plain Base64 string. Both gave the same result in a test.
Which formats are supported?
PNG, JPEG, GIF, WebP, BMP, ICO, AVIF and SVG.
What does it say when the text is not an image?
If the Base64 is valid but the data is not an image, it says that the data decodes fine but does not look like an image.
What does it say when the Base64 is broken?
It points to the first bad character and gives a position, for example an unexpected exclamation mark, so you can find the problem.
Can we download the decoded image?
Yes. Press Download image to save it with the right extension, such as image.png or image.svg.
How big is the decoded image compared with the text?
The text is about one third longer than the binary data. A 70-byte PNG gave 96 Base64 characters in the test.
Why does our pasted string not work?
It may be cut off, wrapped with extra characters, URL-encoded or not Base64 at all. Remove line prefixes, escapes and quotes, then try again.
Is it safe to view an SVG here?
The SVG is shown as an image. Still, an SVG can contain scripts, so do not open files from unknown sources in other tools.
Is our data uploaded?
No. It is decoded in your browser. In a test, only the site's small analytics calls were made.
How do we turn an image into Base64?
Use the Image to Base64 tool.
Can we copy the image as a data URI?
Yes. Press Copy as data URI to get the text with the prefix, ready for HTML or CSS.