Base64 Decode Online
Decode Base64 back into text, image data, hex, or binary. This tool automatically removes whitespace, supports Base64URL, and fixes missing padding when possible.
Output type
Character encoding
Group by
Base64 decoding restores the original content from an encoded string. Use it to inspect API payloads, recover embedded files, or debug encoded values used in web apps, email, and security tooling.
How to Base64 Decode
- Paste your Base64 input (data URLs like data:image/...;base64,... also work).
- Select the output type (Text, Image, Hex, or Binary).
- Choose character encoding (UTF-8 recommended) and click Decode.
- Copy the result, or use Swap to move the output to the Encode page.
Want to encode again? Open Base64 Encode or click Swap.
Common Use Cases
- Recover original text from Base64 in API responses and logs
- Decode an image Base64 string (including data URLs)
- Inspect encoded files embedded in JSON payloads
- Debug authentication headers or encoded configuration values
- Convert Base64 back into hex/binary for analysis and troubleshooting
Examples
Base64: aGVsbG8=
Decodes to: "hello"
Data URL
Paste data:image/png;base64,... to preview the image.
Tip
If decode fails, the input may be corrupted or not Base64.
Tip: Base64 is reversible. Treat encoded strings with the same care as the original data (especially keys, tokens, or credentials).
FAQ
What is Base64 decoding?
Base64 decoding converts a Base64-encoded string back into the original bytes (text, image data, or file content).
Why does my Base64 decode fail?
Common causes include missing padding (=), invalid characters, copy/paste whitespace, or the input not actually being Base64. This tool auto-removes whitespace and adds padding when possible.
Does this support Base64URL (JWT-style Base64)?
Yes. Base64URL uses '-' and '_' instead of '+' and '/'. This tool converts Base64URL to standard Base64 automatically before decoding.
Can I decode a Base64 image (data URL)?
Yes. If you paste a data URL like data:image/png;base64,... the tool will strip the prefix and decode the content.
Which character encoding should I choose for text output?
Use UTF-8 for most modern text. If you expect legacy text, select the matching encoding used when the string was created.
Is Base64 secure?
No. Base64 is not encryption. Anyone can decode it, so treat Base64 strings like the original data.
Why do I see weird characters after decoding?
That usually means the decoded bytes are not text (e.g., a file or image) or the wrong text encoding was selected.
Can I re-encode the decoded result?
Yes—use the Swap button or open the Base64 Encode page to encode the output again.