Base64 Encode Text

Encode text as Base64 or decode Base64 back to text (UTF-8).

Input

Output

Words 28Characters 193Without spaces 161Sentences 4Lines 9Paragraphs 2Reading time < 1 min

About Base64 Encode

Base64 turns any text into a string of letters, digits, + and / that can travel safely through email, JSON, HTTP headers and other places that dislike special characters. This encoder reads your text as UTF-8 first, so non-English characters encode correctly.

For values that go into URLs or file names, tick URL-safe alphabet: + and / become - and _, and the trailing = padding is dropped. Your text is encoded inside the browser and is not sent to a server.

How to use it

  1. Paste or type the text you want to encode, or Open a file.
  2. Keep Mode on Encode, and tick URL-safe alphabet if the result goes in a URL.
  3. Copy the Base64 string from the right, or download it as a .txt file.

Frequently asked questions

Is Base64 encryption?

No. Base64 only changes how data is written; anyone can decode it. Do not use it to hide passwords or secrets.

Why is the output longer than my text?

Base64 uses four characters for every three bytes, so the result is about a third larger than the original.

What is the URL-safe alphabet?

A Base64 variant that uses - and _ instead of + and / and drops the = padding, so the string can sit in a URL or file name without escaping.

Related tools