MIME types (Definition)

An Internet standard way of distinguishing between different kinds of container files.

The MIME types mechanism was originally developed for sending attachments in mail messages. Nowadays it has become a commonplace way of describing the content of a document in a way that many non e-mail client applications can understand.

This is defined as part of the HTML 4.0 standard.

Here is a list of some relevant MIME types for JavaScript programmers:

MIMETypeDescription
*Wildcard match everything
*/*Wild card match both parts separately
application/applefileAppleSingle file
application/AppleLinkAppleLink Package
application/ArcMacPC ARChive
application/BBEditML Source
application/binaryApplication Binary Data
application/CanvasCanvas Drawing
application/cdfChannels
application/CodeWarriorJava Class File
application/Compact_ProCompact Pro Archive
application/DeArjARJ Archive
application/DiskCopyApple DiskCopy Image
application/EnvoyEnvoy Document
application/ExcelLotus Spreadsheet r2.1
application/FileMaker_ProFileMaker Pro Database
application/FileMaker_Pro_3FileMaker Pro Database
application/FinderOpenType Font
application/FoxBase+DBase Document
application/fractalsFractal Image Format
application/futuresplashFutureSplash Player
application/GraphicConverterAnimated NeoChrome
application/gzipapplication/gzip
application/HexEditUntyped Binary Data
application/java-archiveJava Archive
application/JPEGViewOS/2 Bitmap
application/mac-binhex40Binhex File
application/MacAmpMPEG-1 Layer 3
application/MacAnim_ViewerDL Animation
application/macbinaryMacBinary
application/MacBoozZoo Archive
application/MacLHALHArc Archive
application/macwriteiiMacWrite Document
application/Microsoft_WordWord for Windows Template
application/MoviePlayerDV Video
application/ms-powerpointapplication/ms-powerpoint
application/mswordWord Document
application/netcdfChannels
application/octet-streamBinary Executable
application/odaODA Document
application/PageMakerPageMaker 3 Document
application/pdfPDF File
application/PF_EncryptPrivate File
application/pgp-keysPGP Key File
application/PhotoshopPhotoShop Document
application/PictureViewerOS/2 Bitmap
application/PlayerPro669 MOD Music
application/postscriptPostScript File
application/pre-encryptedPre-encrypted Data
application/QuarkXpressQuarkXpress Document
application/ReplicaReplica Document
application/ResEditResource File
application/rtfRich Text Format File
application/sdpSession Description Protocol
application/self-extractingSelf-Extracting Archive
application/Self_Extracting_ArchiveSelf-Extracting Archive
application/SimpleTextApple documentation file
application/smilSMIL Document
application/SoftWindowsMS-DOS Executable
application/SoundAppAmiga OctaMed music
application/SoundHackIRCAM Sound
application/streamingmediaStandard Streaming Metafile
application/StuffItStuffIt Archive
application/StuffIt_ExpanderPackIt Archive
application/SunTarUnix BAR Archive
application/vnd.fdfForms Data Format
application/vnd.lotus-1-2-3Lotus 123 Document
application/vnd.lotus-approachLotus Approach Document
application/vnd.lotus-freelanceLotus Freelance Document
application/vnd.lotus-organizerLotus Organizer Document
application/vnd.lotus-screencamLotus ScreenCam Movie
application/vnd.lotus-wordproLotus WordPro Document
application/vnd.ms-accessMicrosoft Access Database
application/vnd.ms-excelExcel Worksheet
application/vnd.ms-powerpointPowerPoint Presentation
application/vnd.ms-scheduleMicrosoft Schedule+ Application
application/vnd.rn-realmediaRealMedia File
application/vnd.rn-realplayerRealPlayer File
application/vnd.rn-realsystem-rjsRealSystem Skin
application/vnd.rn-realsystem-rmxRealSystem Secure Media Clip
application/vnd.rn-rn_music_packageRealJukebox Music Package
application/vnd.rn-rsmlRealSystem ML File
application/wafWebsite Archive
application/WordPerfectWordPerfect PC 4.2 Doc
application/wordperfect5.1WordPerfect PC 5.1 Doc
application/x-authorware-mapAuthorware
application/x-cdfChannels
application/x-compressUnix Compressed (.z) Files
application/x-compressedapplication/x-compressed
application/x-conferenceapplication/x-conference
application/x-cpioUnix CPIO Archive
application/x-cshC Shell Program
application/x-directorShockwave
application/x-dviTeX DVI Document
application/x-excelapplication/x-excel
application/x-fortezza-cklCompromised Key List
application/x-gocserveCompuServe Inbound Link to CIM 3.0
application/x-gtarGNU Tape Archive
application/x-gzipGZIP File
application/x-hdfHDF Data File
application/x-JavaScriptA .js file containing JavaScript source code
application/x-javascriptJavaScript Program
application/x-javascript-configJavaScript Config
application/x-javascript-configJavaScript Config
application/x-latexLaTeX Document
application/x-macbinaryMacBinary File
application/x-netcdfChannels
application/x-ns-proxy-autoconfigProxy Auto-Config
application/x-perlPerl Program
application/x-pkcs7-crlCertificate Revocation List
application/x-pkcs7-mimePKCS7 Encrypted Data
application/x-pkcs7-signaturePKCS7 Signature
application/x-rtspReal Time Streaming Protocol
application/x-sdpScalable Multicast
application/x-sgmlSGML Document
application/x-shBourne Shell Program
application/x-sharUnix Shell Archive
application/x-shockwave-flashShockwave Flash
application/x-stuffitStuffit Archive
application/x-tarTAR Archive
application/x-tclTCL Program
application/x-texTeX Document
application/x-texinfoGNU TeXinfo Document
application/x-x509-ca-certCertificates
application/x-zip-compressedZip Compressed Data
application/xmlHTML Document
application/zipZIP Archives
audio/aiffAIFF Audio
audio/basicAU Audio
audio/midMIDI
audio/midiMIDI
audio/mp3MPEG Movie
audio/mpegMPEG audio stream
audio/mpegurlMP3 PlayLists (.m3u,.pls)
audio/mpgMP3 Audio
audio/rmfaudio/rmf
audio/scplsMP3 PlayLists (.m3u,.pls)
audio/vnd.qcelpQCP Audio
audio/vnd.rn-realaudioRealAudio Clip
audio/wavWAV Audio
audio/x-aiffAIFF Audio
audio/x-midiMIDI
audio/x-mp3MPEG Movie
audio/x-mpegMPEG audio stream
audio/x-mpegurlMP3 PlayLists (.m3u,.pls)
audio/x-mpgMP3 Audio
audio/x-pn-realaudioRealAudio
audio/x-pn-realaudio-pluginRealPlayer Plugin
audio/x-rmfaudio/x-rmf
audio/x-scplsMP3 PlayLists (.m3u,.pls)
audio/x-wavWAV Audio
image/gifGIF Image
image/iefIEF image
image/jpegJPEG Image
image/pictPICT Image
image/pngPNG Image
image/tiffTIFF Image
image/vnd.rn-realflashRealFlash Clip
image/vnd.rn-realpixRealPix Clip
image/x-bmpWindows BMP Image
image/x-cmu-rasterCMU Raster Image
image/x-fitsFlexible Image Transport
image/x-macpaintMacPaint Image
image/x-macpictPICT Picture
image/x-MS-bmpWindows Bitmap
image/x-pbmPortable Bitmap
image/x-pgmPortable Graymap
image/x-photo-cdPhotoCD Image
image/x-photoshopPhotoshop Image
image/x-pictPICT Image
image/x-pngPNG Image
image/x-portable-anymapPBM Image
image/x-portable-bitmapPortable Bitmap
image/x-portable-graymapPortable Graymap
image/x-portable-pixmapPortable Pixmap
image/x-ppmPortable Pixmap
image/x-quicktimeQuickTime Image
image/x-rgbSGI Image
image/x-sgiSGI Image
image/x-targaTarga Truevision Image
image/x-tiffTIFF Image
image/x-xbitmapX Bitmap Image
image/x-xbmX-Windows Bitmap
image/x-xpixmapX-Windows Pixmap
image/x-xpmX-Windows Pixmap
image/x-xwdX-Windows Dump
image/x-xwindowdumpX Window Dump Image
image/xbitmapX Bitmap Image
image/xbmX Bitmap Image
message/external-bodyURL Bookmark
Netscape/SourceSpecial file type
Netscape/TelnetNetscape Telnet session
Netscape/tn3270Netscape TN3270 session
text/cdfChannels
text/cssText File
text/htmlAn HTML document.
text/JavaScriptText formatted JavaScript source code inside a <SCRIPT> block
text/JscriptText formatted JScript source code inside a <SCRIPT> block
text/plainForm content and other plain text documents
text/urlURL File
text/vbsText formatted VBScript source code inside a <SCRIPT> block
text/vbscriptText formatted VBScript source code inside a <SCRIPT> block
text/vnd.rn-realtextRealText Clip
text/x-cdfChannels
text/x-vcardVisiting Card
text/xmlHTML Document
undefinedUUEncoded Data
video/aviMicrosoft Video
video/flcFLC Animation
video/mpegMPEG video/audio stream
video/msvideoMicrosoft Video
video/quicktimeQuickTime Movie
video/vnd.rn-realvideoRealVideo Clip
video/x-mpegMPEG video/audio stream
video/x-mpeg2MPEG2 Video
video/x-msvideoMicrosoft Video
video/x-qtcvideo/x-qtc
x-world/x-3dmfQuickDraw 3D File
x-world/x-vrmlVRML File

MIME stands for Multi-part Internet Mail Extension but its usefulness has gone way beyond the scope of a simple extension to the mail protocols.

See also:<SCRIPT ARCHIVE="...">, <SCRIPT SRC="...">, <SCRIPT TYPE="...">, <STYLE TYPE="...">, Anchor.mimeType, Anchor.type, blob.blobLink(), BUTTON.accept, Document.open(), Form.encoding, JavaScript Image Source URL, LINK.type, MimeType object, MimeType.type, OBJECT.codeType, OBJECT.type, style.cueAfter, style.cueBefore, text/JavaScript, XML.type

Cross-references:

Wrox Instant JavaScript - page - 42