Base64 to Image
Paste a Base64 string or data URI and preview the decoded image instantly — auto-trims whitespace, lets you pick the assumed format, download in one click.
More Image Tools Tools
Whitespace and line breaks are trimmed automatically. If your string doesn't start with "data:", it's assumed to be PNG — change the assumed format below if the preview fails or looks wrong.
How to Use Base64 to Image
Paste a raw Base64 string or a full data:image/...;base64,... URI into the box. A preview renders automatically a moment after you stop typing. If your pasted text doesn't already start with "data:", it's assumed to be PNG by default — use the format select to try JPEG or WebP instead if the preview fails or looks wrong. Once a valid image is showing, click download to save it as a file.
About Base64 to Image
Details & Tips
Frequently Asked Questions
Why does the preview only update a moment after I stop typing?
Why does trimming whitespace matter?
What happens if my pasted text doesn't start with "data:"?
The preview shows an error — what does that mean?
How is the image actually decoded?
How does the download button work?
Is my pasted Base64 string sent to a server?
Can I paste a full data URI I copied from somewhere else?
Why is the download button disabled sometimes?
What image formats can I decode?
Part of These Collections
Also Available As
base64 to image, decode base64 image, base64 image viewer, data uri to image, convert base64 string to picture
Found a Problem?
Let us know if something with Base64 to Image isn't working as expected.
Thanks — we'll take a look.