Base64 Encoder / Decoder
Convert text to Base64 or back. This tool is Unicode-safe, so emojis, accented characters and other non-ASCII text round-trip correctly.
How it works
Base64 encodes binary data as ASCII using 64 characters. Because plain text is first turned into UTF-8 bytes, this tool handles any Unicode character correctly — not just the 128 basic ASCII ones that btoa alone supports.
Decoding does the reverse: Base64 → bytes → UTF-8 text. If the input isn’t valid Base64, the error is shown instead of a result.
Frequently asked questions
Why does my Base64 look different from other tools?
If the other tool only handled ASCII, non-ASCII text would produce different (or broken) output. This tool always goes through UTF-8, so results match any standards-compliant encoder.
What is Base64 used for?
Embedding small binary data (like images) in text, encoding passwords and tokens for transmission, and representing binary in places that only allow ASCII.

