Complete List of File MIME Types

Different file types have different MIME types that identify what kind of data/information (text, image, video, etc.) a file contains. In this post, we will make an extensive list of file MIME types for (almost) all the file types that are commonly used today.

What is MIME Type and How It is Used?

MIME (Multipurpose Internet Mail Extensions) was first introduced to identify the content type in different parts of email communications and file attachments. Later on, it found wider use in identifying the content type, also known as media type, of files to be used on the world wide web. In basic words, the information about the MIME type of a file is used by the server/script to identify the file and by the web browser, on the other side of the HTTP communication, to display/render the file appropriately.

As an example, the following is the MIME type of an HTML file (.html):

text/html

Note how the MIME type is different than the extension of the file. Another example shows how the MIME type is used for identifying the file type of an external resource on a web page:

<script type="text/javascript" src="script.js"></script>

TIP: In HTML5, you no longer need to use the type attribute for external JS and CSS files.

By default, web servers present most file types such as HTML, CSS, JS, PHP, ASP, images and so on with pre-configured MIME types on the server side. If you have access and control over your hosting server, you can modify these file media types as you wish based on your website's needs. But, where the MIME types really come into play is the variety of web applications and scripts that involve with the delivery or download of different types of files such as images, videos, Zip archives, PDF reports, office documents etc.

Assigning the correct MIME types to your static or dynamically generated files (via server-side or client-side scripts) is crucial, since otherwise you will often stumble upon display and download issues as your users browse your website or application. With improper use of MIME types, you may also have file transfer issues while accessing your site via FTP.

The following example demonstrates how a PHP script uses the MIME type to deliver the page content as an image:

<?php header('Content-Type: image/jpeg'); ?>

You can read more about MIME and media types to better understand how they originated.

File MIME Types List

We used IANA's Media Types List and Apache's MIME Types List and some other resources for compiling the following list. Note that, in some rows on the following table, multiple file extensions are identified by the same MIME type. If you are looking for a specific file extension, simply perform a search in your browser using Ctrl + F.

File Extension(s)MIME Type (Media Type)
.3dsimage/x-3ds
.3gpvideo/3gpp
.7zapplication/x-7z-compressed
.aacaudio/x-aac
.accdb, .accde, .accdtapplication/msaccess
.ai, .eps, .psapplication/postscript
.aif, .aiff, .aifcaudio/x-aiff
.airapplication/vnd.adobe.air-application-installer-package+zip
.apkapplication/vnd.android.package-archive
.appcachetext/cache-manifest
.applicationapplication/x-ms-application
.avivideo/x-msvideo
.avsvideo/avs-video
.bat, .com, .dll, .exe, .msiapplication/x-msdownload
.bin, .dms, .lrf, .mar, .so, .dist, .distz, .pkg, .bpk, .dump, .elc, .deployapplication/octet-stream
.bmpimage/bmp
.c, .cc, .cxx, .cpp, .h, .hh, .dictext/x-c
.c++text/plain
.csstext/css
.csvtext/csv
.doc, .dotapplication/msword
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
.dviapplication/x-dvi
.dwfmodel/vnd.dwf
.dwgimage/vnd.dwg
.ecmaapplication/ecmascript
.eolaudio/vnd.digital-winds
.eotapplication/vnd.ms-fontobject
.f, .for, .f77, .f90text/x-fortran
.flvvideo/x-flv
.gifimage/gif
.gz, .gzipapplication/x-gzip
.h264video/h264
.hdmltext/x-hdml
.helpapplication/x-helpfile
.htm, .html, .htmlstext/html
.icoimage/x-icon
.igs, .igesmodel/iges
.imapapplication/x-httpd-imap
.isoapplication/x-iso9660-image
.jarapplication/java-archive
.jav, .javatext/x-java-source
.jpe, .jpeg, .jpgimage/jpeg
.jstext/javascript
.jsonapplication/json
.kmlapplication/vnd.google-earth.kml+xml
.lnkapplication/x-ms-shortcut
.m3uaudio/x-mpegurl
.manifestapplication/x-ms-manifest
.mcdapplication/vnd.mcd
.mka, .mkv, .mk3d, .mksvideo/x-matroska
.movievideo/x-sgi-movie
.mp4, .mp4v, .mpg4video/mp4
.mpeg, .mpg, .mpe, .m1v, .m2vvideo/mpeg
.mpga, .mp2, .mp2a, .mp3, .m2a, .m3aaudio/mpeg
.oga, .ogg, .spxaudio/ogg
.pdfapplication/pdf
.pkiapplication/pkixcmp
.ppt, .pps, .potapplication/vnd.ms-powerpoint
.psdimage/vnd.adobe.photoshop
.pubapplication/x-mspublisher
.qt, .mov, .moovvideo/quicktime
.rarapplication/x-rar-compressed
.svg, .svgzimage/svg+xml
.swfapplication/x-shockwave-flash
.tarapplication/x-tar
.tocapplication/octet-stream
.torrentapplication/x-bittorrent
.txt, .text, .cnf, .conf, .def, .list, .lst, .log, .intext/plain
.unitywebapplication/vnd.unity
.vcard, .vcftext/vcard
.vobvideo/x-ms-vob
.vrmlmodel/vrml
.webmvideo/webm
.webpimage/webp
.wmaaudio/x-ms-wma
.wmltext/vnd.wap.wml
.wmvvideo/x-ms-wmv
.woffapplication/font-woff
.wordapplication/msword
.xhtml, .xhtapplication/xhtml+xml
.xls, .xlm, .xla, .xlb, .xlc, .xld, .xlt, .xlwapplication/vnd.ms-excel
.xlsmapplication/vnd.ms-excel.sheet.macroEnabled.12
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xml, .xslapplication/xml
.xyzchemical/x-xyz
.zipapplication/zip

The above list contains MIME file types for over a thousand different file types that are used by different software on various operating systems and platforms. We hope that this list will be helpful to you in your web design and development projects. Please share this list if you think others may also find it useful.

Was this post helpful?

If you found this post to be helpful, please share it! Thank you :)

f t g+ in