Base64 Encoder / Decoder

Encode plain text to Base64 and decode Base64 back into readable text directly in your browser.

Input

0 characters

Output

0 characters

How it works

Browsers provide `btoa()` and `atob()` for Base64 encoding and decoding, but these functions are byte-oriented and can fail with non-ASCII text unless you first convert text through UTF-8 bytes [web:487][web:495]. This tool uses `TextEncoder` and `TextDecoder` around those browser APIs so Unicode text like Hindi, emojis, and accented characters can be handled safely in normal browser workflows [web:487][web:491][web:498].

  • Use Encode to Base64 to convert text into a Base64 string [web:487].
  • Use Decode Base64 to turn valid Base64 text back into readable text [web:495].
  • UTF-8-safe handling is important because direct `btoa()` / `atob()` alone are not enough for arbitrary Unicode input [web:487][web:496].