关于 MIME 类型查询
MIME 类型查询工具基于 mime-types 库,提供两个方向的查询:MIME 类型 → 文件扩展名(如 application/pdf → .pdf)、文件扩展名 → MIME 类型。同时内置常用 MIME 类型的完整对照表,支持搜索过滤。
在线 MIME 类型与文件扩展名对照查询工具,支持双向搜索与完整对照表。
查找与某个 MIME 类型关联的文件扩展名
查找与某个文件扩展名关联的 MIME 类型
| MIME 类型 | 扩展名 | |
|---|---|---|
application/atom+xml | .atom | |
application/epub+zip | .epub | |
application/gzip | .gz | |
application/java-archive | .jar | |
application/json | .json | |
application/ld+json | .jsonld | |
application/msword | .doc | |
application/node | .cjs | |
application/octet-stream | .bin | |
application/ogg | .ogx | |
application/pdf | .pdf | |
application/rss+xml | .rss | |
application/rtf | .rtf | |
application/vnd.amazon.ebook | .azw | |
application/vnd.android.package-archive | .apk | |
application/vnd.apple.installer+xml | .mpkg | |
application/vnd.mozilla.xul+xml | .xul | |
application/vnd.ms-excel | .xls | |
application/vnd.ms-fontobject | .eot | |
application/vnd.ms-powerpoint | .ppt | |
application/vnd.oasis.opendocument.presentation | .odp | |
application/vnd.oasis.opendocument.spreadsheet | .ods | |
application/vnd.oasis.opendocument.text | .odt | |
application/vnd.openxmlformats-officedocument.presentationml.presentation | .pptx | |
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | .xlsx | |
application/vnd.openxmlformats-officedocument.wordprocessingml.document | .docx | |
application/vnd.rar | .rar | |
application/vnd.visio | .vsd | |
application/wasm | .wasm | |
application/x-7z-compressed | .7z | |
application/x-abiword | .abw | |
application/x-bzip | .bz | |
application/x-bzip2 | .bz2 | |
application/x-csh | .csh | |
application/x-freearc | .arc | |
application/x-httpd-php | .php | |
application/x-msdos-program | .exe | |
application/x-sh | .sh | |
application/x-shockwave-flash | .swf | |
application/x-tar | .tar | |
application/xhtml+xml | .xhtml | |
application/xml | .xml | |
application/zip | .zip | |
audio/aac | .aac | |
audio/midi | .mid | |
audio/mp4 | .m4a | |
audio/mpeg | .mp3 | |
audio/ogg | .oga | |
audio/wav | .wav | |
audio/webm | .weba | |
audio/x-flac | .flac | |
font/otf | .otf | |
font/ttf | .ttf | |
font/woff | .woff | |
font/woff2 | .woff2 | |
image/avif | .avif | |
image/bmp | .bmp | |
image/gif | .gif | |
image/heic | .heic | |
image/heif | .heif | |
image/jpeg | .jpeg | |
image/png | .png | |
image/svg+xml | .svg | |
image/tiff | .tif | |
image/vnd.microsoft.icon | .ico | |
image/webp | .webp | |
text/calendar | .ics | |
text/css | .css | |
text/csv | .csv | |
text/html | .htm | |
text/javascript | .js | |
text/markdown | .md | |
text/plain | .txt | |
text/yaml | .yaml | |
video/3gpp | .3gp | |
video/3gpp2 | .3g2 | |
video/mp2t | .ts | |
video/mp4 | .mp4 | |
video/mpeg | .mpeg | |
video/ogg | .ogv | |
video/quicktime | .mov | |
video/webm | .webm | |
video/x-m4v | .m4v | |
video/x-msvideo | .avi |
MIME 类型查询工具基于 mime-types 库,提供两个方向的查询:MIME 类型 → 文件扩展名(如 application/pdf → .pdf)、文件扩展名 → MIME 类型。同时内置常用 MIME 类型的完整对照表,支持搜索过滤。
MIME(Multipurpose Internet Mail Extensions)类型是互联网标准,用于标识文件的格式和性质。Web 服务器通过 Content-Type 头告诉浏览器资源的 MIME 类型(如 text/html、image/png、application/json),浏览器据此决定如何处理资源。
Nginx 可在 mime.types 文件中配置;Apache 通过 AddType 指令;Node.js Express 使用 express.static() 自动设置;Cloudflare Pages/Workers 可自定义 _headers 文件。正确设置 MIME 类型对浏览器安全策略(如拒绝执行 text/plain 中的脚本)至关重要。
同一扩展名在不同历史阶段或不同操作系统中可能对应不同 MIME 类型。例如 .js 对应 text/javascript(传统)和 application/javascript(RFC 标准),.csv 可能是 text/csv 或 application/csv。本工具使用 mime-types 库的权威映射。