Base64 Encoder & Decoder

Encode and decode Base64 online. Full UTF-8 support, runs entirely in your browser, nothing is uploaded.

All processing happens in your browser. Nothing is uploaded.

How to use

  1. Pick Encode to turn text into Base64, or Decode to turn Base64 back into text.
  2. Paste or type your content into the input box.
  3. The result appears instantly in the output box.
  4. Click Copy to put the result on your clipboard.

About Base64

Base64 represents binary data using 64 printable ASCII characters. It exists because many older protocols — email being the classic example — could only reliably carry text, so binary payloads had to be reshaped into something that survives the trip.

The encoder reads three bytes at a time and rewrites them as four characters, which is why Base64 output is roughly one third larger than its input. When the input length is not divisible by three, = padding characters fill the gap.

A detail that trips people up: the browser’s built-in btoa() function throws an error on any character above U+00FF, so naive implementations break the moment you paste Chinese text or an emoji. This tool encodes the string to UTF-8 bytes first, which is why non-English input round-trips correctly here.

Base64 is not a security measure. It is trivially reversible by design, and anything you encode should be considered public.

Frequently asked questions

Is my data sent to a server?

No. Encoding and decoding happen entirely in your browser using JavaScript. Your input never leaves your device.

Does this handle non-English characters and emoji?

Yes. The text is converted to UTF-8 bytes before encoding, so Chinese, Japanese, Arabic, emoji and any other Unicode content round-trips correctly.

Why does my decoded text look like garbage?

The input was probably not valid Base64, or it encoded binary data rather than text. This tool only decodes text that was originally UTF-8.

Is Base64 encryption?

No. Base64 is an encoding, not encryption. Anyone can decode it. Never use it to protect secrets.