MIME 类型参考

文本

MIME 类型扩展名说明
text/plain .txt 纯文本
text/html .html .htm HTML 文档
text/css .css 层叠样式表
text/javascript .js .mjs JavaScript
text/csv .csv 逗号分隔值
text/xml .xml XML 文档
text/markdown .md Markdown
text/calendar .ics iCalendar

图片

MIME 类型扩展名说明
image/jpeg .jpg .jpeg JPEG 图片
image/png .png PNG 图片
image/gif .gif GIF 图片
image/svg+xml .svg SVG 矢量图
image/webp .webp WebP 图片
image/avif .avif AVIF 图片
image/bmp .bmp 位图
image/tiff .tiff .tif TIFF 图片
image/x-icon .ico 图标

音频

MIME 类型扩展名说明
audio/mpeg .mp3 MP3 音频
audio/ogg .ogg OGG 音频
audio/wav .wav WAV 音频
audio/webm .weba WebM 音频
audio/aac .aac AAC 音频
audio/flac .flac FLAC 音频

视频

MIME 类型扩展名说明
video/mp4 .mp4 MP4 视频
video/webm .webm WebM 视频
video/ogg .ogv OGG 视频
video/quicktime .mov QuickTime
video/x-msvideo .avi AVI 视频

应用

MIME 类型扩展名说明
application/json .json JSON 数据
application/pdf .pdf PDF 文档
application/zip .zip ZIP 压缩包
application/gzip .gz .tar.gz GZip 压缩包
application/x-7z-compressed .7z 7-Zip
application/x-rar-compressed .rar RAR 压缩包
application/msword .doc Word 文档
application/vnd.openxmlformats-officedocument.wordprocessingml.document .docx Word 文档
application/vnd.ms-excel .xls Excel 表格
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx Excel 表格
application/vnd.ms-powerpoint .ppt PowerPoint
application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx PowerPoint
application/xml .xml XML
application/octet-stream .bin 二进制数据
application/wasm .wasm WebAssembly

字体

MIME 类型扩展名说明
font/woff .woff WOFF
font/woff2 .woff2 WOFF2
font/ttf .ttf TrueType
font/otf .otf OpenType