Base64 Encoder

Base64 turns binary or UTF-8 text into ASCII, which is why it appears in data URLs, email attachments and API tokens. Encode or decode locally; nothing leaves the browser.

How to use the Base64 Encoder

  1. Choose encode or decode.
  2. Paste the text or Base64 string.
  3. Copy the result, using URL-safe if needed.

Formula

Every 3 bytes become 4 Base64 characters; “=” pads the final group.

Worked examples

Hello
SGVsbG8=

Frequently asked questions

Is Base64 encryption?

No. It is encoding, reversible by anyone. Never use it to protect secrets.

Why does decoded text look broken?

The input may not be UTF-8, or may be missing padding. Try adding “=” until the length is a multiple of four.

What is URL-safe Base64?

It replaces + and / with - and _, so the string can go in a URL without escaping.