Base64 Encoder/Decoder

Convert Unicode text and Base64 locally in your browser.

About the Base64 Encoder/Decoder

Base64 represents UTF-8 text using a restricted set of ASCII characters. It is useful when text must travel through systems that are not designed for arbitrary byte sequences.

How to use it

  1. Enter Unicode text and choose Encode to create Base64.
  2. Paste valid Base64 and choose Decode to restore UTF-8 text.
  3. Copy the result or clear the tool when finished.

Unicode support

The encoder first converts text to UTF-8 bytes with TextEncoder. The decoder converts Base64 bytes back with a strict TextDecoder, so Vietnamese and other Unicode characters are preserved.

Encoding is not encryption

Base64 is reversible and does not protect passwords, tokens or confidential information. This tool processes data only in the browser, but sensitive values should still be handled carefully.

Example

Encode a short Unicode value such as Xin chào and decode the result again to confirm that accents survive the UTF-8 round trip.