Workspace
Mode
Charset
Base64 output appears here

Quick reference

Standard Base64

Uses A–Z, a–z, 0–9, +, /, = (padding). RFC 4648 §4.

URL-safe Base64

Replaces + → -, / → _, omits = padding. RFC 4648 §5. Safe in URLs and filenames.

Encoding ratio

Base64 output is ~33% larger than the input (every 3 bytes → 4 chars).

UTF-8 support

This tool handles full Unicode — emoji, accented letters, CJK characters all encode correctly.

Letters to Numbers Logo

Letters to Numbers

Trusted Conversion Tools

Base64 Encoder and Decoder

Our free Base64 Encoder and Decoder converts any text to Base64 format or decodes Base64 strings back to readable text — instantly, in your browser, with no uploads. It supports both standard Base64 (RFC 4648 §4, using +/= characters) and URL-safe Base64 (RFC 4648 §5, using -_ with no padding), handles full UTF-8 including emoji and Unicode, and shows input/output character counts with the encoding ratio. A built-in reference explains the difference between the two variants and when to use each.

Who Is It For?

Developers & Engineers

Encoding API keys, tokens, binary payloads, and credentials for use in HTTP headers, JSON configs, or environment variables.

Security Analysts

Decoding Base64-encoded payloads found in malware samples, phishing emails, SAML assertions, or JWT tokens during security analysis.

Web Developers

Encoding images or fonts as Base64 data URIs for embedding directly in HTML/CSS, or decoding Base64 strings from API responses.

DevOps & SREs

Decoding Kubernetes secrets (which are Base64-encoded), Docker credentials, or TLS certificate data stored in base64 format.

Students & Learners

Understanding how Base64 encoding works as a fundamental part of learning about data encoding, email protocols (MIME), and web security.

How It Works

Select a mode (Encode or Decode) and a charset (Standard or URL-safe). In Encode mode, type or paste any text — the tool converts it to UTF-8 bytes first, then produces the Base64 string instantly. In Decode mode, paste a Base64 string and the tool reverses the process, decoding the bytes back to readable UTF-8 text. Switch to URL-safe mode when your Base64 output will appear in a URL or filename — it replaces + with -, / with _, and omits = padding.

Features

  • Encode any text to Standard Base64 (RFC 4648 §4)
  • Encode to URL-safe Base64 (RFC 4648 §5) with - and _ instead of + and /
  • Decode Standard and URL-safe Base64 back to text
  • Full UTF-8 support — handles emoji, accented letters, CJK, and all Unicode
  • Shows input/output character counts and encoding size ratio
  • Swap button to instantly flip encode ↔ decode with current output
  • Clear error messages for invalid Base64 input
  • 100% browser-based — no data leaves your device

Your Privacy Matters

All processing happens in your browser. We never store, send, or log your data. Completely private and secure.