Encode and Decode Base64 Safely Without Corrupted Unicode
Naive browser scripts relying directly on window.btoa() crash immediately whenever text contains accented European letters, Japanese kanji, Chinese characters, or currency symbols like € and ¥. This tool encodes raw UTF-8 byte streams properly and supports RFC 4648 URL-safe Base64URL.
- Full UTF-8 multi-byte character support using TextEncoder/TextDecoder
- One-click toggle between standard RFC 4648 Base64 and URL-safe Base64URL
- Automatic padding normalization when decoding unpadded Base64URL tokens
- Instant input/output swap button for round-trip verification
- Live character length tracking for HTTP header and cookie limits
- Zero-upload client-side execution safe for Basic Auth headers and secrets