Image Tools

Base64 to Image

Convert Base64 encoded string back to image file.

Click to upload or drag and drop

Supported: ALL FORMATS

How to Use Base64 to Image

1

Paste the Base64 string or full data URI into the text box, or upload a .txt file that contains it.

2

Press the Decode button to convert the text back into binary image data.

3

Preview the decoded image to confirm it is the picture you expected and that nothing is corrupted.

4

Download the image file and rename it with the correct extension if the format was not obvious from the string.

Features

Accepts a full data URI or a bare Base64 payload with no prefix
Detects the image format from the content type when the string supplies one
Paste directly or upload a .txt file containing the encoded text
Live preview so you can verify the picture before downloading anything
Reports invalid or truncated strings instead of silently returning a broken file
Free, private and server-side decoding with no account or sign-up

Frequently Asked Questions

If the string starts with a data URI header it names the format, for example a declaration for png or jpeg. Without a header the decoder uses a sensible default, and you can rename the downloaded file to the right extension.
A truncated string cannot be recovered because Base64 is a stream encoding, and the missing characters are gone. The decoder will report the problem instead of handing you a corrupt file.
Yes, that is exactly the case this tool handles. Copy the whole string including the data URI prefix and it will be decoded to the image it represents.
No. The text is decoded in temporary processing and discarded once you have the result, so nothing is kept.

About Base64 to Image

Encoding an image into a Base64 string is only half the round trip. The other half is turning it back into a viewable file, and that is what this tool does. Paste in the encoded text you were given, a data URI copied out of a stylesheet, or a payload out of a JSON body, and you get a proper image file back that you can open, inspect and save.

It is genuinely useful when you have inherited something. A developer pastes a Base64 blob into a bug report, a customer sends a broken string from a form, a database column holds an encoded thumbnail, or a template shipped with an image buried in a CSS file. Rather than squinting at text, paste it here and see the picture.

You can either upload a .txt file containing the string or paste the text directly into the box, and the output can be downloaded as a real image file. The decoder detects the content type from a data URI prefix when one is present, and if the string has no prefix it falls back to a sensible default so you can still recover the picture. If the text is truncated or has been mangled by a copy and paste, the decoder will tell you rather than producing a broken download.

When to Use This Tool

  • Recovering an image that only exists as an encoded string inside CSS, HTML or a JSON payload
  • Decoding a Base64 value from a database column, API response or bug report to see what it actually shows
  • Turning a pasted data URI back into a downloadable file for editing or re-uploading
  • Checking whether a Base64 string someone gave you is valid and complete