Visual RFC.
ALL RFCs / RFC 2045
Read the RFC ↗
RFC 2045 / MECHANISM GUIDE

Base64 body encoding

04

Base64 converts body octets into a restricted alphabet suitable for mail transport.

RFC 2045 · § 6.8EXAMPLE
3 / 3
03
Wrap for MIME transport

Use the MIME line-length rules, distinct from generic no-wrap Base64 profiles.

Base64 body encodingBase64 converts body octets into a restricted alphabet suitable for mail transport.Base64 body encodingTWFuBase64: TWFuMIME wraps encoded lines at at most 76 characters

Key idea: Three bytes become four encoded characters.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Three bytes become four encoded characters.
  • MIME encoded lines must not exceed 76 characters.
  • Base64 adds no confidentiality or authenticity.

Examples are illustrative. Consult the linked RFC and its errata for implementation details.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

The envelope and the letter do different jobs.

Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 2045

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗