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.

Thumbnail Blaster - Video Thumbnail Creation Software

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):


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)
.accdb, .accde, .accdtapplication/msaccess
.ai, .eps, .psapplication/postscript
.aif, .aiff, .aifcaudio/x-aiff
.bat, .com, .dll, .exe, .msiapplication/x-msdownload
.bin, .dms, .lrf, .mar, .so, .dist, .distz, .pkg, .bpk, .dump, .elc, .deployapplication/octet-stream
.c, .cc, .cxx, .cpp, .h, .hh, .dictext/x-c
.doc, .dotapplication/msword
.f, .for, .f77, .f90text/x-fortran
.gz, .gzipapplication/x-gzip
.htm, .html, .htmlstext/html
.igs, .igesmodel/iges
.jav, .javatext/x-java-source
.jpe, .jpeg, .jpgimage/jpeg
.mka, .mkv, .mk3d, .mksvideo/x-matroska
.mp4, .mp4v, .mpg4video/mp4
.mpeg, .mpg, .mpe, .m1v, .m2vvideo/mpeg
.mpga, .mp2, .mp2a, .mp3, .m2a, .m3aaudio/mpeg
.oga, .ogg, .spxaudio/ogg
.ppt, .pps, .potapplication/
.qt, .mov, .moovvideo/quicktime
.svg, .svgzimage/svg+xml
.txt, .text, .cnf, .conf, .def, .list, .lst, .log, .intext/plain
.vcard, .vcftext/vcard
.xhtml, .xhtapplication/xhtml+xml
.xls, .xlm, .xla, .xlb, .xlc, .xld, .xlt, .xlwapplication/
.xml, .xslapplication/xml

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?

Please consider sharing it, and supporting us with a small tip. Thank you :)

f t g+ in