Learn how Base64 image data is structured, how to decode it, and what to check when the output does not display.
How to Turn a Base64 String Back into an Image
Images are sometimes stored or transmitted as Base64 text. Decoding that text recreates the binary image representation so it can be viewed or saved. This is useful when inspecting an exported configuration, test payload, or data URL.
How to decode it
- Copy the complete string without truncating it.
- Open Bagiqo's Base64 to Image.
- Paste the input and run the decoder.
- Inspect the resulting image and save it only if the source is trusted.
If the image does not display
Check whether the string was cut off in a log or message. Then check invalid characters, an incorrect data URL prefix, or a mismatch between the declared media type and actual bytes. A valid-looking string can still represent incomplete data.
Handle it carefully
Base64 is encoding, not encryption. Anyone who receives the string may be able to decode it. Do not use it to protect private images or credentials.
For a straightforward visual check, use Bagiqo's Base64 to Image tool and compare the result with a known-good original.