About Base64 to Image
Base64 image strings arrive from APIs, database exports, email templates and configuration files, and reading them as text tells you very little. Pasting one here decodes it into real image bytes, shows a preview and lets you save the file with the correct extension. The decoder sniffs the PNG, JPEG, GIF, WebP, BMP or SVG signature, so a raw payload without a data URL prefix still works.
The tool also handles the annoying variations: whitespace and line breaks from wrapped logs, the URL-safe alphabet that swaps + and / for - and _, and percent-encoded data URLs. Bad input is reported in plain language instead of producing a corrupt download, and nothing leaves the browser.
What this tool does
Data URL or raw Base64
Paste the full data:image/...;base64,... string or only the encoded payload; both are decoded and the type is detected from the bytes.
Six image formats detected
PNG, JPEG, GIF, WebP, BMP and SVG are recognised by their file signatures, so the download gets the right extension automatically.
Whitespace and Base64url tolerant
Line-wrapped logs, spaces and the URL-safe - and _ characters are normalised before decoding, avoiding most copy-paste errors.
Preview before downloading
The decoded image is rendered at its real aspect ratio, with the detected media type and decoded byte size shown underneath.
Decoding stays in the tab
The string is decoded with atob and turned into a local Blob. It is never uploaded, stored or forwarded to another service.
How to use Base64 to Image
- 01
Paste the Base64 text
Drop in a complete data URL or the raw Base64 payload, including any surrounding line breaks; whitespace is ignored.
- 02
Press Decode image
The browser decodes the string locally and checks the first bytes to identify the actual image format.
- 03
Check the preview and size
Confirm the picture looks right and note the detected media type and decoded size before saving it.
- 04
Download the image
Download the decoded file with the detected extension, then reset the form to decode another string.
How this tool works
- Works with
- BASE64 → IMAGE
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Maximum size
- Up to about 40 MB of Base64 text
- Requirements
- Chrome, Edge, Firefox or Safari on desktop or mobile
Limitations worth knowing
- Input text is limited to about 40 MB, which keeps the decoded copy inside a normal browser tab's memory budget.
- Only PNG, JPEG, GIF, WebP, BMP and SVG signatures are recognised; other formats such as AVIF or ICO are rejected.
- The byte check confirms the container format, not that every pixel decodes or that the image is trustworthy.
Privacy and file handling
The Base64 text is decoded in memory with the browser's atob function and turned into a local Blob for preview and download. Nothing is uploaded, saved or logged, and closing the page discards the input and the decoded image.
Read the full privacy policy