Base64 Encoder / Decoder

Encode any text to Base64 or decode a Base64 string back to plain text — supports standard and URL-safe alphabets with full Unicode handling.

Encode

text → Base64
Alphabet

Decode

Base64 → text
Copied!

Summary

Encode any text to Base64 or decode a Base64 string back to plain text — supports standard and URL-safe alphabets with full Unicode handling.

How it works

  1. Select the Encode or Decode tab.
  2. Paste your text or Base64 string into the input field.
  3. Choose Standard or URL-safe alphabet.
  4. The output updates instantly.
  5. Click Copy to copy the result to your clipboard.
  6. The output character count is displayed below the result.

Use cases

  • Encode binary data for embedding in JSON or XML payloads.
  • Decode Base64-encoded JWT payloads to inspect their claims.
  • Prepare Base64 strings for HTTP Basic Auth headers (user:pass).
  • Convert URL-safe Base64 tokens used in OAuth and PKCE flows.
  • Encode Unicode text (emoji, CJK characters) for safe transport.
  • Quickly verify that a Base64 string is valid before using it in code.
  • Generate data URIs for embedding small assets in HTML or CSS.
  • Inspect Base64-encoded cookies or session tokens.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu