StringMash.com

Base64 decoder

Paste Base64 and read it back as text, with URL-safe and MIME variants.

Conversion
16 characters
Updates as you type
Decoded text

Using the decoder

Paste Base64 on the left, read the text on the right. Whitespace and line breaks are ignored, so you can paste straight out of an email header or a log file.

If the result comes back empty or wrong, check Variant first. A string full of - and _ is URL-safe Base64 and needs that setting rather than Standard.

What you're probably holding

Most people arrive with one of four things. A JSON Web Token, which you can spot because it starts with eyJ every time, that being what {" encodes to. It is three Base64url chunks separated by dots, and decoding the middle one shows the claims while proving nothing about whether the token is valid. A data URI from a stylesheet or an email, where the Base64 starts after the comma in data:image/png;base64,iVBOR — and iVBOR is how every PNG begins. An API key or certificate. A chunk of an email attachment.

Only the first and last are likely to be readable. A certificate decodes to bytes that were never characters, and the tool will say so rather than printing noise at you.

When decoding fails

Three things usually go wrong: the string was cut short so its length no longer divides by four, it uses the URL-safe alphabet and the variant needs switching, or it was never Base64 and the first foreign character gives it away.

The error names the character at fault and what the alphabet allows. If you aren't certain the message is Base64 in the first place, the cipher identifier will test it against everything else.

64 CHARACTERS

The Base64 alphabet

CharactersValues
A–Z0–25
a–z26–51
0–952–61
+62
/63
=padding

Related conversions

Going the other way is the encoder. For the raw bytes, try binary; for the number behind each character, character codes.

Base64 is often just the outer layer. If your decode produces more gibberish, feed the result to the cipher identifier.

Questions

My result is gibberish. Why?

The bytes probably weren't text. Base64 often carries files, and a PDF read as characters looks like noise.

What do the equals signs mean?

Padding, bringing the message up to a multiple of four characters. There are never more than two.

Can I decode a JWT here?

Yes. Paste the middle section, between the dots, with the URL-safe variant selected. That reads the claims; it doesn't check the signature.

Is decoding Base64 the same as decrypting?

No. There's no key and no secret. Never use it to hide anything.