Base64 to Image
Paste a base64 string or data URL and get the image back as a file you can preview and download.
Base64 to Image decodes a base64 string or data URL back into an image file you can preview and download. Paste it bare, as a full data URL, or still inside an img tag or CSS rule. The real format is read from the bytes.
What can you paste?
Accepted input
A data URL such as data:image/png;base64,..., the base64 text alone, URL-safe base64, or a snippet of HTML or CSS that contains a data URL. Line breaks inside the text are ignored.
Recognised formats
PNG, JPEG, GIF, WebP, BMP, ICO, TIFF, AVIF, HEIC and SVG, identified from the file signature, not from the label in the data URL.
Why use Base64 to Image?
- Inspect embedded images. See what a data URL in a stylesheet, an email or an API response actually contains.
- Recover the file. Save an inlined icon as a normal file again so it can be edited or cached.
- Private by design. Decoding happens in this tab. The text you paste is never sent anywhere.
How to use Base64 to Image, step by step

- Paste the text into Base64 to Image. Or press Try an example to see a small red circle.
- Name the file if you like. The right extension is added for you.
- Decode and download. Press Decode image to preview it, then save the file.
Frequently asked questions
Why does it say the bytes are not an image?
The text decoded correctly but the result is not a recognised image format. It may be a PDF, a font or plain text that was base64 encoded.
What if the data URL says JPEG but it is a PNG?
The tool trusts the bytes and saves it as PNG with the right extension.
Can I go the other way?
Yes, Image to Base64 encodes a picture as a data URL.
Looking for the long version? The guides cover each of these jobs in depth.