Developer

Base64 Encoder/Decoder

Articles, guides, and in-depth tips for the Base64 Encoder/Decoder — everything you need to get the most out of it.

✦ 8 Articles ✦ Updated Weekly ✦ Free to Read
✦ AI

✦ AI-powered — understands natural language

Developer Aug 21, 2026 Latest ✦

Base32, Base58, Base85: When Base64 Is the Wrong Encoding

Base64 isn't the only binary-to-text encoding, and it isn't always the best one. Here's what Base32, Base58, Base85 and Base62 solve that Base64 doesn't.

Read article
Developer Jun 30, 2026

JWT Uses Base64url but Basic Auth Uses Standard Base64 — Why the Encoding Choice Matters in Security Contexts

JWTs use Base64url (not standard Base64) because they appear in URLs and HTTP headers where + and / would break things. HTTP Basic Auth uses standard Base64 (not Base64url) because it's an opaque header value. Here's the three security contexts for Base64 encoding (JWT, Basic Auth, CSP nonces/hashes), why JWT payloads are encoded not encrypted (anyone with the token can read the claims), and how to detect standard Base64 vs Base64url from the encoded string.

Developer Jun 23, 2026

Base64 Makes Data 33% Larger — Here's the Exact Math and When That Overhead Actually Matters

Base64 makes data 33% larger — exactly, not approximately, because encoding 6 bits per character while binary uses 8 bits per byte produces a 4/3 size ratio as a direct mathematical consequence. Here's why that overhead is negligible for tokens and small images but significant for large file APIs, the common JSON-Base64-embedded-file pattern and its alternatives, and what validation steps most Base64 decoding code skips for untrusted input.

Developer Jun 13, 2026

Base64 vs Base64url: Why `+`, `/`, and `=` Break URLs, and Why JWTs Use a Different Alphabet

Standard Base64's `+`, `/`, and `=` characters all have special meaning in URLs — which is why a Base64-encoded JWT pasted directly into a URL can silently corrupt, and why Base64url exists as a separate, URL-safe alphabet. Here's exactly which characters differ, why JWTs require Base64url specifically, how padding works and why Base64url commonly omits it, and how to tell the two variants apart.

Developer Jun 11, 2026

How Email Attachments Work: MIME Encoding, Base64, and Why Binary Files Need Encoding

Email attachments work because MIME uses Base64 to encode binary files as ASCII text — a system designed in 1992 when email could only carry 7-bit ASCII. Here's how MIME multipart email works, why binary needs encoding, the 33% Base64 overhead on attachment sizes, and how the same system handles HTML form file uploads.

Developer Jun 9, 2026

Data URLs and Base64: When to Embed Resources Inline vs Link to Them

Data URLs embed files directly in HTML and CSS as Base64 strings — no separate HTTP request. Here's when that's faster, when it makes things worse, how JWT tokens use Base64URL, and how inline images in emails work around image blocking.

Developer Jun 7, 2026

Base64 Encoder/Decoder — What It Is, When to Use It & Why It's Not Encryption

Learn how Base64 encoding works, why it's used in JWTs, Basic Auth, data URIs, and email attachments, why it's not encryption, and how to use a free Base64 encoder/decoder for any data.

Developer Jun 6, 2026

Base64 Encoder/Decoder — How It Works & Real Developer Uses

Learn what Base64 encoding is, how it works, why it's used in JWTs, HTTP headers, data URIs, and email attachments — and how to encode or decode any string instantly with a free tool.