About Base64 to Image
A Base64 image decoder turns Base64 text back into the binary image file it represents. This tool accepts a full data URI or a bare Base64 string. For a data URI it reads the type from the prefix. Otherwise it recognizes JPG, GIF, WebP, and SVG from the first characters and assumes PNG for anything else. The decoded bytes are saved unchanged, with no re-encoding.
Also known as: Base64 to Image Converter, Base64 Image Decoder, Base64 to Image Decoder, Base64 Image Viewer.
How to use Base64 to Image
- Type or paste into the "Base64 or image data URI" box, or press "Use example" to try it with sample data.
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about Base64 to Image
Do I need to include the data:image prefix?
No. Both forms work. With the prefix, the tool uses the image type it states. Without it, the tool infers the type from the first few Base64 characters and falls back to PNG.
Why does it say the data decoded but cannot be displayed?
The text was valid Base64, but the bytes are not an image your browser can render. Typical causes are a truncated string, Base64 of a different file type such as a PDF, or stray characters pasted in the middle.
Runs in your browser. Page last updated .