Paste Base64 image data and get a viewable, downloadable image back.
With or without the data:image prefix. Line breaks and spaces are ignored.
A data URI
With the data:image prefix
data:image/png;base64,iVBORw0KGgo…Raw Base64
No prefix needed
iVBORw0KGgoAAAANSUhEUg…Invalid data
See the error message
not-base64!!With or without the data URI prefix. Line breaks are fine.
The detected format and dimensions are shown alongside the image.
Saved with the correct extension for the format that was actually detected.
The real format is read from the decoded data, so a data URI labelled png that actually contains a JPEG still works.
Invalid Base64 and valid Base64 that is not an image are different problems, and the tool says which one you have.
Decoding and preview both happen locally, which matters because embedded images are often extracted from private documents.
Decode Base64 image data into a real image you can preview and save. Data URIs are accepted with or without their prefix, whitespace and line breaks are ignored, and the actual image format is detected from the decoded bytes rather than trusted from the prefix — so mislabelled data still works, and genuinely broken input gets a clear explanation instead of a blank box. Decoding happens entirely in your browser.
Keep going
Related pages in Image Tools, plus what others are using right now.
More image tools that pair well with this one.
Turn an image into a Base64 data URI you can paste straight into HTML or CSS.
Decode Base64 back to readable text, with clear errors when it is not valid.
Convert between JPEG, PNG and WebP, with quality control and transparency handling.
See the EXIF data hidden in a photo — camera, timestamp and GPS location.
Shrink JPEG, PNG and WebP files with a quality slider and a live size comparison.
Resize images by pixel dimensions or percentage, with the aspect ratio locked or free.
Create strong random passwords with full control over length and characters.
Format, validate and minify JSON, with errors that point to the exact line.
Work out any percentage — of a number, as a share, or as a change.
Count words, characters, sentences and paragraphs as you type.
Convert between length, weight, temperature, volume, speed, data and more.
Count characters with and without spaces, against the limits that matter.
Find the mean, median, mode and range of a list of numbers, with the working shown.
Sample and population standard deviation and variance, both shown, with the working.
Check a downloaded file against its published checksum, without uploading anything.
Stamp text like DRAFT or CONFIDENTIAL across a PDF, in your browser.
Turn JSON into readable YAML, with quoting and multiline strings handled properly.
Escape text for HTML, or turn entities back into readable characters.