Decode Base64 → Image
Encode Image → Base64
How to use
Use either direction:
- Encode (image → Base64): choose a file, pick output format (raw or data URL), then click Encode.
- Decode (Base64 → image): paste Base64 (raw or full data URL), choose a MIME type if needed, then click Decode to preview and download.
FAQ
Is this tool offline/private?
Yes. It runs in your browser and does not upload your image or Base64 anywhere.
What’s the difference between raw Base64 and a data URL?
Raw Base64 is just the encoded bytes. A data URL adds a prefix like data:image/png;base64, so browsers know the MIME type.
My Base64 has line breaks—will it work?
Enable whitespace removal (default) to strip spaces/newlines before decoding.
How do I decode Base64 that already includes a data URL prefix?
Paste the full string; the tool extracts the MIME type and Base64 automatically.
Why does decoding fail even though the string looks right?
Common causes are missing padding, copied non-Base64 characters, or the wrong content (not an image). Try pasting the original full data URL if available.
Can I download the decoded image?
Yes. After decoding and previewing, click Download to save the image locally.
Is Base64 larger than the original image file?
Usually yes—Base64 is roughly 33% larger than the binary data.