How to Use the Base64 Text Encoder and Decoder
-
1
Choose Mode: "Encode" or "Decode".
-
2
Enter or paste text into the input box.
-
3
Toggle "URL-Safe Base64" if generating tokens for query strings (`-` and `_` instead of `+` and `/`).
-
4
Click "Convert" and copy the resulting string.
Practical Example & Use Case
Encoding Basic Auth credentials or JWT payload segments containing emojis and international characters without encoding corruption.
Technical Notes & Limitations
Standard browser `btoa` fails on non-ASCII characters; WebUtilities uses a UTF-8 byte stream encoder to guarantee zero encoding exceptions.
Frequently Asked Questions
Will emojis and accents like "café ☕" work?
Yes! Full multi-byte UTF-8 Unicode is preserved perfectly.