Encrypt Online
Theme

Base64 Decode

Decode Base64 into text or inspect the original bytes

Safety note: Decode Base64 into text, hex, or bytes. Avoid pasting real credentials or tokens you do not need to inspect; Base64 is readable encoding, not protection.
Decode Base64 into exact bytesInspect text, binary data, Base64URL, or a;base64 data URI without forcing the bytes into UTF-8
How to Read the Result

Base64 decoding returns bytes, not necessarily text. The size and hex preview describe those exact bytes. A text preview appears only when the complete result is valid UTF-8. File detection is a convenience based on recognized signatures or parseable text; it is not a malware or file-safety scan.

Strict Base64 and Base64URL Validation

This decoder checks the alphabet, padding position, encoded length, and unused bits in the final character. The options make whitespace and missing-padding behavior explicit, so a value is not silently accepted under rules you did not intend. Automatic detection reports ambiguity when the input uses only characters shared by Base64 and Base64URL.

Readable Text and Binary Data

Images, PDFs, archives, encrypted data, and compressed data commonly decode to bytes that are not UTF-8. That is a valid result, not a decode failure. Review the file-signature hint and hex bytes, then download the unchanged bytes if you need to open them with an appropriate local application.

Decode a Base64 Data URI

Paste the complete data:...;base64,... value. The decoder separates the media type and parameters from the payload, decodes percent-escaped payload characters, and compares a recognized file signature with the declared media type. Non-Base64 data URIs should be handled with a URL decoder instead.

Decode Base64 Locally

Use the command appropriate for your environment when the value should not be pasted into any website:

# Linux
printf '%s' 'SGVsbG8sIHdvcmxkIQ==' | base64 --decode # macOS
printf '%s' 'SGVsbG8sIHdvcmxkIQ==' | base64 -D

Python can validate standard Base64 padding and characters explicitly:

import base64 decoded_bytes = base64.b64decode("SGVsbG8sIHdvcmxkIQ==", validate=True)
print(decoded_bytes)
Base64 Decoding FAQ
Why does valid Base64 have no readable output?

The decoded result may be binary data or text in an encoding other than UTF-8. Use the hex preview or download the bytes.

Can the tool prove what a binary file is?

No. A recognized signature is a useful format hint, but it does not validate the complete file or establish that the file is safe.

Does Base64 protect a secret?

No. Anyone who has the encoded value can decode it without a password or key.