What Base64 is and how this converter works
Base64 is a binary-to-text encoding that maps every 3 bytes of data to 4 characters drawn from a 64-character alphabet (A–Z, a–z, 0–9, + and /). Because the output is plain ASCII, Base64 lets binary data pass through channels that only understand text — which is why you see it in data URIs, JSON Web Tokens, email attachments and API keys.
This encoder converts your text to UTF-8 bytes first and then applies Base64, and the decoder does the reverse. That extra step matters: browsers’ built-in btoa() only supports Latin-1, so tools that skip it corrupt emoji and accented characters. Everything runs locally in your browser — nothing is transmitted.
How to encode or decode Base64
- Choose Encode or Decode at the top of the panel.
- Paste your text (or Base64 string) into the input.
- Click the convert button and copy the result.
Spotting Base64 in the wild
Base64 strings have a telltale look: long runs of mixed-case letters and digits, length divisible by four, often ending in = or ==. The middle segment of a JWT, the value after base64, in a data URI, and the credentials in a Basic auth header are all Base64 — paste any of them into the decoder to inspect what is inside. For encoding text into URLs instead, use the URL Encoder.