Skip to main content
AltF Calculators

Base64 Encode / Decode

  • 100% private — nothing is uploaded
  • Instant, live results as you type
  • Free forever, no sign-up needed
  • Works even when you're offline

About Base64 Encode / Decode

Base64 encoding represents arbitrary text or binary data using only 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It is how binary content is safely carried through systems that expect text, such as email, JSON, data URLs and HTTP headers.

This tool encodes text to Base64 and decodes Base64 back to text, handling full Unicode correctly by encoding through UTF-8 first.

How to use the Base64 Encode / Decode

  1. Choose Encode or Decode.
  2. Paste your text or Base64 string into the box.
  3. Read the converted output below, updated live.
  4. Copy the result with the copy button.

Good to know

  • Base64 grows data by about 33%: every 3 bytes become 4 characters, and output length is padded with = to a multiple of four.
  • Encoding is not encryption — Base64 is trivially reversible and provides no security, only safe transport.
  • This tool is UTF-8 aware, so accented letters, emoji and other non-ASCII characters round-trip correctly.

Frequently asked questions about the Base64 Encode / Decode

Is Base64 a form of encryption?

No. It is an encoding, fully reversible by anyone. It hides nothing and adds no security — use it for safe transport of data, never to protect secrets.

Why is the encoded text longer than the original?

Base64 uses 4 output characters for every 3 input bytes, a roughly 33% size increase, plus '=' padding to align to a multiple of four characters.

Why does decoding sometimes fail?

The input must be valid Base64: correct alphabet, correct length and padding. Extra spaces, line breaks in the wrong place, or URL-safe characters (- and _) can cause errors.