Internet media type

An Internet media type[1] is a two-part identifier for file formats on the Internet. The identifiers were originally defined in RFC 2046 for use in email sent through SMTP, but their use has expanded to other protocols such as HTTP, RTP and SIP. These types were originally called MIME types, after MIME (Multipurpose Internet Mail Extensions), and are sometimes referred to as Content-types, after the name of a header in several protocols whose value is such a type.

A media type is composed of at least two parts: a type, a subtype, and one or more optional parameters. For example, subtypes of text have an optional charset parameter that can be included to indicate the character encoding (E.g.: text/html; charset=UTF-8), and subtypes of multipart type often define a boundary between parts. Allowed charset values are defined in the list of IANA character sets.

Types or subtypes that begin with x- are non-standard[2] (they are not registered with IANA). Subtypes that begin with vnd. are vendor-specific;[3] subtypes in the personal or vanity tree begin with prs.[4]. New media types can be created with the procedures outlined in RFC 4288.

The original name MIME type referred to the fact that the these types were used to identify non-ASCII parts of email messages composed using the MIME (Multipurpose Internet Mail Extensions) specification. Without MIME types, email clients would not be able to understand if an attachment files was a PNG file or a spreadsheet and would not be able to show them in the appropriate way.

In addition to email clients, web browsers also support various media types. This enables the browser to display or output files that are not in HTML format. Media type specification is also an important information for search engines for the classification of data files on the web.

There are many registered media types, such as GIF graphics files and PostScript files. It is also possible to define custom media types.

List of common media types

IANA manages a registry of media types and character encodings. The organization makes a list available to the public through the Web. Some of the more notable media types are listed below:

Type application

For Multipurpose files:

Type audio

For Audio.

Type image

Type message

Type model

For 3D models.

Type multipart

For archives and other objects made of more than one part.

Type text

For human-readable text and source code.

Type video

For video.

List of common media subtype prefixes

Prefix vnd

For vendor-specific files.

Prefix x

For non-standard files.

Prefix x-pkcs

For PKCS standard files.

See also

References

External links