Advertisement
Decoded image
Dimensions

How to Decode Base64 to Image

If you have a Base64-encoded image string (often starting with "data:image/jpeg;base64," or similar), our tool decodes it back to a viewable and downloadable image file in seconds.

Common Sources of Base64 Image Strings

  • API responses that include image data
  • HTML source code with embedded images
  • CSS files with data URI background images
  • JSON configuration files with image data
  • Debugging tools showing image data

Prefix Handling

You can paste the string with or without the data URI prefix. Both formats are accepted:

  • With prefix: data:image/jpeg;base64,/9j/4AAQ...
  • Without prefix: /9j/4AAQ...

Frequently Asked Questions

What if my Base64 string is invalid?

The tool will show an error message. Make sure you've copied the complete Base64 string without any line breaks or extra characters. Base64 strings only contain A-Z, a-z, 0-9, +, /, and = padding characters.

What image format will be downloaded?

The output format matches the original image format encoded in the data URI. If no MIME type is specified, PNG is used as default.