Use this free Base64 to Image converter to convert a Base64 string back into an image. Paste the Base64 text or data URI, preview the picture and download it as a PNG, JPG, GIF, WebP or SVG file. Decoding happens in your browser, so nothing is sent anywhere.
Private by design: your files are processed in your browser and never uploaded to any server.
How to convert Base64 to image
- Paste your Base64 text. Paste the full data URI (starting with data:image/…) or just the Base64 string.
- Click Convert to image. The tool detects the image type automatically: PNG, JPG, GIF, WebP, BMP, ICO, AVIF or SVG.
- Preview and download. Check the picture in the large preview and click Download.
Two-way tool: Base64 to image and back
This converter works both ways. Paste your code in the Base64 → Image tab and it converts automatically – no button needed. Click Get the code again or open the Image → Base64 tab to turn any image into Base64. You can also open our Image to Base64 converter directly.
- Finds several images in one text – paste a whole HTML, CSS or JSON file and every Base64 image is extracted
- Open a .txt file that contains the code
- Shows the format and size in pixels, with a preview even for TIFF and HEIC
- Clear messages when a code is incomplete or is not an image (for example a PDF)
- Try an example code with one click
Why decode Base64 to an image?
- See what a Base64 string contains. Developers and testers can check images stored in databases, logs or API responses.
- Save embedded images. Extract pictures that were embedded in HTML, CSS or emails as data URIs.
- Debug quickly. No need to write a script just to view one image.
What is Base64?
Base64 is a way of writing binary data, such as an image, using only 64 safe text characters: A–Z, a–z, 0–9, plus (+) and slash (/). Because the result is plain text, it can be placed inside HTML, CSS, JSON, XML or an email without breaking anything. A data URI adds a short label in front, for example data:image/png;base64,, so the browser knows the image type and can display it directly.
The trade-off is size: Base64 text is about 33 percent larger than the original file. That is why it is best for small images such as icons, logos and placeholders.
Common uses
- Viewing images stored as Base64 in a database or log.
- Saving images embedded in web pages or emails.
- Checking API responses that return images as Base64.
Features of this Base64 to Image converter
- Automatic type detection: PNG, JPG, GIF, WebP, BMP, ICO, AVIF and SVG.
- Accepts data URIs or raw Base64: spaces, line breaks and URL-safe characters are handled.
- Instant preview and download.
- No upload, fully private: files are processed on your own device and never sent to a server.
- Free, with no limits: no sign-up, no watermark and no daily cap.
- Works everywhere: Android, iPhone, Windows, Mac and Linux, in any modern browser.
Tips
- Make sure you copy the whole Base64 string. A missing character at the end can break the image.
Is it safe to use?
The text you paste and the image it contains are processed only in your browser.
Add this Base64 to image converter to your website (free widget)
Do you run a blog, school, coaching or business website? You can add this free Base64 to image converter to your own page as a widget in under a minute. It works just like the tool above: files are processed in your visitor’s browser and never uploaded, and the widget shows no ads, only a small “Powered by All Tool Widgets” link.
- Open Get this tool as a free widget for your website just below the tool.
- Pick a button colour that matches your brand and click Copy code.
- Paste the code into your page: a Custom HTML block in WordPress, an HTML/JavaScript gadget in Blogger, or an Embed HTML element in Wix and Shopify.
See all embeddable tools on our free widgets page.
Frequently asked questions
Is this Base64 to Image converter free?
Yes. It is completely free, with no sign-up, no watermark and no limit on the number of files.
Is my Base64 text sent to a server?
No. Decoding happens in your browser, so the data never leaves your device.
Does it work on my phone?
Yes. It works in Chrome, Safari, Edge and Firefox on Android and iPhone, with nothing to install.
Which image types can be decoded?
PNG, JPG, GIF, WebP, BMP, ICO, AVIF and SVG. The type is detected automatically from the data.
Does it support URL-safe Base64?
Yes. URL-safe characters (- and _) and line breaks are handled automatically.
Do I need the data:image prefix?
No. Paste either a full data URI or just the Base64 characters. The tool detects the image type from the data itself.
Why does it say my text is not a valid image?
Usually part of the string is missing. Copy the entire Base64 text, including the last characters, and try again.
Can I add this Base64 to image converter to my website?
Yes. Copy the free widget code from the box below the tool and paste it into any web page. The widget is free for personal and commercial websites, shows no ads and keeps your visitors’ files private.
You may also like: PNG to JPG converter, JPG to PNG converter.