“Base64” is a family of encodings. They all share the same 3-bytes-to-4-characters algorithm but differ in the last two alphabet characters, padding, line wrapping and extra framing.
| Standard | Chars 62/63 | Padding | Line length | Used in |
|---|---|---|---|---|
| Standard (RFC 4648 §4) | + / |
required | none | APIs, JSON, data URIs |
| MIME (RFC 2045) | + / |
required | max. 76 | E-mail attachments |
| PEM (RFC 7468) | + / |
required | exactly 64 | Certificates, keys |
| Base64URL (RFC 4648 §5) | - _ |
optional | none | URLs, JWT, file names |
| IMAP (RFC 3501) | + , |
none | none | Mailbox names in modified UTF-7 |
| XML name token / identifier | . - / _ : |
none | none | XML NMTOKEN and Name values |
| OpenPGP armor (RFC 4880) | + / |
required | max. 76 | PGP messages, with CRC-24 checksum |
Not sure which one you have? Use the standard detector, then convert between them with normalization.
Comments (0)
Questions, ideas or a bug in “Base64 standards”? Leave a comment, rate the tool, or reply to others.
No comments yet. Be the first to share your feedback!