The short version
- RFC 3548, published in July 2003, attacked a deceptively small interoperability problem: protocols kept saying “Base64” without specifying the alphabet, line breaks, padding, or decoder tolerance they meant.
- Its lesson is blunt: MIME’s mail-transfer behavior is one profile, not a universal decoder contract. A protocol should name the profile it uses.
A Base64 string looks like a solved problem. Paste it into an editor, and it turns into printable characters; feed it to a decoder, and the bytes come back. The convenience is so complete that the format feels self-explanatory. RFC 3548 exists because it was not. By 2003, implementations had accumulated small, consequential differences, while protocol documents kept invoking “Base64” as if the name settled the argument.
The mismatch was never about six-bit arithmetic. It was about the envelope around it. Should an encoder insert line breaks? Must the final = padding be present? Does a decoder reject a stray character or politely ignore it? Which 64 symbols occupy the alphabet? A system that answers those questions by borrowing a nearby format may work beautifully inside that format—and still disagree with a peer expecting something else.
The label was doing too much work
RFC 3548, an Informational RFC published in July 2003, set out to reduce that ambiguity. Its introduction names the recurring shortcut: protocol documents used “Base64” without a precise description or reference, often treating MIME as the default without thinking through line wrapping or non-alphabet characters. The document therefore collected common Base16, Base32 and Base64 schemes and made the surrounding choices visible.
MIME was an important source of confusion precisely because it was specific. RFC 2045 defines Base64 as a Content-Transfer-Encoding for message bodies. Its 76-character line limit belongs to that mail context; PEM had used 64-character lines, also in a mail-era setting. RFC 3548’s rule for a generic referring specification was not to add line feeds unless that specification asks for them. A line break is not decoration when another parser might count it as data or reject it.
Padding, tolerance and the alphabet
Padding and tolerance were profile decisions too. RFC 3548 says encoders include appropriate padding unless the referring specification says otherwise. Decoders reject characters outside the alphabet unless a referring specification explicitly chooses another policy. MIME may ignore such characters, including CRLF, but that exception belongs to its defined behavior. Copying it into a different protocol changes what inputs are accepted. The RFC discusses covert channels and implementation errors as reasons for care; it does not report a particular attack caused by a named implementation.
The alphabet itself also needed a name. The conventional Base64 alphabet uses + and / for values 62 and 63. RFC 3548 documents a URL- and filename-safe alternative using and _. It says this is not the same encoding and should not be called only “Base64.” That distinction matters because a string moved into a path, filename or identifier field meets rules that a mail body does not.
RFC 4648 and the zero-pad-bit sequel
In October 2006, RFC 4648 obsoleted RFC 3548 as a Standards Track document. It kept the profile-centered approach and added a canonical-encoding section: pad bits in Base64 and Base32 output must be zero, or multiple strings can decode to the same bytes. That successor point is a separate issue from MIME line wrapping. Together, the two RFCs show why “decode succeeds” is not a complete protocol specification: sender and receiver still need agreement about spelling, padding, tolerance and the layer at which a value is interpreted.
Why the profile still matters
Base encoding is not encryption and does not authenticate a message. Its value is a transport-friendly representation of octets. The historical work of RFC 3548 was more modest and more durable: it made protocols stop treating a familiar label as a complete set of rules. A decoder can be generous or strict, but the protocol should say which—and mean it.
Sources
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






