译者注:英文原文标题为 Incomplete list of MIME types,意为不完整的/未完成的 MIME 类型列表。

这是一份 MIME 类型列表,以及各个类型的文档类别,按照它们的常见扩展名排序。

两种主要的 MIME 类型在默认类型中扮演了重要的角色:

  • text/plain 表示文本文件的默认值。一个文本文件应当是人类可读的,并且不包含二进制数据。
  • application/octet-stream 表示所有其他情况的默认值。一种未知的文件类型应当使用此类型。浏览器在处理这些文件时会特别小心, 试图防止、避免用户的危险行为.

IANA 是 MIME 媒体类型的官方注册机构,并维护了 list of all the official MIME types。下面的表格列出了 Web 上的一些重要 MIME 类型:

扩展名 文档类型 MIME 类型
.aac AAC audio audio/aac
.abw AbiWord document application/x-abiword
.arc Archive document (multiple files embedded) application/x-freearc
.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
.bmp Windows OS/2 Bitmap Graphics image/bmp
.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
.doc Microsoft Word application/msword
.docx Microsoft Word (OpenXML) application/vnd.openxmlformats-officedocument.wordprocessingml.document
.eot MS Embedded OpenType fonts application/vnd.ms-fontobject
.epub Electronic publication (EPUB) application/epub+zip
.gif Graphics Interchange Format (GIF) image/gif
.htm

.html
HyperText Markup Language (HTML) text/html
.ico Icon format image/vnd.microsoft.icon
.ics iCalendar format text/calendar
.jar Java Archive (JAR) application/java-archive
.jpeg

.jpg
JPEG images image/jpeg
.js JavaScript text/javascript
.json JSON format application/json
.jsonld JSON-LD format application/ld+json
.mid

.midi
Musical Instrument Digital Interface (MIDI) audio/midi audio/x-midi
.mjs JavaScript module text/javascript
.mp3 MP3 audio audio/mpeg
.mpeg MPEG Video video/mpeg
.mpkg Apple Installer Package application/vnd.apple.installer+xml
.odp OpenDocument presentation document application/vnd.oasis.opendocument.presentation
.ods OpenDocument spreadsheet document application/vnd.oasis.opendocument.spreadsheet
.odt OpenDocument text document application/vnd.oasis.opendocument.text
.oga OGG audio audio/ogg
.ogv OGG video video/ogg
.ogx OGG application/ogg
.otf OpenType font font/otf
.png Portable Network Graphics image/png
.pdf Adobe Portable Document Format (PDF) application/pdf
.ppt Microsoft PowerPoint application/vnd.ms-powerpoint
.pptx Microsoft PowerPoint (OpenXML) application/vnd.openxmlformats-officedocument.presentationml.presentation
.rar RAR archive application/x-rar-compressed
.rtf Rich Text Format (RTF) application/rtf
.sh Bourne shell script application/x-sh
.svg Scalable Vector Graphics (SVG) image/svg+xml
.swf Small web format (SWF) or Adobe Flash document application/x-shockwave-flash
.tar Tape Archive (TAR) application/x-tar
.tif

.tiff
Tagged Image File Format (TIFF) image/tiff
.ttf TrueType Font font/ttf
.txt Text, (generally ASCII or ISO 8859-n) text/plain
.vsd Microsoft Visio application/vnd.visio
.wav 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
.xls Microsoft Excel application/vnd.ms-excel
.xlsx Microsoft Excel (OpenXML) application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xml XML application/xml 代码对普通用户来说不可读 (RFC 3023, section 3)

text/xml 代码对普通用户来说可读 (RFC 3023, section 3)
.xul XUL application/vnd.mozilla.xul+xml
.zip ZIP archive application/zip
.3gp 3GPP audio/video container video/3gpp

audio/3gpp(若不含视频)
.3g2 3GPP2 audio/video container video/3gpp2

audio/3gpp2(若不含视频)
.7z 7-zip archive application/x-7z-compressed

最新文章

  1. php cUrl模拟登录,cookie保存到文件中
  2. 使用反射将DataTable的数据转成实体类
  3. CSS3 transform原点设置
  4. Memcached原理分析
  5. 读<jquery 权威指南>[4]-Ajax
  6. Android 定制下拉刷新头部 Ultra Pull To Refresh
  7. 不允许从数据类型 nvarchar 到 varbinary 的隐式转换
  8. The mmap module
  9. 小公司免费的ERP软件
  10. 2017年05月10日记一次微项目投产 | 安卓版微信内置浏览器不能解析gzip压缩过的mp4视频的问题
  11. Linux开发-makefile
  12. Azure Database for MySQL 报 Please specify SSL options and retry.
  13. 深入理解Ribbon之源码解析
  14. IIS下载地址
  15. linux C++ 获取服务器外网IP地址(使用系统调用system)
  16. HTTP 压力测试工具
  17. Python+Appium环境搭建
  18. 修改主机名hostname
  19. asp.net mvc(一) ----------简单封装成通用的List<T>集合
  20. UVa 10534 波浪子序列(快速求LIS)

热门文章

  1. js代码加这个<!--代码//-->
  2. keil结合st-link使用SWO的两种调试方法笔记
  3. mybatis+redis实现二级缓存
  4. paramiko远程上传下载文件
  5. 爬取前尘无忧python职位信息并保存到mongo数据库
  6. border-style
  7. 富文本编辑器复制word
  8. [Luogu] 跑路
  9. ubuntu14.0 更改默认python为3.5 并安装tensorflow(cpu)
  10. Docker实践--搭建Yapi测试平台