Media type
An Internet media type,[1] originally called a MIME type after MIME (Multipurpose Internet Mail Extensions) and sometimes a Content-type after the name of a header in several protocols whose value is such a type, is a two-part identifier for file formats on the Internet. The identifiers were originally defined in RFC 2046 for use in e-mail sent through SMTP, but their use has expanded to other protocols such as HTTP, RTP and SIP.
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
type have an optional charset
parameter that can be included to indicate the character encoding,
and subtypes of multipart
type often define a boundary
between parts.
Types or subtypes that begin with x-
are nonstandard[2] (they are not registered with IANA). Subtypes that begin with vnd.
are vendor-specific; subtypes in the personal or vanity tree begin with prs.
.[3]
MIME is short for Multipurpose Internet Mail Extensions, a specification for formatting non-ASCII messages so that they can be sent over the Internet. Many e-mail clients now support MIME, which enables them to send and receive graphics, audio, and video files via the Internet mail system.
There are many predefined MIME types, such as GIF graphics files and PostScript files. It is also possible to define your own MIME types.
In addition to e-mail applications, Web browsers also support various MIME types. This enables the browser to display or output files that are not in HTML format.
MIME was defined in 1992 by the Internet Engineering Task Force (IETF). A new version, called S/MIME, supports encrypted messages.
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 used on the Web are listed below:
- Type
application
: Multipurpose filesapplication/EDI-X12
: EDI X12 data; Defined in RFC 1767application/EDIFACT
: EDI EDIFACT data; Defined in RFC 1767application/json
: JavaScript Object Notation JSON; Defined in RFC 4627application/javascript
: JavaScript; Defined in RFC 4329 but not accepted in IE 8 or earlierapplication/octet-stream
: Arbitrary binary data[4]. Generally speaking this type identifies files that are not associated with a specific application. Contrary to past assumptions by software packages such as Apache this is not a type that should be applied to unknown files. In such a case, a server or application should not indicate a content type, as it may be incorrect, but rather, should omit the type in order to allow the recipient to guess the type.[5]application/ogg
: Ogg, a multimedia bitstream container format; Defined in RFC 5334application/pdf
: Portable Document Format, PDF has been in use for document exchange on the Internet since 1993; Defined in RFC 3778application/soap+xml
: SOAP; Defined by RFC 3902application/xhtml+xml
: XHTML; Defined by RFC 3236application/xml-dtd
: DTD files; Defined by RFC 3023application/zip
: ZIP archive files; Registered[6]
- Type
audio
: Audioaudio/basic
: mulaw audio at 8 kHz, 1 channel; Defined in RFC 2046audio/mp4
: MP4 audioaudio/mpeg
: MP3 or other MPEG audio; Defined in RFC 3003audio/ogg
: Ogg Vorbis, Speex, Flac and other audio; Defined in RFC 5334audio/vorbis
: Vorbis encoded audio; Defined in RFC 5215audio/x-ms-wma
: Windows Media Audio; Documented in Microsoft KB 288102audio/x-ms-wax
: Windows Media Audio Redirector; Documented in Microsoft help pageaudio/vnd.rn-realaudio
: RealAudio; Documented in RealPlayer Customer Support Answer 2559audio/vnd.wave
: WAV audio; Defined in RFC 2361
- Type
image
image/gif
: GIF image; Defined in RFC 2045 and RFC 2046image/jpeg
: JPEG JFIF image; Defined in RFC 2045 and RFC 2046image/png
: Portable Network Graphics; Registered[7], Defined in RFC 2083image/svg+xml
: SVG vector image; Defined in SVG Tiny 1.2 Specification Appendix Mimage/tiff
: Tag Image File Format; Defined in RFC 3302image/vnd.microsoft.icon
: ICO image; Registered[8]
- Type
message
message/http
- Type
model
: 3D models - Type
multipart
: Archives and other objects made of more than one partmultipart/mixed
: MIME E-mail; Defined in RFC 2045 and RFC 2046multipart/alternative
: MIME E-mail; Defined in RFC 2045 and RFC 2046multipart/related
: MIME E-mail; Defined in RFC 2387 and used by MHTML (HTML mail)multipart/form-data
: MIME Webform; Defined in RFC 2388multipart/signed
: Defined in RFC 1847multipart/encrypted
: Defined in RFC 1847
- Type
text
: Human-readable text and source codetext/css
: Cascading Style Sheets; Defined in RFC 2318text/csv
: Comma-separated values; Defined in RFC 4180text/html
: HTML; Defined in RFC 2854text/javascript
(Obsolete): JavaScript; Defined in and obsoleted by RFC 4329 in order to discourage its usage in favor ofapplication/javascript
. However,text/javascript
is allowed in HTML 4 and 5 and, unlikeapplication/javascript
, has cross-browser supporttext/plain
: Textual data; Defined in RFC 2046 and RFC 3676text/xml
: Extensible Markup Language; Defined in RFC 3023
- Type
video
: Videovideo/mpeg
: MPEG-1 video with multiplexed audio; Defined in RFC 2045 and RFC 2046video/mp4
: MP4 video; Defined in RFC 4337video/ogg
: Ogg Theora or other video (with audio); Defined in RFC 5334video/quicktime
: QuickTime video; Registered[9]video/x-ms-wmv
: Windows Media Video; Documented in Microsoft KB 288102
- Type
vnd
: Vendor Specific Filesapplication/vnd.oasis.opendocument.text
: OpenDocument Text; Registered [10]application/vnd.oasis.opendocument.spreadsheet
: OpenDocument Spreadsheet; Registered [11]application/vnd.oasis.opendocument.presentation
: OpenDocument Presentation; Registered [12]application/vnd.oasis.opendocument.graphics
: OpenDocument Graphics; Registered [13]application/vnd.ms-excel
: Microsoft Excel filesapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
: Microsoft Excel 2007 files.application/vnd.ms-powerpoint
: Microsoft Powerpoint filesapplication/msword
: Microsoft Word filesapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
: Microsoft Word 2007 filesapplication/vnd.mozilla.xul+xml
: Mozilla XUL files
- Type
x
: Non-standard filesapplication/x-www-form-urlencoded
Form Encoded Data; Documented in HTML 4.01 Specification, Section 17.13.4.1application/x-dvi
: Digital Video files in DVI formatapplication/x-latex
: LaTeX filesapplication/x-shockwave-flash
: Adobe Flash files for example with the extension .swf; Documented in Adobe TechNote tn_4151 and Adobe TechNote tn_16509application/x-stuffit
: StuffIt archive filesapplication/x-rar-compressed
: RAR archive filesapplication/x-tar
: Tarball files
- Type
x-pkcs
: PKCS standard filesapplication/x-pkcs12
: p12 filesapplication/x-pkcs12
: pfx filesapplication/x-pkcs7-certificates
: p7b filesapplication/x-pkcs7-certificates
: spc filesapplication/x-pkcs7-certreqresp
: p7r filesapplication/x-pkcs7-mime
: p7c filesapplication/x-pkcs7-mime
: p7m filesapplication/x-pkcs7-signature
: p7s files
See also
References
- ^ "Internet Media Type registration, consistency of use". W3C. 2002-06-03. Retrieved 2006-11-29.
- ^ Freed, N. and Borenstein, N. (1996). "RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies". IETF. Retrieved 2006-11-29.
{{cite web}}
: Unknown parameter|month=
ignored (help)CS1 maint: multiple names: authors list (link) - ^ Freed, N.; Klensin, J. (2005). "RFC 4288 - Media Type Specifications and Registration Procedures". IETF. Retrieved 2008-06-14.
{{cite web}}
: Unknown parameter|month=
ignored (help)CS1 maint: multiple names: authors list (link) - ^ http://tools.ietf.org/html/rfc2046
- ^ http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7.2.1
- ^ http://www.iana.org/assignments/media-types/application/zip
- ^ http://www.iana.org/assignments/media-types/image/png
- ^ http://www.iana.org/assignments/media-types/image/vnd.microsoft.icon
- ^ http://www.iana.org/assignments/media-types/video/quicktime
- ^ http://www.iana.org/assignments/media-types/application/vnd.oasis.opendocument.text
- ^ http://www.iana.org/assignments/media-types/application/vnd.oasis.opendocument.spreadsheet
- ^ http://www.iana.org/assignments/media-types/application/vnd.oasis.opendocument.presentation
- ^ http://www.iana.org/assignments/media-types/application/vnd.oasis.opendocument.graphics
External links
- IANA MIME media types list
- RFC 2045, RFC 2046 - Multipurpose Internet Mail Extensions (MIME), parts 1 and 2