Hashers Hash

Common MIME types

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


What Are MIME Types?

MIME types (Multipurpose Internet Mail Extensions) are standardized identifiers used to indicate the nature and format of a file. They are used by browsers, servers, APIs, and applications to properly handle and interpret files during uploads, downloads, or API interactions.

For example:

  • A .jpg image has the MIME type: image/jpeg
  • A .pdf document has the MIME type: application/pdf

Why Are MIME Types Important?

MIME types play a critical role in:

  • Web development - Ensuring correct content rendering
  • APIs & file uploads - Validating and handling file formats
  • Security - Preventing file spoofing and content-type mismatches
  • Content delivery - Telling browsers how to display or download a file

Common MIME Types

Kind of DocumentMIME TypeExtension
AAC audioaudio/aac.aac
AbiWord documentapplication/x-abiword.abw
Animated Portable Network Graphics (APNG) imageimage/apng.apng
Archive document (multiple files embedded)application/x-freearc.arc
AVIF imageimage/avif.avif
AVI: Audio Video Interleavevideo/x-msvideo.avi
Amazon Kindle eBook formatapplication/vnd.amazon.ebook.azw
Any kind of binary dataapplication/octet-stream.bin
Windows OS/2 Bitmap Graphicsimage/bmp.bmp
BZip archiveapplication/x-bzip.bz
BZip2 archiveapplication/x-bzip2.bz2
CD audioapplication/x-cdf.cda
C-Shell scriptapplication/x-csh.csh
Cascading Style Sheets (CSS)text/css.css
Comma-separated values (CSV)text/csv.csv
Microsoft Wordapplication/msword.doc
Microsoft Word (OpenXML)application/vnd.openxmlformats-officedocument.wordprocessingml.document.docx
MS Embedded OpenType fontsapplication/vnd.ms-fontobject.eot
Electronic publication (EPUB)application/epub+zip.epub
GZip Compressed Archiveapplication/gzip. Note, Windows and macOS upload .gz files with the non-standard MIME type application/x-gzip..gz
Graphics Interchange Format (GIF)image/gif.gif
HyperText Markup Language (HTML)text/html.htm, .html
Icon formatimage/vnd.microsoft.icon.ico
iCalendar formattext/calendar.ics
Java Archive (JAR)application/java-archive.jar
JPEG imagesimage/jpeg.jpeg, .jpg
JavaScripttext/javascript (Specifications: HTML and RFC 9239).js
JSON formatapplication/json.json
JSON-LD formatapplication/ld+json.jsonld
Musical Instrument Digital Interface (MIDI)audio/midi, audio/x-midi.mid, .midi
JavaScript moduletext/javascript.mjs
MP3 audioaudio/mpeg.mp3
MP4 videovideo/mp4.mp4
MPEG Videovideo/mpeg.mpeg
Apple Installer Packageapplication/vnd.apple.installer+xml.mpkg
OpenDocument presentation documentapplication/vnd.oasis.opendocument.presentation.odp
OpenDocument spreadsheet documentapplication/vnd.oasis.opendocument.spreadsheet.ods
OpenDocument text documentapplication/vnd.oasis.opendocument.text.odt
Ogg audioaudio/ogg.oga
Ogg videovideo/ogg.ogv
Oggapplication/ogg.ogx
Opus audio in Ogg containeraudio/ogg.opus
OpenType fontfont/otf.otf
Portable Network Graphicsimage/png.png
Adobe Portable Document Format (PDF)application/pdf.pdf
Hypertext Preprocessor (Personal Home Page)application/x-httpd-php.php
Microsoft PowerPointapplication/vnd.ms-powerpoint.ppt
Microsoft PowerPoint (OpenXML)application/vnd.openxmlformats-officedocument.presentationml.presentation.pptx
RAR archiveapplication/vnd.rar.rar
Rich Text Format (RTF)application/rtf.rtf
Bourne shell scriptapplication/x-sh.sh
Scalable Vector Graphics (SVG)image/svg+xml.svg
Tape Archive (TAR)application/x-tar.tar
Tagged Image File Format (TIFF)image/tiff.tif, .tiff
MPEG transport streamvideo/mp2t.ts
TrueType Fontfont/ttf.ttf
Text, (generally ASCII or ISO 8859-n)text/plain.txt
Microsoft Visioapplication/vnd.visio.vsd
Waveform Audio Formataudio/wav.wav
WEBM audioaudio/webm.weba
WEBM videovideo/webm.webm
WEBP imageimage/webp.webp
Web Open Font Format (WOFF)font/woff.woff
Web Open Font Format (WOFF)font/woff2.woff2
XHTMLapplication/xhtml+xml.xhtml
Microsoft Excelapplication/vnd.ms-excel.xls
Microsoft Excel (OpenXML)application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xlsx
XMLapplication/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..xml
XULapplication/vnd.mozilla.xul+xml.xul
ZIP archiveapplication/zip. Note, Windows uploads .zip files with the non-standard MIME type application/x-zip-compressed..zip
3GPP audio/video containervideo/3gpp; audio/3gpp if it doesn't contain video.3gp
3GPP2 audio/video containervideo/3gpp2; audio/3gpp2 if it doesn't contain video.3g2
7-zip archiveapplication/x-7z-compressed.7z