Media (MIME) types

Media types, or MIME types, describe document types. They provide a more precise way of expressing the type of a given piece of content over a file extension.

Format

A MIME type is comprised of a type, which defines the broad category within which the subtype falls, followed by a subtype. Optionally, parameters can be appended to the MIME type for additional precision.

type/subtype[; parameter1=value[; parameter2=value]]

Types

Types are divided into two categories:

  • Discrete types are transferred in their entirety.
  • Multipart types are broken into partial fragments.

Discrete types

  • application:
    • octet-stream
    • pdf
    • zip
  • audio:
    • mpeg
    • vorbis
  • example (placeholder):
  • font:
    • otf
    • ttf
    • woff
  • image:
    • jpeg
    • png
    • svg+xml
  • model:
    • 3mf
    • vml
  • text:
    • csv
    • plain
    • html
  • video:
    • mp4

Multipart types

  • message:
    • rfc822
    • partial
  • multipart:
    • byteranges
    • form-data

Parameters

Common parameters in the wild:

  • charset specifies a document's character set (encoding):
    • UTF-8
    • US-ASCII

Backlinks