Base64 Encoder & Decoder
Paste anything. We auto-detect whether it's Base64 already and flip direction. 100% in your browser β nothing leaves your device.
Output
Output appears here.
What is Base64?
The 60-second version
Base64 is a way to represent binary data β images, files, encryption keys, anything β using only 64 printable characters (AβZ, aβz, 0β9, +, /, with = as padding). It's not encryption. Anyone can decode it instantly. It exists so you can safely shove arbitrary bytes into text-only places like emails, URLs, JSON, or HTTP headers.
Where you'll see it
- Email attachments β every PDF you send is Base64 inside the SMTP body.
- JWT tokens β header and payload are Base64URL.
- Data URLs β
data:image/png;base64,iVBORw0Kβ¦embeds an image directly in HTML. - Basic Auth β your username:password is Base64 in the
Authorizationheader. - Configuration files β encoded secrets, certificates, public keys.
Common confusion
"Base64-encoded password" doesn't mean secure. If a system stores passwords as Base64, that's the same as storing them in plaintext β anyone with the encoded string can recover the original.