Home / Base64

Base64 Encoder & Decoder

Encode any text — including emoji and international characters — into Base64, or decode Base64 strings back to readable text.

Why Use This Tool?

Base64 turns any data into safe plain-text characters for email attachments, data URIs, API payloads, and config files. This encoder handles full UTF-8 correctly — international characters and emoji that break naive encoders come through perfectly.

Decoding is equally robust: whitespace is stripped automatically, and URL-safe Base64 (with - and _ instead of + and /) is accepted without complaint.

How It Works

  1. Paste text to encode, or a Base64 string to decode.
  2. Click the matching direction button.
  3. Copy the result — UTF-8 round-trips perfectly in both directions.

Frequently Asked Questions

How do I encode text to Base64?

Paste the text and click encode — the Base64 string appears instantly, with full UTF-8 support for accented characters, Chinese, Arabic, and emoji.

Why do other Base64 tools break on emoji?

Many tools use the naive btoa() approach that only handles Latin-1. This one routes through UTF-8 encoding first, so every Unicode character round-trips exactly.

What is URL-safe Base64?

A variant using - and _ instead of + and / so it can sit in URLs. The decoder accepts both forms automatically; encode output uses the standard alphabet.

Tips & Things to Watch

  • Base64 makes data ~33% larger — that's the cost of text-safety.
  • Padding '=' at the end is normal and part of the string.
  • Base64 is encoding, not encryption — anyone can decode it.