Base64 Encoder/Decoder
Articles, guides, and in-depth tips for the Base64 Encoder/Decoder — everything you need to get the most out of it.
✦ AI-powered — understands natural language
JWT Uses Base64url but Basic Auth Uses Standard Base64 — Why the Encoding Choice Matters in Security Contexts
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.
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.
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.
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.
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.
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.