Base64 Encoder/Decoder

Convert text to/from Base64 — useful for developers and data encoding.

About this tool: Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 back to text. The tool handles UTF-8 characters correctly, and a swap button turns the output into the next input.

How to use it

  1. Choose Encode or Decode.
  2. Paste your text or Base64 string into the input box.
  3. Read the result in the output box.
  4. Copy the result, or use Swap to feed it back in the other direction.

Frequently asked questions

What is Base64 used for?
Base64 represents binary or special-character data using plain text characters, so it can travel safely in URLs, JSON, emails and data URIs.
Is Base64 encryption?
No. It is only an encoding that anyone can reverse, so never use it to protect secrets.
Why does decoding say my input is invalid?
The input is not valid Base64. Check for missing padding characters, extra symbols or text that was truncated when copied.

All Tools