Files never leave your device

Base64 Encoder / Decoder

Encode and decode Base64 strings. Handles UTF-8, including emoji and non-Latin scripts.

How to use Base64 Encoder

  1. Choose the Encode or Decode tab.
  2. Paste your text into the input area.
  3. The result appears instantly in the output box.
  4. Use the copy button to grab the result.

Why Base64 exists

Base64 encodes binary data into 64 printable ASCII characters so it can travel through systems that only accept text — JSON payloads, email bodies, XML attributes, and URLs. The encoded representation is about 33% larger than the original, but it's the price of safe transport.

Common use cases

  • Embedding small images in CSS or HTML as data URIs
  • Encoding binary data inside JSON payloads
  • Storing API keys, secrets, and credentials in environment files
  • Creating Basic Auth headers (username:password Base64-encoded)
  • JWT segments (which use the URL-safe variant)

Frequently asked questions