Base64 to Image Converter
Paste Base64 or a data:image address and see the picture straight away. The format and dimensions are detected automatically, and you can download the image as a normal file with the right extension.
How to Convert Base64 to an Image
Quick answer: paste the Base64 or data URI on the right; the image appears in the middle. Press Download Image.
-
1
Paste the Base64
Or a data:image address.
-
2
See the image
With size and format.
-
3
Name the file
The extension is added for you.
-
4
Download
Save the image.
What You Get
See the Image Behind the Code
Images embedded in HTML, CSS, emails, JSON and logs appear as long Base64 strings that are impossible to read. Paste one here and the picture appears immediately, together with its width, height and format. It is the quickest way to check what an embedded image actually shows, or to rescue it as a normal file.
Formats and Detection
The decoder recognises PNG, JPG, GIF, WebP, BMP, ICO and SVG images from their signatures, and also uses the type written in a data:image address. Animated GIFs and WebPs are shown animated. If the Base64 does not contain an image, a message says so, and Base64 to File can handle other file types.
What You Can Paste
Paste plain Base64, a full data:image/png;base64,… address, or even an entire CSS line or HTML attribute value as long as you remove the surrounding code. Spaces and line breaks are ignored, and URL-safe Base64 with - and _ works too. You can also open a .txt file that contains the Base64.
Example
A colleague's email template shows a broken logo. In its HTML you find src="data:image/png;base64,iVBORw0…". Copy everything after src=" up to the closing quote, paste it here, and the logo appears with its size, for example 240 × 80, so you can check it and download a clean PNG.
Who Decodes Base64 Images?
Web developers checking embedded icons and backgrounds, email designers inspecting templates, testers checking images stored by an app, support teams viewing screenshots sent as text, and anyone who received an image as a long string of characters.
Tips
If the image looks cut off or does not appear, the Base64 was probably copied incompletely; copy it again including the final characters. To create Base64 from an image, use Image to Base64. To make the downloaded image smaller, try Compress Image.
Good to Know
The image is decoded byte for byte, so the downloaded file is exactly the image that was encoded, at its original quality. SVG images are shown as images and are never run as code on this page. The file name gets today's date by default; change it on the right before downloading.
Everyday Scenarios
A developer finds an unfamiliar data URI in a style sheet and pastes it here to see which icon it is. An email designer recovers the original logo from an old template where the image file was lost. A tester checks that profile pictures stored as Base64 by an app are complete and the right size. A support agent receives a screenshot as text from a customer's system and views it in a second without any software. The dimensions shown help confirm the image is the expected size before using it.
Download it as a normal image file to reuse it in documents, websites or design tools.
Private, Free and Unlimited
Decoding happens entirely on your device. There is no sign-up, no watermark and no daily limit. Files are processed by your own browser and never leave your device, which makes the tool safe for contracts, photos, ID scans, client work and anything confidential. Close the tab and everything is cleared from memory. It works in current versions of the major browsers on Windows, Mac, Linux and Chromebooks, and on iPhone and Android for smaller files.
Turning a Base64 String Back Into a Picture
Developers meet pictures as Base64 text all the time: in data URLs inside HTML and CSS, in JSON responses from APIs, and in email source. The text begins with something like data:image/png;base64, followed by a very long string. Decoding converts it back to a file you can view and save.
How to tell the image type
The prefix names the type, such as image/jpeg, image/png or image/webp. If your string has no prefix, the first few characters give it away: iVBOR is the start of a PNG, /9j/ is a JPG, R0lGOD is a GIF and UklGR is a WebP.
Troubleshooting
- Remove line breaks and spaces added by email or logging.
- Check for missing padding at the end; Base64 length must be a multiple of four, filled with = signs.
- If the preview is blank, the string may be truncated or may not hold an image at all.
To go the other way, use image to Base64.
Frequently Asked Questions
Questions about Base64 to image