Convert Base64 to Image
Paste a Base64 string or data URL and get the picture back as a file. It works fully in your browser, so your text is never sent anywhere.
- Free, no daily limits
- Text never uploaded
- Type detected for you
- No sign-up
- Runs on your device. Files are never uploaded.
- Free and unlimited. No sign-up, no watermark.
Base64 to image in three steps
No account, no email, no waiting for an upload.
- STEP 01
Paste your Base64
Paste the text or a full data:image URL into the box, or add a .txt file that holds it.
- STEP 02
Run the decoder
The tool finds the Base64 data, decodes it and checks what kind of picture it is.
- STEP 03
Download the image
Save the picture with the right file extension.
What Base64 to image does, and what it doesn't
We'd rather tell you up front than surprise you after the download.
What you get
- Accepts data URLs and plain Base64Paste either one. It can even pull a data URL out of HTML or CSS.
- Detects the real typeThe file type comes from the decoded bytes, so the extension is right even if the text claimed otherwise.
- Handles line breaksWhitespace and line breaks in the text are ignored.
- URL-safe Base64 tooThe variant with dashes and underscores also decodes.
- Clear errorsIf the text is cut off or invalid, you see what went wrong.
Good to know
- Pictures onlyIf the text decodes to something that is not a recognised image, you will see a message. For other Base64 text, use Base64 decode text.
- Complete text requiredIf part of the string is missing, decoding fails. Copy the full value again.
- Not Base64-encoded data URLsA data URL written as plain text, such as inline SVG, is not decoded here.
- Large stringsVery long text can be slow to paste on a phone. Add it as a text file instead.
Your photos never leave your device
The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.
Typical online tool upload
Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.
Mediaextractr no upload
The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.
When people use Base64 to image
Debug an API response
Turn an image field in JSON back into a viewable file.
Save an inline image
Extract a data URL from a web page or stylesheet.
Recover an email image
Pull out an image embedded in HTML email source.
Check your own encoding
Confirm that a string really is the picture you expected.
Mediaextractr vs typical upload tools
| MediaextractrPrivate | Typical upload tools | |
|---|---|---|
| Your file is uploaded | Never | Yes |
| Sign-up needed | No | Often, after a few files |
| Daily file limit | None | Often 1–2 free files |
| Watermark | Never | Sometimes |
| Wait for upload & download | No | Yes |
| Speed on very large files | Depends on your device | Depends on their servers |
What you can paste
Both forms work. A full data URL looks like data:image/png;base64, followed by a long run of characters. Bare Base64 is only that long run.
If the string sits inside HTML or CSS, you can paste the whole line and the tool will find the data URL in it.
Troubleshooting
If decoding fails, check these:
- Make sure you copied the entire string, with no cut-off at the end.
- Remove extra words, quotes or code around it if it still fails.
- Check that it is an image. Documents and other files encoded in Base64 will not be accepted.
Going the other way
To encode a picture instead, use Image to Base64. If you need to convert the recovered picture afterward, try Image converter.
Questions, answered
How do I convert Base64 to an image?
Paste the Base64 or data URL, run the tool and download the picture.
Do I need the data:image prefix?
No. Both a full data URL and bare Base64 work.
Is my Base64 sent to a server?
No. Decoding happens in your browser.
Which image types are supported?
JPG, PNG, WebP, GIF, SVG, AVIF, BMP, ICO, TIFF and HEIC are recognised.
Why does it say the text is incomplete?
The string was probably cut off. Copy the entire value again.
Does it work on phone and desktop?
Yes, in any modern browser.