Base64 Encoder & Decoder

The Base64 Encoder & Decoder converts text to Base64 and back, with correct handling of Unicode (including emoji and non-Latin scripts) that breaks naive implementations. Paste your text or Base64 string, pick encode or decode, and copy the result. Everything runs in your browser, so the tool is safe for tokens, data URIs and embedded payloads.

How to use the Base64 Encoder & Decoder

  1. Paste text or a Base64 string into the input.
  2. Pick Encode or Decode.
  3. Read the result and copy it.

Supported formats & inputs

Input: UTF-8 text or Base64 string. Output: Base64 or UTF-8 text.

Features

  • Encode text to Base64; decode Base64 to text; full Unicode support (TextEncoder/TextDecoder); copy to clipboard; clear error on invalid Base64; in-browser, no data sent.

Important limitations

Decoding requires valid Base64 input. Invalid characters or padding produce a clear error rather than garbled output.

Common use cases

  • Encode a data URI for HTML/CSS
  • Decode an API token for inspection
  • Embed an image or font as Base64
  • Convert text for basic transport encoding

Privacy

This tool processes your text entirely in your browser. Nothing is uploaded, and no file contents or filenames are ever sent to a server or included in analytics. The only network requests are the processing libraries (loaded once) and anonymous event pings. You can verify this in your browser's network tab.

Frequently asked questions

Why does my decoded text show question marks?

You used a tool that ignored Unicode. This tool uses TextEncoder/TextDecoder, so emoji and non-Latin scripts decode correctly.

Is Base64 encryption?

No. Base64 is an encoding, not encryption — it's trivially reversible. Never use it to protect secrets.

Why did decoding fail?

The input is not valid Base64 — usually a non-Base64 character or wrong padding. The error message tells you.

Related tools