Base64 to Image
Convert Base64 encoded string back to image file.
How to Use Base64 to Image
Paste the Base64 string or full data URI into the text box, or upload a .txt file that contains it.
Press the Decode button to convert the text back into binary image data.
Preview the decoded image to confirm it is the picture you expected and that nothing is corrupted.
Download the image file and rename it with the correct extension if the format was not obvious from the string.
Features
Frequently Asked Questions
Related Tools
JPG to PNG
Convert JPG images to PNG format online quickly and easily.
PNG to JPG
Convert PNG images to JPG format with adjustable quality.
JPG to WebP
Convert JPG images to modern WebP format for smaller file sizes.
PNG to WebP
Convert PNG images to WebP format with lossless or lossy compression.
WebP to JPG
Convert WebP images to widely supported JPG format.
WebP to PNG
Convert WebP images to PNG format preserving transparency.
About Base64 to Image
Encoding an image into a Base64 string is only half the round trip. The other half is turning it back into a viewable file, and that is what this tool does. Paste in the encoded text you were given, a data URI copied out of a stylesheet, or a payload out of a JSON body, and you get a proper image file back that you can open, inspect and save.
It is genuinely useful when you have inherited something. A developer pastes a Base64 blob into a bug report, a customer sends a broken string from a form, a database column holds an encoded thumbnail, or a template shipped with an image buried in a CSS file. Rather than squinting at text, paste it here and see the picture.
You can either upload a .txt file containing the string or paste the text directly into the box, and the output can be downloaded as a real image file. The decoder detects the content type from a data URI prefix when one is present, and if the string has no prefix it falls back to a sensible default so you can still recover the picture. If the text is truncated or has been mangled by a copy and paste, the decoder will tell you rather than producing a broken download.
When to Use This Tool
- Recovering an image that only exists as an encoded string inside CSS, HTML or a JSON payload
- Decoding a Base64 value from a database column, API response or bug report to see what it actually shows
- Turning a pasted data URI back into a downloadable file for editing or re-uploading
- Checking whether a Base64 string someone gave you is valid and complete