- Internet 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 email 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
have an optionalcharset
parameter that can be included to indicate the character encoding (E.g.:text/html; charset=UTF-8
), and subtypes ofmultipart
type often define aboundary
between parts. Allowedcharset
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 withvnd.
are vendor-specific; subtypes in the personal or vanity tree begin withprs.
.[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 email 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 media types, such as GIF graphics files and PostScript files. It is also possible to define custom media types.
In addition to email applications, 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.
MIME was defined in 1992 by the Internet Engineering Task Force (IETF). A new version, called S/MIME, supports encrypted messages.
Contents
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
For Multipurpose files.
application/atom+xml
: Atom feedsapplication/ecmascript
: ECMAScript/JavaScript; Defined in RFC 4329 (equivalent toapplication/javascript
but with stricter processing rules)application/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
: ECMAScript/JavaScript; Defined in RFC 4329 (equivalent toapplication/ecmascript
but with looser processing rules) It is not accepted in IE 8 or earlier -text/javascript
is accepted but it is defined as obsolete in RFC 4329. The "type" attribute of the<script>
tag in HTML5 is optional and in practice omitting the media type of JavaScript programs is the most interoperable solution since all browsers have always assumed the correct default even before HTML5.application/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/postscript
: PostScript; Defined in RFC 2046application/rss+xml
: RSS feedsapplication/soap+xml
: SOAP; Defined by RFC 3902application/font-woff
: Web Open Font Format; (candidate recommendation; useapplication/x-font-woff
until standard is official)application/xhtml+xml
: XHTML; Defined by RFC 3236application/xml-dtd
: DTD files; Defined by RFC 3023application/xop+xml
:XOPapplication/zip
: ZIP archive files; Registered[6]application/x-gzip
: Gzip
Type
audio
For Audio.
audio/basic
: mulaw audio at 8 kHz, 1 channel; Defined in RFC 2046audio/L24
: 24bit Linear PCM audio at 8-48kHz, 1-N channels; Defined in RFC 3190audio/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 2361audio/webm
: WebM open media format
Type
image
image/gif
: GIF image; Defined in RFC 2045 and RFC 2046image/jpeg
: JPEG JFIF image; Defined in RFC 2045 and RFC 2046image/pjpeg
: JPEG JFIF image; Associated with Internet Explorer; Listed in ms775147(v=vs.85) - Progressive JPEG, initiated before global browser support for progressive JPEGs (Microsoft and Firefox).image/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 (only for Baseline TIFF); Defined in RFC 3302image/vnd.microsoft.icon
: ICO image; Registered[8]
Type
message
message/http
: Defined in RFC 2616message/imdn+xml
: IMDN Instant Message Disposition Notification; Defined in RFC 5438message/partial
: Email; Defined in RFC 2045 and RFC 2046message/rfc822
: Email; EML files, MIME files, MHT files, MHTML files; Defined in RFC 2045 and RFC 2046
Type
model
For 3D models.
model/example
: Defined in RFC 4735model/iges
: IGS files, IGES files; Defined in RFC 2077model/mesh
: MSH files, MESH files; Defined in RFC 2077, SILO filesmodel/vrml
: WRL files, VRML files; Defined in RFC 2077model/x3d+binary
: X3D ISO standard for representing 3D computer graphics, X3DB binary filesmodel/x3d+vrml
: X3D ISO standard for representing 3D computer graphics, X3DV VRML filesmodel/x3d+xml
: X3D ISO standard for representing 3D computer graphics, X3D XML files
Type
multipart
For archives and other objects made of more than one part.
multipart/mixed
: MIME Email; Defined in RFC 2045 and RFC 2046multipart/alternative
: MIME Email; Defined in RFC 2045 and RFC 2046multipart/related
: MIME Email; 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
For human-readable text and source code.
text/cmd
: commands; subtype resident in Gecko browsers like Firefox 3.5text/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 support. The "type" attribute of the<script>
tag in HTML5 is optional and there is no need to use it at all since all browsers have always assumed the correct default (even in HTML 4 where it was required by the specification).text/plain
: Textual data; Defined in RFC 2046 and RFC 3676text/xml
: Extensible Markup Language; Defined in RFC 3023
Type
video
For video.
video/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/webm
: WebM open media formatvideo/x-ms-wmv
: Windows Media Video; Documented in Microsoft KB 288102
Type
vnd
For vendor-specific files.
application/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 filesapplication/vnd.ms-powerpoint
: Microsoft Powerpoint filesapplication/vnd.openxmlformats-officedocument.presentationml.presentation
: Microsoft Powerpoint 2007 filesapplication/msword
: Microsoft Word filesapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
: Microsoft Word 2007 filesapplication/vnd.mozilla.xul+xml
: Mozilla XUL filesapplication/vnd.google-earth.kml+xml
: KML files (e.g. for Google Earth)
Type
x
For non-standard files.
application/x-www-form-urlencoded
Form Encoded Data; Documented in HTML 4.01 Specification, Section 17.13.4.1application/x-dvi
: device-independent document in DVI formatapplication/x-latex
: LaTeX filesapplication/x-font-ttf
: TrueType Font No registered MIME type, but this is the most commonly usedapplication/x-shockwave-flash
: Adobe Flash files for example with the extension .swfapplication/x-stuffit
: StuffIt archive filesapplication/x-rar-compressed
: RAR archive filesapplication/x-tar
: Tarball filestext/x-jquery-tmpl
: jQuery template dataapplication/x-javascript
:
Type
x-pkcs
For PKCS standard files.
application/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
- XML and MIME
- RTP audio video profile
mime.types
References
- ^ "Internet Media Type registration, consistency of use". W3C. 2002-06-03. http://www.w3.org/2001/tag/2002/0129-mime. Retrieved 2006-11-29.
- ^ Freed, N. and Borenstein, N. (November 1996). "RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies". IETF. http://tools.ietf.org/html/rfc2045#section-5. Retrieved 2006-11-29.
- ^ Freed, N.; Klensin, J. (December 2005). "RFC 4288 - Media Type Specifications and Registration Procedures". IETF. http://tools.ietf.org/html/rfc4288#section-3.2. Retrieved 2008-06-14.
- ^ RFC 2046 - Multipurpose Internet Mail Extensions (MIME) Part Two: Media types. Tools.ietf.org. Retrieved on 2010-09-29.
- ^ HTTP/1.1: Entity. W3.org. Retrieved on 2010-09-29.
- ^ MIME SUBTYPE NAME: zip
- ^ MIME SUBTYPE NAME: png
- ^ MIME subtype name : Vendor Tree - vnd.microsoft.icon
- ^ Quicktime
- ^ vnd.oasis.opendocument.text
- ^ vnd.oasis.opendocument.spreadsheet
- ^ vnd.oasis.opendocument.presentation
- ^ vnd.oasis.opendocument.graphics
External links
- IANA MIME media types list
- IANA character sets
- RFC 2045, RFC 2046 - Multipurpose Internet Mail Extensions (MIME), parts 1 and 2
Categories:- Computer file formats
Wikimedia Foundation. 2010.