Base64 Encoder

Encode text to Base64.

Reset

About the Base64 Encoder

Base64 encodes binary or text into an ASCII string using A–Z, a–z, 0–9, +, /, and = padding. It is common in data URLs, basic auth headers, email attachments (MIME), and API payloads that must travel through text-only channels.

How to use

  1. Paste the text you want to encode.
  2. Generate the Base64 output.
  3. Copy it into the header, JSON field, or data URL.
  4. Decode on the other side with a Base64 decoder when you need the original value.

Important: encoding ≠ encryption

Base64 is reversible by design. Anyone can decode it. Do not treat Base64 as a way to hide passwords or private keys.

Typical use cases

  • Embedding small images as data:image/...;base64,...
  • Moving tokens through systems that break raw binary
  • Debugging auth headers that use Base64

FAQ

Why does the string get longer? Base64 expands size by roughly one third because it represents bytes with a less dense alphabet.

What about URL-safe Base64? Some systems replace +// and drop padding. Confirm which variant your API expects.