Base64 to Image Converter
Turn Base64 strings and data URLs back into viewable, downloadable image files.
Paste Base64 or a data URL
Tip: you can also paste straight into the box with Ctrl/Cmd+V and press Ctrl/Cmd+Enter to decode.
100% local decoding
- →Accepts data URLs and raw Base64 with or without a prefix
- →File type is detected from the data URL header or image signature
- →Preview and download happen without any upload
Decoded files up to 25 MB are supported. This is the inverse of Photo2URL's Image to Base64 tool.
How to Convert Base64 Back to an Image
- 1
Paste your input
Copy a data URL or raw Base64 string and paste it into the box, or use Paste from clipboard.
- 2
Decode locally
Press Decode image. The browser validates and decodes the string on your device.
- 3
Check the preview
Confirm the detected format, file size, and dimensions before downloading.
- 4
Download the image
Save the decoded bytes as a real image file in its original format.
Why Decode Base64 in the Browser
Uploading Base64 to a server just to download it again would be slow and unnecessary. This tool keeps the entire decode on your device.
Data URL or raw Base64
Paste a complete data URL or just the raw Base64 text. Whitespace and line breaks are handled automatically.
Automatic format detection
When no MIME type is declared, the tool identifies JPEG, PNG, GIF, WEBP, BMP, SVG, and AVIF from their file signatures.
Runs 100% in the browser
Decoding uses atob(), TextDecoder, and data URLs on your device. There is no upload step and no server-side processing.
Instant preview
The decoded image renders immediately, with detected format, file size, and pixel dimensions.
Original-format download
Download the exact decoded bytes as a real image file in the detected format — no re-encoding or quality loss.
Clipboard friendly
Paste directly into the box or use the Paste from clipboard button, then decode with one click.
Supported Formats and Limits
Detected formats
PNG, JPG, GIF, WEBP, SVG, BMP, and AVIF (when your browser can render it). Data URLs that declare a non-image type are rejected.
Size limit
Decoded files up to 25 MB are accepted. Base64 text for a 25 MB file is roughly 34 MB, so the tool validates size before allocating decoded bytes.
Privacy: Your Base64 Input Never Leaves This Page
Base64 to Image is a browser-only tool. The pasted string is decoded with native browser APIs on your device and rendered as a data URL for preview. Photo2URL does not receive, process, or store your input.
That makes this tool different from the hosted Image to URL converter, which uploads images to create a public URL. To encode an image instead of decoding one, use Image to Base64.
Frequently Asked Questions
Is the Base64 to Image converter free?
Yes. Decoding runs entirely in your browser with native APIs, so there are no quotas, accounts, or server costs.
Do you upload or store my Base64 input?
No. The Base64 string is decoded locally with atob() and rendered as a data URL on your device. Nothing is sent to Photo2URL or stored on our servers.
What input formats do you accept?
Complete data URLs such as data:image/png;base64,… and raw Base64 strings with or without line breaks. If no MIME type is declared, the tool detects the format from the image's file signature.
Which image formats can be decoded?
PNG, JPG, GIF, WEBP, SVG, BMP, and AVIF when the browser supports rendering them. Data URLs that declare another non-image MIME type are rejected with a clear message.
What happens if my Base64 is invalid?
The tool validates the Base64 alphabet, padding, and decoded content before showing anything. Invalid strings and decoded data that isn't a recognized image produce an inline error instead of a broken download.
Is there a size limit?
Decoded files up to 25 MB are accepted. Larger inputs are rejected before decoding to avoid exhausting browser memory.
What is the difference between raw Base64 and a data URL?
A data URL includes the MIME prefix (data:image/png;base64,…) and can be opened directly in a browser. Raw Base64 is the encoded text after the comma. This tool accepts either one.