Free Online ToolsMFXGJ

Base64 Encoder

Base64 turns binary or non-ASCII text into plain ASCII that is safe to embed in JSON, URLs, emails and data URIs. This encoder handles Unicode correctly by encoding the text as UTF-8 first.

How to use the Base64 Encoder

  1. Type or paste your text.
  2. Select “Encode”.
  3. Copy the Base64 output.

Formula and method

The text is encoded to UTF-8 bytes; every 3 bytes become 4 Base64 characters from the alphabet A–Z, a–z, 0–9, + and /, with = padding to a multiple of 4.

Example

“Hello, world!” encodes to SGVsbG8sIHdvcmxkIQ==. Use the “Load example” button above to try it with the sample inputs.

Frequently asked questions

Is Base64 encryption?

No. Base64 is a reversible encoding anyone can decode instantly. Never use it to protect passwords or secrets.

Why is the output longer?

Base64 expands data by about 33% — 3 bytes become 4 characters.

Related tools