Skip to content
AZ Tools

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text, entirely in your browser, with a URL-safe variant for use in URLs and filenames. Base64 represents arbitrary bytes using 64 safe characters (A–Z, a–z, 0–9, + and /), so binary or non-ASCII data can travel through systems built for plain text — email bodies, JSON fields, data: URIs and HTTP headers. Encoding uses UTF-8, so accented letters, emoji and any Unicode round-trip correctly. Because everything runs locally, you can encode secrets or tokens without sending them anywhere. Note that Base64 is an encoding, not encryption: anyone can decode it, so it guards against corruption in transit, not against being read.

Output

How to use

  1. Choose Encode or Decode.
  2. Type or paste your text into the input.
  3. For encoding, optionally enable URL-safe output.
  4. The result appears instantly below.
  5. Copy the output with the Copy button.

Frequently asked questions

Does it support Unicode and emoji?
Yes. Text is encoded as UTF-8 first, so any character including emoji round-trips correctly.
What is URL-safe Base64?
It replaces + and / with - and _ and drops padding, so the result is safe in URLs and filenames.
Is my text uploaded?
No. Everything is processed locally in your browser.
Why does decoding fail?
The input isn't valid Base64. Check for stray characters or incomplete data.
Is Base64 a form of encryption?
No. Base64 is a reversible encoding with no key — anyone can decode it instantly. It exists to carry binary data safely through text-only channels, not to keep data secret. For confidentiality you need actual encryption.
Why is the encoded output larger than the input?
Base64 represents every 3 bytes as 4 characters, so the output is about 33% larger than the input. That overhead is the price of using only text-safe characters, and it is expected.

Guides on this topic

Related tools