Decode Base64 to Image
Decode Base64 strings or data URIs back into viewable, downloadable images. Paste text or drop a .txt file.
About the Base64 to Image
Paste any Base64 image string or data URI and this decoder rebuilds the binary file, sniffs its real format (PNG, JPEG, WebP, GIF), renders a preview and hands you a download button. The fastest way to recover an image trapped in code.
How it works
The decoder strips any data-URI prefix, validates the Base64, decodes the bytes, and detects the actual image type from magic numbers — so it works whether the payload is PNG, JPEG, WebP, GIF or something exotic. The decoded blob is previewed in-browser, never uploaded.
How to use it
Paste your Base64 text or data URI into the textarea (or drop a .txt file), and the image appears immediately. Confirm what it is, then download it as a properly named image file.
Supported formats & limitations
Accepts any Base64 image payload pasted as text or a .txt file up to 30MB. Invalid or truncated Base64 is reported clearly rather than half-decoded. Output format matches whatever the bytes actually are.
Common use cases
Extracting images from JSON API responses, reversing an image-to-base64 encoding, debugging data URIs found in CSS, recovering images from log files and single-file HTML documents, and inspecting what an embedded string really contains.
Frequently asked questions
Where are my images processed?
Everything runs locally in your browser via the Canvas API. Your picture never leaves your machine — there is no upload step at all, so processing is as private as working in an offline editor.
What kind of image files work with this tool?
TXT or TEXT/PLAIN inputs are supported, up to 30 MB per file. For exotic formats, convert them first with one of the converter tools, then come back.
What are the size and batch limits?
This tool handles one image at a time (up to 30 MB). For batch work, use one of the multi-file tools instead — the per-image result is the same.
Can I fine-tune the result before downloading?
Yes — settings include Base64 string or data URI. Each run regenerates the preview, so you can compare options before downloading.
Related tools
WebP to JPG
Convert WebP images to JPG online free. Universal compatibility for any app or website — private, instant, batch-friendly.
WebP to PNG
Convert WebP to PNG while keeping transparency and lossless quality. Free, private, works in any modern browser.
JPG to PNG
Convert JPG photos to PNG format online free. Lossless output with no quality loss — private in-browser conversion.
PNG to JPG
Convert PNG to JPG with background color control for transparency. Slash file sizes for photos — free, instant, private.
Metadata Viewer
Inspect EXIF, GPS and PNG metadata of any image — camera model, date, settings, location. private, in-browser — the file never leaves your device.
Remove Metadata
Strip EXIF, GPS and hidden metadata from images before sharing. Re-encoded clean output — privacy in one click.





