Base64 Encoder
Encode text to Base64. Handles emoji and accents correctly.
What this tool does
Text typed or pasted on the left encodes to Base64 on the right, live, as a one-way conversion — the format Base64 itself does not compress or encrypt anything, it only represents the same bytes as plain ASCII text.
Why emoji and accented text need special handling
The plain JavaScript function most encoders are built on,
btoa, only understands one byte per character and
throws an error on anything outside that range — which includes
emoji, most accented letters, and non-Latin scripts. Text is
converted to its real UTF-8 bytes first here, so something like
"café ☕" encodes correctly on the first try instead of failing.
Privacy
Encoding happens in your browser. Nothing you type or paste is sent to a server.