Base64 Encoder — Base64 represents binary data as printable ASCII characters, which is why it shows up in email attachments, data URLs, authorization headers, and encoded JSON. This encoder converts your text to UTF-8 bytes first, so emoji, accented characters, and CJK scripts all encode correctly — something naive encoders get wrong.
Encoding happens locally in your browser. Your text is never uploaded.
Was Base64 Encoder useful?
What is base64 encoder?
Base64 represents binary data as printable ASCII characters, which is why it shows up in email attachments, data URLs, authorization headers, and encoded JSON. This encoder converts your text to UTF-8 bytes first, so emoji, accented characters, and CJK scripts all encode correctly — something naive encoders get wrong.
The result uses the standard alphabet (A–Z, a–z, 0–9, +, /) with = padding, compatible with atob, Buffer, and every mainstream decoder.
How to use it
-
Type or paste text
Any Unicode text works, including emoji.
-
Copy the output
The Base64 string updates live; use Copy to grab it.
Examples
Plain ASCII
The classic example.
hello world
Result: aGVsbG8gd29ybGQ=
Unicode
UTF-8 bytes are encoded, not raw code units.
✓ ok
Result: 4pyTIG9r
Frequently asked questions
Related guides
How to Encrypt a Message with a Password (in Your Browser)
A practical guide to password-based encryption: how AES-GCM with PBKDF2 actually works, why the wire format matters for future compatibility, the common foot-guns (weak passwords, no integrity check, ECB mode), and how to encrypt a message in your browser without trusting a remote service with the plaintext.
URL Encoding Explained — What %20 and Other Percent Codes Mean
URLs can only contain a small set of characters. Everything else gets percent-encoded as %XX. Learn which characters are reserved, when to encode, and the practical rules for query strings, paths, and form data.
The 12 Best Free Developer Tools in 2026 (No Signup, No Upload)
A curated list of the best free developer tools that run in your browser. Format, validate, generate, convert, debug — all without an account, all without sending your code to a server.
Related tools
Last reviewed: 2026-09-18