Encode text to Base64 and decode it back, with correct handling for UTF-8: accented characters, CJK text, and emoji all survive the round trip instead of throwing the error the browser's built-in btoa gives you.
Encode text to Base64 or decode Base64 back to text. Supports full UTF-8 including emojis and special characters.
The browser ships btoa and atob, and both are traps for anything outside Latin-1. Calling btoa on a string containing an emoji throws InvalidCharacterError, and the workarounds people paste from Stack Overflow frequently mangle multi-byte sequences. This tool encodes through TextEncoder first, so the byte sequence is real UTF-8 before it is Base64'd, and decodes symmetrically.
Day to day this comes up with Basic auth headers, data URIs, Kubernetes secrets (which are Base64, not encrypted: worth remembering), and JWT segments you want to eyeball without a full decoder.