🔐

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 strings — instantly, privately.

100% in-browser — no data sent anywhere
URL-safe charset
76-char line wrap
Plain Text Input
0 chars
Base64 Output
0 chars

What is Base64?

Base64 is an encoding scheme that converts binary data into a sequence of printable ASCII characters. It uses a set of 64 characters — A–Z, a–z, 0–9, plus + and / (or - and _ in the URL-safe variant) — to represent any data safely across systems that only handle text.

The name comes from the fact that every 3 bytes of input become exactly 4 Base64 characters, and output is padded with = signs to make the length a multiple of 4. It is not encryption — it is purely an encoding format and can be decoded by anyone instantly.

URL-safe Base64 replaces + with - and / with _, making it safe to include in URLs and filenames without percent-encoding.

Common uses of Base64

🌐
Web APIs & Auth
HTTP Basic Auth headers, JWT tokens, and OAuth secrets are Base64-encoded.
☁️
Azure & AWS
Cloud init scripts, Key Vault secrets, and ARM template parameters are often Base64-encoded.
🖼️
Inline Images
Images embedded in HTML, CSS, or JSON payloads use Base64 data URIs.
📧
Email Attachments
The MIME standard uses Base64 to encode attachments in plain-text email protocols.
🔑
SSH & TLS Keys
Public/private keys and certificates (PEM format) are Base64-encoded binary data.
📦
Config & Secrets
Kubernetes secrets, Docker configs, and .env files frequently use Base64 values.