Namso · Random IBAN · Random IMEI · Random MAC · UUID Generator · JSON Formatter · Hex to ASCII · Base64 Decode · Hash Generator · Password Gen · Lorem Ipsum

Base64 Encoder & Decoder

Encode and decode Base64 strings instantly. Client-side, private, no limits.

0 chars
0 chars
100% Client-Side Your Data Stays in Your Browser No Rate Limits No Signup Required

More Base64 Tools

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 printable ASCII characters (A–Z, a–z, 0–9, +, and /). The name comes from the fact that 64 characters can each be represented by exactly 6 bits.

Base64 was introduced to solve a practical problem: many text-based protocols (like email or HTTP headers) could not safely transmit arbitrary binary data. By converting bytes into a subset of printable ASCII, Base64 ensures the data survives transport through any text-safe channel.

Important: Base64 is an encoding, not encryption. Anyone who sees Base64-encoded data can decode it instantly. Never use Base64 as a security measure.

How Base64 Encoding Works

Encoding the word Hello (first 3 bytes: Hel)

Characters H e l
ASCII (dec) 72 101 108
Binary (8-bit) 01001000 01100101 01101100
6-bit groups 010010 000110 010101 101100
Index 18 6 21 44
Base64 chars S G V s
Full result SGVsbG8=

Every 3 bytes of input produce 4 Base64 characters — a ~33% size increase.

Common Use Cases

Email & MIME

MIME encodes email attachments (images, PDFs, binary files) in Base64 so they can travel safely through text-only email servers.

Data URIs

Embed images, fonts, or other assets directly in HTML or CSS using data:image/png;base64,…, eliminating extra HTTP requests.

API Authentication

HTTP Basic Auth encodes username:password in Base64. JWT tokens use Base64URL for their header and payload sections.

Binary Transport

Send binary data (images, PDFs, keys) through JSON APIs or XML documents that only support text characters.

Config Files

Store TLS certificates, private keys, and secrets in YAML or JSON config files (e.g., Kubernetes secrets) as Base64 strings.

Clipboard & Copy/Paste

Share binary data as text — paste a Base64 string into a chat message, issue tracker, or terminal without corrupting binary content.

FAQs