Base64 Encoder / Decoder

Encode text as Base64 or decode Base64 back into text. Text is converted using UTF-8, so non-English characters work correctly.

How to use it

  1. Paste text to encode, or Base64 to decode.
  2. Choose Encode or Decode. Tick "URL-safe" if the Base64 uses - and _ instead of + and /.
  3. Copy the result.

Limitations

Frequently asked questions

Why does normal btoa() fail on Urdu text?

btoa() only accepts Latin-1 characters. This tool converts text to UTF-8 bytes first.

What is URL-safe Base64?

A variant that uses - and _ instead of + and /, and often drops the = padding, so it fits inside URLs.

Is Base64 secure?

No. It only changes the format of the data. Never use it to hide passwords.

Related tools