Revision 1089053 of Complete list of MIME types

  • Revision slug: Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
  • Revision title: Complete list of MIME types
  • Revision id: 1089053
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{HTTPSidebar}}

Here is a comprehensive list of MIME types associated by type of documents, ordered by their common extensions.

Two MIME types play the role of default types:

  • text/plain is the default value for textual files. A textual files should be human-readable and must not contain binary data
  • application/octet-stream is the default value for all other cases. Unknown type of files should use this types. Browsers pay a special care when manipulating these files, trying to safeguard the user to prevent dangerous behaviors.

IANA is the official registry of MIME media types and maintain a list of all the official MIME types.

Extension Kind of document MIME Type
.aac AAC audio file audio/aac
.abw AbiWord document application/x-abiword
.arc Archive document (multiple files embedded) application/octet-stream
.avi AVI: Audio Video Interleave video/x-msvideo
.azw Amazon Kindle eBook format application/vnd.amazon.ebook
.bin Any kind of binary data application/octet-stream
.bz BZip archive application/x-bzip
.bz2 BZip2 archive application/x-bzip2
.csh C-Shell script application/x-csh
.css Cascading Style Sheets (CSS) text/css
.csv Comma-separated values (CSV) text/csv
.epub Electronic publication (EPUB) application/epub+zip
.gif Graphics Interchange Format (GIF) image/gif
.htm
.html
HyperText Markup Language (HTML) text/html
.mpkg Apple Installer Package application/vnd.apple.installer+xml
.pdf Adobe Portable Document Format (PDF) application/pdf
.sh Bourne shell script application/x-sh
.swf Small web format (SWF) or Adobe Flash document application/x-shockwave-flash
.3gp 3GPP audio/video container video/3gpp
audio/3gpp if it doesn't contain video
.3g2 3GPP2 audio/video container video/3gpp2
audio/3gpp2 if it doesn't contain video
.7z 7-zip archive application/x-7z-compressed

 

Revision Source

<p>{{HTTPSidebar}}</p>

<p>Here is a comprehensive list of MIME types associated by type of documents, ordered by their common extensions.</p>

<p>Two MIME types play the role of default types:</p>

<ul>
 <li><code>text/plain</code> is the default value for textual files. A textual files should be human-readable and must not contain binary data</li>
 <li><code>application/octet-stream</code> is the default value for all other cases. Unknown type of files should use this types. Browsers pay a special care when manipulating these files, trying to safeguard the user to prevent dangerous behaviors.</li>
</ul>

<p>IANA is the official registry of MIME media types and maintain a <a href="http://www.iana.org/assignments/media-types/media-types.xhtml">list of all the official MIME types</a>.</p>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Extension</th>
   <th scope="col">Kind of document</th>
   <th scope="col">MIME Type</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td><code>.aac</code></td>
   <td>AAC audio file</td>
   <td><code>audio/aac</code></td>
  </tr>
  <tr>
   <td><code>.abw</code></td>
   <td><a href="https://en.wikipedia.org/wiki/AbiWord">AbiWord</a> document</td>
   <td><code>application/x-abiword</code></td>
  </tr>
  <tr>
   <td><code>.arc</code></td>
   <td>Archive document (multiple files embedded)</td>
   <td><code>application/octet-stream</code></td>
  </tr>
  <tr>
   <td><code>.avi</code></td>
   <td>AVI: Audio Video Interleave</td>
   <td><code>video/x-msvideo</code></td>
  </tr>
  <tr>
   <td><code>.azw</code></td>
   <td>Amazon Kindle eBook format</td>
   <td><code>application/vnd.amazon.ebook</code></td>
  </tr>
  <tr>
   <td><code>.bin</code></td>
   <td>Any kind of binary data</td>
   <td><code>application/octet-stream</code></td>
  </tr>
  <tr>
   <td><code>.bz</code></td>
   <td>BZip archive</td>
   <td><code>application/x-bzip</code></td>
  </tr>
  <tr>
   <td><code>.bz2</code></td>
   <td>BZip2 archive</td>
   <td><code>application/x-bzip2</code></td>
  </tr>
  <tr>
   <td><code>.csh</code></td>
   <td>C-Shell script</td>
   <td><code>application/x-csh</code></td>
  </tr>
  <tr>
   <td><code>.css</code></td>
   <td>Cascading Style Sheets (CSS)</td>
   <td><code>text/css</code></td>
  </tr>
  <tr>
   <td><code>.csv</code></td>
   <td>Comma-separated values (CSV)</td>
   <td><code>text/csv</code></td>
  </tr>
  <tr>
   <td><code>.epub</code></td>
   <td>Electronic publication (EPUB)</td>
   <td><code>application/epub+zip</code></td>
  </tr>
  <tr>
   <td><code>.gif</code></td>
   <td>Graphics Interchange Format (GIF)</td>
   <td><code>image/gif</code></td>
  </tr>
  <tr>
   <td><code>.htm<br />
    .html</code></td>
   <td>HyperText Markup Language (HTML)</td>
   <td><code>text/html</code></td>
  </tr>
  <tr>
   <td><code>.mpkg</code></td>
   <td>Apple Installer Package</td>
   <td><code>application/vnd.apple.installer+xml</code></td>
  </tr>
  <tr>
   <td><code>.pdf</code></td>
   <td>Adobe <a href="https://acrobat.adobe.com/us/en/why-adobe/about-adobe-pdf.html">Portable Document Format</a> (PDF)</td>
   <td><code>application/pdf</code></td>
  </tr>
  <tr>
   <td><code>.sh</code></td>
   <td>Bourne shell script</td>
   <td><code>application/x-sh</code></td>
  </tr>
  <tr>
   <td><code>.swf</code></td>
   <td><a href="https://en.wikipedia.org/wiki/SWF">Small web format</a> (SWF) or Adobe Flash document</td>
   <td><code>application/x-shockwave-flash</code></td>
  </tr>
  <tr>
   <td><code>.3gp</code></td>
   <td><a href="https://en.wikipedia.org/wiki/3GP_and_3G2">3GPP</a> audio/video container</td>
   <td><code>video/3gpp</code><br />
    <code>audio/3gpp</code> if it doesn't contain video</td>
  </tr>
  <tr>
   <td><code>.3g2</code></td>
   <td><a href="https://en.wikipedia.org/wiki/3GP_and_3G2">3GPP2</a> audio/video container</td>
   <td><code>video/3gpp2</code><br />
    <code>audio/3gpp2</code> if it doesn't contain video</td>
  </tr>
  <tr>
   <td><code>.7z</code></td>
   <td><a href="https://en.wikipedia.org/wiki/7-Zip">7-zip</a> archive</td>
   <td><code>application/x-7z-compressed</code></td>
  </tr>
 </tbody>
</table>

<p>&nbsp;</p>
Revert to this revision