Base64 to Image
Decode a Base64 string or data URI to an image online: preview it, see its type, size and dimensions, and download it as PNG, JPEG, SVG, WebP or GIF.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the Base64 to Image
The Base64 to Image decoder turns a Base64 string or data URI back into an image, so you can see what an API response, database field or inline CSS image actually contains. It detects the real file type from the decoded bytes, shows the size and dimensions, and lets you download the file.
Images are processed in your browser with its built-in codecs, so your photos and screenshots are never uploaded.
How to use the Base64 to Image
- Paste the Base64 text or the full data URI. Line breaks, missing padding and Base64URL are handled.
- Check the preview, the detected type, the file size and the pixel dimensions.
- Download the image with the right file extension.
Where it works well
- Data URIs and Base64 fields from APIs, databases and CSS.
Where it struggles
- Strings cut off in the middle, and Base64 that holds something other than an image (the detected type tells you).
Common mistakes
- Double encoding. If the decoded result is Base64 text again rather than an image, the data was encoded twice. Decode it once with the Base64 tool, then paste the result here.
- URL-escaped data. Base64 copied from a URL may contain %2B and %2F instead of + and /. URL-decode it first.
Works well with the Base64 to Image
- Image to Base64: encode an image the other way.
- URL Encode / Decode: remove URL escaping from Base64 copied out of a link.
- JSON Viewer: find the Base64 field inside a large JSON response.
Frequently asked questions
Why does it say the data is not an image?
The decoded bytes do not start with the signature of a supported format (PNG, JPEG, GIF, WebP, AVIF, BMP, ICO or SVG). The text may be cut off, encoded twice, or contain a different kind of file such as a PDF.
The data URI says image/jpeg but the tool shows PNG. Which is right?
The tool trusts the file signature in the bytes over the declared type, so the image really is a PNG. Fix the declared type in your code so browsers and other tools are not misled.
Is it safe to preview an SVG from an unknown source?
Yes, here. The image is shown in an <img> element, where scripts inside an SVG never run. Opening the downloaded SVG directly in a browser tab is different, so be careful with files from untrusted sources.
Related tools
Base64 Encode / Decode
Decode Base64 to text or encode text to Base64 online, with full UTF-8 and URL-safe Base64 support. Conversion runs in your browser, so nothing is uploaded.
Runs in your browserImage to Base64
Convert images to Base64 online: get a data URI, raw Base64, an <img> tag or CSS background for PNG, JPEG, SVG, WebP or GIF. Files stay in your browser.
Runs in your browserBackground Remover
Remove the background from photos free with AI: full HD resolution, bulk images, transparent PNG or white background. No upload, no sign-up, no watermark.
Runs in your browserRemove Object from Photo
Remove unwanted objects, people and blemishes from photos free: paint over them and AI fills the background on your device. No upload, no sign-up, full size.
Runs in your browserRemove Text from Image
Remove text from images free: words, dates and captions are found automatically and AI rebuilds the background. Works on photos and screenshots, no upload.
Runs in your browserEdit Text in Image
Edit text in images online free: change words, prices and dates in photos and screenshots. Old text is removed with AI and new text matches size and colour.
Runs in your browser