Skip to content

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text.

Output appears here.

Switch between encode and decode above, then type or paste your text. Base64 represents binary or text data using 64 ASCII characters, which makes it safe to embed in URLs, JSON, or data URIs where raw bytes would not survive. It is an encoding, not encryption — anyone can decode it.

This tool encodes and decodes UTF-8 correctly, so accented characters and emoji round-trip without corruption. Everything runs locally in your browser.

Frequently asked questions

Is Base64 a form of encryption?

No. Base64 is a reversible encoding, not encryption — it provides no security. Anyone can decode a Base64 string, so never use it to hide passwords or secrets.

Why does Base64 handle emoji correctly here?

Because it encodes the UTF-8 bytes of the text rather than raw code units. A naive btoa call breaks on non-Latin characters; this tool converts to UTF-8 first so Unicode round-trips cleanly.