Base64 Encode / Decode

Encode text to Base64 or decode Base64 to text with full UTF-8 support and URL-safe Base64. Free online Base64 converter; your data never leaves the browser.

About this tool

Encode text to Base64 or decode Base64 back to text. Text is converted as UTF-8, so Korean, emoji and other non-ASCII characters round-trip correctly.

How to use

  1. Select Encode or Decode.
  2. Paste your text or Base64 string.
  3. For encoding, enable URL-safe if the result goes into a URL or JWT; then copy the output.

Frequently asked questions

What is URL-safe Base64?

It replaces + with - and / with _ and drops the = padding, so the value can be used in URLs and file names. The decoder accepts both forms.

Why does decoding fail?

The input contains characters outside the Base64 alphabet, has an impossible length, or decodes to bytes that are not valid UTF-8 text.

Is Base64 encryption?

No. Base64 is an encoding that anyone can reverse. Do not use it to protect secrets.

Related tools