Skip to content

Base64 to Image Converter

Paste a Base64 string or data URI and get the image back as a downloadable file.

How to use the Base64 to Image Converter

  1. Paste the Base64 string, with or without the data:image/... prefix.
  2. Press Decode.
  3. Check the preview, then download the image file.

Decoding a Base64 image

Both plain Base64 payloads and complete data URIs are accepted. The string is decoded back into binary, the image type is detected from the data, and a preview is shown before you download so you can confirm the result is what you expected.

Common problems

  • Line breaks and spaces — strings copied out of code often arrive wrapped. Whitespace is stripped automatically.
  • Truncated strings — a payload cut short by a copy limit cannot be recovered; the decode will fail or produce a broken image.
  • URL-safe variants — some APIs replace + and / with - and _. Convert them back before decoding.
  • Not an image — Base64 can hold any file type. If the data is a PDF or a ZIP, no preview appears.

Frequently asked questions

Do I need to include the data: prefix?
No. The tool accepts a complete data URI or the raw Base64 payload on its own.
Why does decoding fail?
Usually because the string is incomplete, or because it uses the URL-safe alphabet where + and / have been replaced by - and _.