Base64 Encode and Decode
Encode text to Base64 or decode Base64 back to text, with full UTF-8 support for accents and emoji and an optional URL-safe alphabet.
Base64 Encode and Decode turns text into Base64 and Base64 back into text. It handles accents and emoji correctly by working in UTF-8, can use the URL-safe alphabet, and runs in your browser so nothing is uploaded.
What is Base64?
Base64
Base64 writes any bytes using 64 safe characters: A to Z, a to z, 0 to 9, + and /. Every 3 bytes become 4 characters, so the result is about a third larger. It is used to put binary data inside email, JSON, data URLs and HTTP headers. It is an encoding, not encryption: anyone can decode it.
URL-safe Base64
A variant that swaps + for - and / for _ and usually drops the = padding, so the result can sit in a web address or a file name. JSON Web Tokens use it.
Why use Base64 Encode and Decode?
- Correct with any language. Text is converted to UTF-8 bytes first, so é, ü, Chinese characters and emoji survive the round trip instead of failing or turning into question marks.
- Forgiving when decoding. Both alphabets are accepted, missing padding is restored and line breaks are ignored, so Base64 copied from an email or a log still decodes.
- Private. Tokens and config values often hold secrets. Encoding and decoding happen in this tab only.
How to use Base64 Encode and Decode, step by step

- Paste your text into Base64 Encode and Decode. Type or paste plain text to encode, or a Base64 string to decode.
- Pick the mode. Choose Encode or Decode on the right. Tick URL-safe if the result will go in a link or a token.
- Copy the result. The output updates as you type. Use Copy or Download.
Frequently asked questions
Is Base64 a way to hide or protect data?
No. Base64 is reversible by anyone without a key. To keep text secret, use Encrypt Text instead.
Why does decoding say the result is not readable text?
The Base64 holds binary data, such as an image or a compressed file, rather than text. This tool decodes text only and tells you so instead of showing garbled characters.
Why is the encoded text longer?
Base64 uses four characters for every three bytes, so output is about 33 percent larger, plus up to two = signs of padding.
Looking for the long version? The guides cover each of these jobs in depth.