Base64 Decoder
Decode Base64 back to text, accepting URL-safe input, missing padding and stray whitespace.
Runs in your browser — nothing you type is sent anywhere
Decoded text
The result appears here as you type. Nothing is sent anywhere — the work happens in this page.
About the Base64 Decoder
Base64 turns up everywhere a system needs to move data through a text-only channel: an API response, an email header, a configuration file, the middle section of a JWT. Decoding it by hand is impossible, and most of the time you simply want to see what is in there.
Real Base64 in the wild is rarely tidy. Copied out of an email it has line breaks through it; taken from a URL it uses the URL-safe alphabet with hyphen and underscore; pulled from a token it has had the padding stripped off. All three are accepted here without you having to clean anything up first.
When something cannot be decoded, the reason is spelled out rather than left as a browser error. There are three distinct failures and they mean different things: the value contains characters Base64 never uses, the value is truncated so the last group is incomplete, or it decoded successfully to bytes that are not text at all — which usually means it is an image or a compressed file rather than something readable.
That last check matters. Decoding without it produces a string full of replacement characters that looks like a successful result, and people then spend time wondering why the output is gibberish instead of being told the data was never text.
Everything runs in your browser, which is the point when the Base64 you are inspecting is the payload of a real session token.
How to use the Base64 Decoder
Paste the Base64
Standard or URL-safe, padded or not, with or without line breaks. Whitespace is ignored, so you can paste straight from wherever you found it.
Read the decoded text
The result appears immediately on the right. There is no button and nothing is submitted anywhere.
Check the message if it fails
The error says which of the three things went wrong: invalid characters, truncated data, or content that is binary rather than text.
Copy what you need
Copy the decoded text to your clipboard, or download it as a file.
Frequently asked questions
Why does my Base64 fail to decode?
Do I need to add the padding back?
Can it decode URL-safe Base64?
What does 'decoded to binary data' mean?
Is it safe to decode a token here?
You may also need
Base64 Encoder
Encode text to Base64, including emoji and every alphabet, with a URL-safe option.
JWT Decoder
Read the header and claims inside a JSON Web Token, with expiry shown in plain language.
URL Decoder
Turn a wall of %20s back into readable text — and see what a long URL is made of.
JSON Formatter
Format, validate and minify JSON — with the exact line and column of any error.