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.