What does it do?
Encodes text to Base64 and decodes Base64 to text, with support for accents and emojis (UTF-8) and the "URL-safe" variant.
Why does it matter?
Base64 is everywhere: in Basic authentication headers, JWT tokens, certificates, email and many APIs. To see what a token contains or build a header by hand, you need to encode and decode quickly without character mix-ups.
How does it work?
The text is first converted to UTF-8 bytes, and every 3 bytes are written as 4 characters from a 64-symbol alphabet (letters, digits, "+" and "/"). The URL-safe variant uses "-" and "_" instead of "+" and "/". Everything is processed in your browser: what you type is never sent to any server.
How to read the result
- "=" at the end
- Padding to complete the last group. The URL-safe variant often leaves it out.
- Decoding error
- The text has non-Base64 characters or a part is missing.
What is it for?
- Build or check an "Authorization: Basic" header.
- Inspect a JWT token (the dot-separated parts are URL-safe Base64).
- Decode attachments or text from emails and APIs.