Base64 Encoder / Decoder

Convert text to Base64 and back. Handles emoji and non-English characters correctly — everything happens in your browser.

How it works

Base64 represents binary data as plain ASCII text, which is why it's used in data URLs, email attachments, and API payloads. Encode turns your text (including Unicode like emoji) into Base64; Decode reverses it. Invalid input is flagged instead of silently producing garbage.

How to use

  1. Type or paste text into the top box, labeled "Text to encode" — this same box accepts Base64 when you want to decode.
  2. Click the "Encode →" button to convert your text to Base64; the encoded result appears in the "Result" box.
  3. To decode, paste Base64 into the input box and click the "← Decode" button instead.
  4. Click "Copy result" to copy the output to your clipboard, or "Clear" to wipe both boxes and start over. The "Result" box is read-only, so your source text stays intact no matter how many times you encode or decode.

Frequently asked questions

What does Base64 actually look like?

Encoding "Hello" produces "SGVsbG8=" — plain text becomes a string of letters, digits, and the occasional plus sign, slash, or trailing "=" padding character. The output is always plain ASCII text, which is the whole point.

Is Base64 encryption?

No. Base64 is an encoding, not encryption — anyone can decode it. Its job is to represent binary data as plain ASCII text so it survives systems that expect text, like email attachments, data URLs, and API payloads.

Does it handle emoji and non-English characters?

Yes. Encoding runs through the browser's TextEncoder, which converts full Unicode text — emoji, accented characters, other scripts — into bytes before encoding, and TextDecoder reverses it, so round-trips are exact.

What happens if I decode invalid Base64?

You get a clear error message instead of silent garbage. Invalid characters or malformed padding are flagged in the error line above the result box.