Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text. Free, instant, and runs entirely in your browser.

How to Encode or Decode Base64

  1. Select "Encode" to convert plain text to Base64, or "Decode" to convert Base64 back to text.
  2. Paste or type your content into the input area.
  3. Click "Convert" to process your input.
  4. Use "Copy Result" to copy the output to your clipboard.
  5. Use "Swap" to move the output back to the input and toggle the mode.

Frequently Asked Questions

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data as an ASCII string. It is commonly used to embed images in HTML or CSS, transmit data in URLs and APIs, and encode email attachments.

Does this tool support special characters and Unicode?

Yes. The encoder handles full UTF-8 text including emojis, accented characters, and non-Latin scripts. It first converts the text to UTF-8 bytes before Base64-encoding them.

Is my data secure?

Absolutely. All encoding and decoding happens entirely in your browser using JavaScript. No data is sent to any server.

Why did my decode fail?

Decoding will fail if the input is not a valid Base64 string. Common issues include extra whitespace, missing padding characters (=), or non-Base64 characters. Check your input and try again.