Base64 to image converter
Paste Base64 or a data URL and download the image.
About this tool
This tool decodes a Base64 string or a data URL back into an image file you can preview and download. It detects the format (PNG, JPG, GIF, WebP, SVG, BMP, ICO or AVIF) from the decoded bytes and accepts raw Base64, URL-safe Base64, text with line breaks, or a whole CSS or HTML snippet. Decoding happens on your device.
At a glance
- What it does
- Paste Base64 or a data URL and download the image.
- Price
- Free, no sign-up
- Works in
- Your browser, on phone or computer. Works offline after the first visit.
- Privacy
- Files are processed on your device and never uploaded.
How to convert Base64 to an image
- Paste the Base64 text or data URL into the box.
- Check the preview, format and size that appear below.
- Press "Download image" to save the file.
Private
Your files are processed in your browser and never uploaded.
Fast
No upload or queue. Results are ready in seconds.
Free
No sign-up, no limits and no watermark on your files.
Frequently asked questions
How do I know which image format my Base64 is?
The tool reads the first bytes of the decoded data, which identify the format. For example, PNG files always start with the bytes 89 50 4E 47, which in Base64 begins with "iVBORw0KGgo".
Why does it say my Base64 is not valid?
Usually because part of the string is missing or extra characters were copied. Base64 only uses A–Z, a–z, 0–9, +, / and = (or - and _ in URL-safe Base64); copy the whole string again, including the end.
Can I paste the full CSS or HTML code?
Yes. Paste background-image: url("data:…") or <img src="data:…"> and the tool finds the data URL inside it.
Is it safe to decode Base64 here?
Yes, the text is decoded in your browser and nothing is sent anywhere. SVG images are shown as images, so any scripts inside them do not run.



