Paste the Base64 or data URI
In the decode box of the Files and images section, paste the string. The data: prefix is optional.
Paste a Base64 string or a data URI, see a preview of the picture and download it as a file. Everything stays in your browser. Jump to the converter.
100% private — everything is converted in your browser and nothing is uploaded.
100% private — everything is converted in your browser and nothing is uploaded.
Keep going with your result in another tool. Nothing is uploaded.
In the decode box of the Files and images section, paste the string. The data: prefix is optional.
If the data is an image, you see it at once, with its type and size.
Choose a file name and download the picture with one click.
To convert Base64 to an image, paste the Base64 string, or the whole data URI, into the decode box of the Files and images section below the text converter. The picture appears as a preview together with its detected type and size, and the download button saves it with the file name you choose. It works with PNG, JPG, GIF, WebP and even PDF files, and nothing is uploaded.
A Base64 string does not say what it contains, unless it comes with a data: prefix. The tool reads the first bytes of the decoded data, called the magic number, to recognise the type, so it can preview the picture and give it the right extension. Each type leaves a recognisable trace at the start of its Base64.
| File type | Base64 starts with |
|---|---|
| JPEG | /9j/ |
| PNG | iVBORw0KGgo= |
| GIF | R0lGODlh |
| WebP | UklGRg== |
JVBERi0= | |
| ZIP | UEsDBA== |
Base64 pictures turn up in JSON responses from APIs, in HTML emails, in CSS files, in database exports and in browser developer tools. When you find one and want the actual file, this is the fastest way to get it, without writing a script or uploading it to an unknown service.
The conversion runs in your browser. What you type, paste or drop is never uploaded, which matters when the text holds tokens, personal data or internal files.
More utilities that also run without leaving your browser.