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):
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:
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'); ?>
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, .accdt||application/msaccess|
|.ai, .eps, .ps||application/postscript|
|.aif, .aiff, .aifc||audio/x-aiff|
|.bat, .com, .dll, .exe, .msi||application/x-msdownload|
|.bin, .dms, .lrf, .mar, .so, .dist, .distz, .pkg, .bpk, .dump, .elc, .deploy||application/octet-stream|
|.c, .cc, .cxx, .cpp, .h, .hh, .dic||text/x-c|
|.f, .for, .f77, .f90||text/x-fortran|
|.htm, .html, .htmls||text/html|
|.jpe, .jpeg, .jpg||image/jpeg|
|.mka, .mkv, .mk3d, .mks||video/x-matroska|
|.mp4, .mp4v, .mpg4||video/mp4|
|.mpeg, .mpg, .mpe, .m1v, .m2v||video/mpeg|
|.mpga, .mp2, .mp2a, .mp3, .m2a, .m3a||audio/mpeg|
|.oga, .ogg, .spx||audio/ogg|
|.ppt, .pps, .pot||application/vnd.ms-powerpoint|
|.qt, .mov, .moov||video/quicktime|
|.txt, .text, .cnf, .conf, .def, .list, .lst, .log, .in||text/plain|
|.xls, .xlm, .xla, .xlb, .xlc, .xld, .xlt, .xlw||application/vnd.ms-excel|
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.
More Web Design Tips
How to Make Form Input Fields Required Allow File Download After Email Address Submission 4 Great Free Online Website Builders for Beginners How to Fix “404 Favicon Not Found” Error 6 Free Online Graphic Design Programs Best Free WYSIWYG Web Design Software for Beginners 5 Best Free Online Photo Editing Programs 8 Websites Where You Can Download Free Vector Images How to Create a Custom Cookie Notice for EU Cookie Law How to Add a Favicon (Bookmark Icon) to Your WebsiteWeb Design Tips