Developer Reference

Base64 Cheat Sheet — Developer Quick Reference

Quick developer reference for Base64: RFC 4648 alphabet index table, Standard vs URL-safe variants, padding rules, and common Data URI prefixes.

Base64 Index Table (RFC 4648)

0–25: A–Z
26–51: a–z
52–61: 0–9
62 & 63: + and / (Std)

Standard vs URL-Safe Variant

FeatureStandard Base64URL-Safe (Base64URL)
Index 62+- (hyphen)
Index 63/_ (underscore)
Padding (=)Required for length % 4 == 0Omitted / Optional

Common Data URI Prefixes

PNG Image: data:image/png;base64,iVBORw0KGgo...

JPEG Image: data:image/jpeg;base64,/9j/4AAQSkZJRg...

SVG Vector: data:image/svg+xml;base64,PHN2ZyB4bWxucz...

PDF Document: data:application/pdf;base64,JVBERi0xLjUN...

Try Online Tools

Need to decode or encode strings, files, or images? Use our suite of 100% client-side tools: