Posted 1997-02-14T15:30:00+01:00 in web

MIME Types

A collection of useful or often-used media types. Each line consists of a MIME Type and its associated "file extension". A webserver would treat a file named readme.txt as a file of the MIME Type text/plain. This is the classical "extension map" as used in NCSA httpd. Some lines are commented out in favor of other MIME Types.

The definitive list of MIMEs is maintained by The Internet Assigned Numbers Authority.

# --------------------------------------------
# Standard file formats
# --------------------------------------------

application/octet-stream             bin exe lha class
application/pdf                      pdf
application/postscript               ps eps ai
#application/rtf                     rtf
application/x-javascript             js
application/x-sh                     sh
text/css                             css
text/html                            htm html shtml 
#text/javascript                     js
text/plain                           txt
text/rtf                             rtf
text/x-vcard                         vcf

# --------------------------------------------
# Semantic web types
# --------------------------------------------
application/rdf+xml                  rdf
application/sparql-query             rq
application/x-turtle                 ttl

# --------------------------------------------
# XML Content types
# --------------------------------------------
#text/xml                             xml
#text/x-xslt                          xsl
# Avoid text/ with XML bodies, since recoding might occur in transit
application/xml                      xml
application/xslt+xml                 xsl
application/xhtml+xml                xht xhtml
application/vnd.mozilla.xul+xml      xul
application/atom+xml                 atom

# --------------------------------------------
# Images 
# --------------------------------------------

image/gif                            gif
image/jpeg                           jpeg jpe jpg
image/png                            png
image/tiff                           tiff tif
image/x-xbitmap                      xbm
image/x-xpixmap                      xpm
image/x-xbitmap                      xbm
image/x-portable-anymap              pnm
image/x-portable-bitmap              pbm
image/x-portable-graymap             pgm
image/x-rgb                          rgb

# --------------------------------------------
# Audio video
# --------------------------------------------

audio/basic                          au snd
audio/midi                           mid midi kar
audio/mpeg                           mpga mp2 mp3
audio/mpegurl                        m3u
audio/scpls                          pls
audio/x-aiff                         aif aifc aiff
audio/x-wav                          wav
audio/vnd.rn-realaudio               ra ram
audio/vnd.rn-realvideo               rv
video/mpeg                           mpeg mpe mpg
video/quicktime                      mov qt
video/x-msvideo                      avi
video/x-sgi-movie                    movie

# --------------------------------------------
# Multimedia
# --------------------------------------------

application/x-shockwave-flash        swf
application/x-director               dcr dir dxr
application/smil                     smi smil

# --------------------------------------------
# Microsoft proprietary
# --------------------------------------------

application/msword                   doc
application/vnd.ms-excel             xls xlt
application/vnd.ms-powerpoint        ppt pps

# --------------------------------------------
# Archiving and compression
# --------------------------------------------

application/mac-binhex40             hqx
application/x-compress               Z
application/x-cpio                   cpio
application/x-gtar                   gtar
application/x-gzip                   gz
application/x-stuffit                sit
application/x-tar                    tar
#application/x-zip-compressed        zip
application/zip                      zip

# --------------------------------------------
# Vector files
#
# CGM   Computer Graphics Metafile 
# SVF   Simple Vector Format 
# VRML  Virtual Reality Modeling Language
# XMT   Parasolid modeler format
#
# Anyone any ideas on MIMEs for 
# the Stereolithography file (.stl)
# and the ACIS modeler format (.sat)?
# --------------------------------------------

image/cgm                            cgm
image/vnd.svf                        svf
model/iges                           iges
model/mesh                           mesh msh silo
model/vnd.parasolid.transmit.text    xmt
model/vnd.parasolid.transmit.binary  xmb
model/vrml                           wrl
#x-world/x-vrml                      wrl

# --------------------------------------------
# Autodesk
# AutoCAD Drawing file, the DXF vector file,  
# and the AutoCAD unleashed or Whip file format:
# --------------------------------------------

image/vnd.dwg                        dwg
image/vnd.dxf                        dxf
model/vnd.dwf                        dwf

# --------------------------------------------
# Bentley Systems
# MicroStation design file or library
# --------------------------------------------

application/microstation             dgn cel

# --------------------------------------------
# WAP Forum
# --------------------------------------------

application/vnd.wap.wbxml            wbxml
application/vnd.wap.wmlc             wmlc
application/vnd.wap.wmlscriptc       wmlsc
image/vnd.wap.wbmp                   wbmp
text/vnd.wap.wml                     wml
text/vnd.wap.wmlscript               wmls

MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms for Specifying and Describing the Format of Internet Message Bodies
http://www.ietf.org/rfc/rfc1521.txt

Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
http://www.ietf.org/rfc/rfc2045.txt

Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
http://www.ietf.org/rfc/rfc2046.txt

Multipurpose Internet Mail Extensions (MIME) Part Three: Message Header Extensions for Non-ASCII Text
http://www.ietf.org/rfc/rfc2047.txt

Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures
http://www.ietf.org/rfc/rfc2048.txt

Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples
http://www.ietf.org/rfc/rfc2049.txt

The Model Primary Content Type for Multipurpose Internet Mail Extensions
http://www.ietf.org/rfc/rfc2077.txt

The 'application/xhtml+xml' Media Type
http://www.ietf.org/rfc/rfc3236.txt

Changelog

2006 12 17: Added SPARQL and Turtle MIME types.

2004 11 21: Added the xsl and xul Mimes and placed them under a new XML Content types heading.

2003 09 22: Added the link to IANA once again. vcard Mime added.

2002 11 22: Added the xhtml MIME from RFC 3236:
There are three known file extensions that are currently in use for XHTML 1.0; ".xht", ".xhtml", and ".html".
It is not recommended that the ".xml" extension be used, as web servers may be configured to distribute such content as type "text/xml" or "application/xml".

2002 06 01: Removed vector/ types and other variations for certain file types. The list now uses the same MIME Types as in the Apache mime.types file.

Early 1997: Wrote down the variety of 3d CAD MIMEs that were popping up. Later that year I added some generic ones from a list from a Sun Webserver application.