Text

Base64 encode and decode

Encode text to Base64 or decode a Base64 string back to text.

Loading tool…

  1. 1 Paste the text or the Base64 string.
  2. 2 Choose encode or decode.
  3. 3 Copy the output.
  4. 4 If decode fails, check that the string was not cut off.

How it works

Base64 represents bytes as ASCII so they can travel through systems that expect text. Paste text to encode it, or paste Base64 to decode it. Decoding uses UTF-8. A string that is not valid Base64, or that does not decode as UTF-8 text, shows an error instead of garbled output. This is not encryption.

Frequently asked questions

Is Base64 a password hash?

No. Anyone can decode it. Do not use it to hide a secret.

Why did decode fail?

The input may be missing characters, may include a data: prefix, or may be binary that is not UTF-8 text.