Base64 to Image

Convert Base64 encoded strings back to downloadable image files.

Turn Base64 text back into an image you can see and save. Paste a data URI (data:image/png;base64,…) or just the Base64 part, and the tool works out the format from the data itself (PNG, JPG, GIF, WebP, AVIF, SVG, BMP or ICO), shows a preview with its size and dimensions, and lets you download it with the right file extension. Decoding runs in your browser.

Common use cases

  • See an image embedded in HTML, CSS or JSON
  • Save an image from an API response that returns Base64
  • Check what a data URI in an email or log contains
  • Recover an image stored as text in a database

How to use

  1. Paste the Base64 or data URI, or press Try an example.
  2. Check the preview, format and size.
  3. Download the image.

FAQ

Do I need the data:image/… prefix?

No. The format is detected from the first bytes of the image, so plain Base64 works too.

Why do I get an error?

The text may be cut off, include extra characters, or not be an image at all. Base64 for text decodes with the Base64 decoder instead.

How do I make Base64 from an image?

Use the image to Base64 converter.