Base64 to Image

Paste Base64 or a data URI to preview the image and download it. Magic-byte detection chooses the MIME type when possible.

Result

Image preview

Paste Base64 or a data URI, then Decode.

How to convert Base64 to an image

  1. Paste raw Base64 or a data URI.
  2. Click Decode.
  3. Preview the image when the bytes match a supported format.
  4. Download the file, or clear to revoke the preview URL.

FAQ

PNG, JPEG, GIF, WebP, BMP, and safe SVG. Decoded bytes must match a recognized image signature.
SVG with script tags or inline event handlers is rejected to reduce XSS risk in the preview.
No. Decoding and preview stay on your device. Object URLs used for preview are revoked on reset and unmount.
Truncated Base64 or wrong alphabet characters break RFC 4648 decoding. Ensure the string length is a multiple of four with correct = padding, and that you are not mixing URL-safe -_ with standard +/ encoding.
Yes. Paste the payload field from JSON or a raw Base64 string. If the response wrapped the value in quotes or a data URI, paste the whole value — prefixes are stripped automatically.

Related tools