Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 back to text, with full Unicode support. Everything is processed locally in your browser.

Encoded with UTF-8, so Chinese and other multi-byte characters survive a round trip. Base64 is an encoding, not encryption — never use it to protect secrets.

What this tool does

Base64 turns arbitrary text or binary data into plain ASCII, which is why you run into it in email attachments, data URLs and API tokens. This page converts in both directions, in the browser.

Unicode is handled properly: Chinese, Japanese, emoji and accented characters are encoded as UTF-8 first, so decoding gives back the original text instead of mojibake. Pasted content is never sent to a server.

How to use it

  1. Paste text into the top box, or paste an existing Base64 string into the bottom box.
  2. Press Encode to turn plain text into Base64, or Decode to turn Base64 back into text.
  3. Use Swap to exchange the two boxes and convert the result again.
  4. Copy the Base64 result from the bottom box.

Frequently asked questions

Will Chinese characters and emoji survive a round trip?

Yes. Text is converted to UTF-8 before encoding, so decoding restores the exact original characters.

Is my text sent to a server?

No. Encoding and decoding use the browser's built-in functions on your own device.

Does it accept Base64URL, with - and _ instead of + and /?

Yes. The decoder converts - and _ automatically and fills in missing padding, so tokens copied from URLs work as-is.

If you have any questions, contact [email protected]

← Back to all tools