How to use the Base64 Encoder & Decoder
- Choose Encode or Decode.
- Paste your text or Base64.
- Copy the result.
What does this tool do?
Base64 represents binary data using 64 safe characters (A–Z, a–z, 0–9, + and /). It's used in email attachments, data URIs, basic HTTP authentication and JWTs.
Many simple tools break on non-English text because the browser's btoa() only handles Latin-1. This tool converts to UTF-8 first, so any language and emoji round-trip correctly. URL-safe Base64 (with - and _) is decoded automatically.
Why use it?
- Decode tokens and data URIs.
- Encode credentials for testing.
- Works with every language.
Example
“Hello, world!” encodes to SGVsbG8sIHdvcmxkIQ==. “Café ☕” encodes to Q2Fmw6kg4piV.
Accuracy and limits
- Base64 is encoding, not encryption. Anyone can decode it, so never use it to protect secrets.
Privacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Last reviewed by the M2Toolkit team.