Base64 encoder & decoder
Convert text to Base64 and back. Unlike the browser's raw btoa, this handles Unicode properly, so accented characters, Arabic, Urdu, Chinese and emoji survive the round trip.
How to use the base64 encoder & decoder
- Type or paste your text on top.
- Click encode to fill the Base64 field, or paste Base64 below and click decode.
- Copy whichever side you need.
How it works
Base64 maps every three bytes of input to four characters from a 64-character alphabet, which is why encoded output is about 33% larger than the input. It exists to move binary data safely through systems that only reliably handle text, such as email headers, data URIs and JSON fields.
Text is encoded to UTF-8 bytes before the Base64 step and decoded back afterwards. Skipping that step is why naive encoders break on any character outside basic Latin.
Common questions
Is Base64 encryption?
No. It is an encoding, fully reversible by anyone. Never use it to protect a password or a secret.
Why does my decoded text look wrong?
Usually a truncated string or a missing '=' pad at the end. Check you copied the whole value.