Skip to content

Base64 to Image Converter

Got a wall of Base64 from an API, a log or an old email? Paste it here (with or without the data: prefix) and the tool decodes it, detects the real format from the magic bytes — JPG, PNG, GIF or WebP — previews it, and lets you download the file. Malformed strings get a specific error instead of a broken picture.

How to base64 to Image

  1. Paste the data URL or raw Base64.
  2. Click decode.
  3. Check the preview and detected format, then download.

Frequently asked questions

It says the decoded bytes are not an image — why?

The string decoded fine, but the content is something else (text, audio, a zip…). The tool checks the file signature rather than trusting any prefix, and tells you instead of offering a corrupt download.

My string has line breaks — is that OK?

Yes, whitespace is ignored for raw Base64. The data: prefix form is also accepted as-is.

Related tools