Base64 Encoder

Encode text to Base64 instantly with full UTF-8 support for accents and emoji. Optional URL-safe Base64url output. Free, private and runs in your browser.

Runs locally in your browser. Nothing you enter is uploaded.

How to encode text to Base64

  1. Type or paste your text into the left box.
  2. The Base64 result appears instantly on the right.
  3. Turn on URL-safe if the result will go into a URL, filename or token.
  4. Copy or download the encoded text.

Example

Hello, Figtray! encodes to SGVsbG8sIEZpZ3RyYXkh.

Common uses

To turn Base64 back into text, use the Base64 Decoder.

Frequently asked questions

Is Base64 encryption?

No. Base64 is an encoding, not encryption — anyone can decode it. Never use it to protect passwords or secrets.

What is URL-safe Base64?

Base64url (RFC 4648 §5) replaces + with - and / with _ and drops the = padding, so the result can be used in URLs, filenames and JWTs without escaping.

Why is the Base64 output longer than my text?

Base64 represents every 3 bytes with 4 characters, so encoded data is about 33% larger than the original.

Does it handle non-English characters?

Yes. Text is encoded as UTF-8 first, so accents, non-Latin scripts and emoji round-trip correctly.

More Developer tools →