Protocols
Saved & recent

MIME

Also called: Multipurpose Internet Mail Extensions, MIME message format

Multipurpose Internet Mail Extensions describe how a message body can contain different media types, character sets, and encoded data. MIME is a family of message-format rules, rather than a delivery protocol. Content-Type identifies what a part contains; Content-Transfer-Encoding describes how its bytes were represented for transport.

For example, an email can contain a text part and a photo attachment inside a multipart body. Each part carries its own descriptive headers, and the photo may use base64 encoding. The receiving application decodes those bytes before displaying the image. Base64 changes representation; it does not encrypt the attachment or authenticate its sender.

Related
SMTP, Serialization, HTTP headers
Further reading
RFC 2045 — Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
multipart email Content-Type: text/plain Text part contents boundary Content-Type: image/jpeg Transfer encoding: base64 Encoded attachment base64 characters decode JPEG bytes media type and transfer encoding
A MIME multipart body separates parts with boundaries and gives each part descriptive headers. The illustrated image part uses base64 transfer encoding; decoding recovers image bytes. MIME is a message format, and base64 supplies no confidentiality.

View in the full Protocols collection