Common MIME types

This topic lists the most common MIME types with corresponding document types, ordered by their common extensions.

The following two important MIME types are the default types:

  • text/plain is the default value for textual files. A textual file should be human-readable and must not contain binary data.
  • application/octet-stream is the default value for all other cases. An unknown file type should use this type. Browsers are particularly careful when manipulating these files to protect users from software vulnerabilities and possible dangerous behavior.
  • IANA is the official registry of MIME media types and maintains a list of all the official MIME types . This table lists important MIME types for the Web:

    Extension Kind of document MIME Type .docx Microsoft Word (OpenXML) application/vnd.openxmlformats-officedocument.wordprocessingml.document MS Embedded OpenType fonts application/vnd.ms-fontobject .epub Electronic publication (EPUB) application/epub+zip GZip Compressed Archive application/gzip . Note, Windows and macOS upload .gz files with the non-standard MIME type application/x-gzip . Graphics Interchange Format (GIF) image/gif .htm , .html HyperText Markup Language (HTML) text/html Icon format image/vnd.microsoft.icon iCalendar format text/calendar Java Archive (JAR) application/java-archive .jpeg , .jpg JPEG images image/jpeg JavaScript text/javascript (Specifications: HTML and RFC 9239 ) .json JSON format application/json .jsonld JSON-LD format application/ld+json .mid , .midi Musical Instrument Digital Interface (MIDI) audio/midi , audio/x-midi JavaScript module text/javascript MP3 audio audio/mpeg MP4 video video/mp4 .mpeg MPEG Video video/mpeg .mpkg Apple Installer Package application/vnd.apple.installer+xml OpenDocument presentation document application/vnd.oasis.opendocument.presentation OpenDocument spreadsheet document application/vnd.oasis.opendocument.spreadsheet OpenDocument text document application/vnd.oasis.opendocument.text Ogg audio audio/ogg Ogg video video/ogg application/ogg .opus Opus audio in Ogg container audio/ogg OpenType font font/otf Portable Network Graphics image/png Adobe Portable Document Format (PDF) application/pdf Hypertext Preprocessor ( Personal Home Page ) application/x-httpd-php Microsoft PowerPoint application/vnd.ms-powerpoint .pptx Microsoft PowerPoint (OpenXML) application/vnd.openxmlformats-officedocument.presentationml.presentation RAR archive application/vnd.rar Rich Text Format (RTF) application/rtf Bourne shell script application/x-sh Scalable Vector Graphics (SVG) image/svg+xml Tape Archive (TAR) application/x-tar .tif , .tiff Tagged Image File Format (TIFF) image/tiff MPEG transport stream video/mp2t TrueType Font font/ttf Text, (generally ASCII or ISO 8859- n ) text/plain Microsoft Visio application/vnd.visio Waveform Audio Format audio/wav .weba WEBM audio audio/webm .webm WEBM video video/webm .webp WEBP image image/webp .woff Web Open Font Format (WOFF) font/woff .woff2 Web Open Font Format (WOFF) font/woff2 .xhtml XHTML application/xhtml+xml Microsoft Excel application/vnd.ms-excel .xlsx Microsoft Excel (OpenXML) application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/xml is recommended as of RFC 7303 (section 4.1), but text/xml is still used sometimes. You can assign a specific MIME type to a file with .xml extension depending on how its contents are meant to be interpreted. For instance, an Atom feed is application/atom+xml , but application/xml serves as a valid default. application/vnd.mozilla.xul+xml ZIP archive application/zip . Note, Windows uploads .zip files with the non-standard MIME type application/x-zip-compressed . 3GPP audio/video container video/3gpp ; audio/3gpp if it doesn't contain video 3GPP2 audio/video container video/3gpp2 ; audio/3gpp2 if it doesn't contain video