Base64 Encoder and Decoder

Convert text to Base64 and back without breaking non-English characters.

Loading tool...

How to use Base64 Encoder and Decoder

  1. Choose encode or decode.
  2. Paste your text or Base64 string.
  3. Copy the result.

About this tool

Base64 represents bytes using 64 printable characters, which is how binary data is embedded in JSON, emails and data URLs. This tool encodes text as UTF-8 first, so accented letters, emoji and other scripts survive a round trip.

URL-safe mode swaps + and / for - and _ and drops padding, matching the Base64URL format used in JWTs. Base64 is an encoding, not encryption, so do not use it to protect secrets.

Frequently Asked Questions

Is Base64 secure?
No. Anyone can decode it. It only changes how data is represented.
Why does decoding fail?
The input may contain characters outside the Base64 alphabet or decode to bytes that are not valid UTF-8 text.

Related tools