MIME 类型查询
通过文件扩展名搜索和查询常见 MIME 类型。按分类筛选。
125 个类型
| 扩展名 | MIME 类型 | 分类 |
|---|---|---|
| .html | text/html | 文本 |
| .htm | text/html | 文本 |
| .css | text/css | 文本 |
| .js | text/javascript | 文本 |
| .json | application/json | 文本 |
| .xml | text/xml | 文本 |
| .txt | text/plain | 文本 |
| .csv | text/csv | 文本 |
| .tsv | text/tab-separated-values | 文本 |
| .md | text/markdown | 文本 |
| .markdown | text/markdown | 文本 |
| .yaml | text/yaml | 文本 |
| .yml | text/yaml | 文本 |
| .sql | text/x-sql | 文本 |
| .ini | text/plain | 文本 |
| .cfg | text/plain | 文本 |
| .log | text/plain | 文本 |
| .svg | image/svg+xml | 文本 |
| .xhtml | application/xhtml+xml | 文本 |
| .rtf | application/rtf | 文本 |
| .tex | application/x-tex | 文本 |
| .latex | application/x-latex | 文本 |
| .vtt | text/vtt | 文本 |
| .srt | text/srt | 文本 |
| .toml | text/toml | 文本 |
| .env | text/plain | 文本 |
| .jpg | image/jpeg | 图像 |
| .jpeg | image/jpeg | 图像 |
| .png | image/png | 图像 |
| .gif | image/gif | 图像 |
| .webp | image/webp | 图像 |
| .bmp | image/bmp | 图像 |
| .ico | image/x-icon | 图像 |
| .tiff | image/tiff | 图像 |
| .tif | image/tiff | 图像 |
| .avif | image/avif | 图像 |
| .heic | image/heic | 图像 |
| .heif | image/heif | 图像 |
| .jxl | image/jxl | 图像 |
| .apng | image/apng | 图像 |
| .raw | image/x-raw | 图像 |
| .psd | image/vnd.adobe.photoshop | 图像 |
| .mp3 | audio/mpeg | 音频 |
| .wav | audio/wav | 音频 |
| .ogg | audio/ogg | 音频 |
| .flac | audio/flac | 音频 |
| .aac | audio/aac | 音频 |
| .wma | audio/x-ms-wma | 音频 |
| .m4a | audio/mp4 | 音频 |
| .opus | audio/opus | 音频 |
| .mid | audio/midi | 音频 |
| .midi | audio/midi | 音频 |
| .aiff | audio/aiff | 音频 |
| .mp4 | video/mp4 | 视频 |
| .webm | video/webm | 视频 |
| .avi | video/x-msvideo | 视频 |
| .mov | video/quicktime | 视频 |
| .mkv | video/x-matroska | 视频 |
| .flv | video/x-flv | 视频 |
| .wmv | video/x-ms-wmv | 视频 |
| .m4v | video/mp4 | 视频 |
| .3gp | video/3gpp | 视频 |
| .ogv | video/ogg | 视频 |
| .ts | video/mp2t | 视频 |
| .m3u8 | application/x-mpegURL | 视频 |
| application/pdf | 应用 | |
| .zip | application/zip | 应用 |
| .rar | application/x-rar-compressed | 应用 |
| .7z | application/x-7z-compressed | 应用 |
| .tar | application/x-tar | 应用 |
| .gz | application/gzip | 应用 |
| .bz2 | application/x-bzip2 | 应用 |
| .xz | application/x-xz | 应用 |
| .doc | application/msword | 应用 |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | 应用 |
| .xls | application/vnd.ms-excel | 应用 |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | 应用 |
| .ppt | application/vnd.ms-powerpoint | 应用 |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | 应用 |
| .exe | application/x-msdownload | 应用 |
| .dmg | application/x-apple-diskimage | 应用 |
| .iso | application/x-iso9660-image | 应用 |
| .apk | application/vnd.android.package-archive | 应用 |
| .ipa | application/x-iphone | 应用 |
| .deb | application/x-deb | 应用 |
| .rpm | application/x-rpm | 应用 |
| .odt | application/vnd.oasis.opendocument.text | 应用 |
| .ods | application/vnd.oasis.opendocument.spreadsheet | 应用 |
| .odp | application/vnd.oasis.opendocument.presentation | 应用 |
| .jar | application/java-archive | 应用 |
| .war | application/java-archive | 应用 |
| .eot | application/vnd.ms-fontobject | 应用 |
| .woff | font/woff | 应用 |
| .woff2 | font/woff2 | 应用 |
| .ttf | font/ttf | 应用 |
| .otf | font/otf | 应用 |
| .sh | application/x-sh | 应用 |
| .py | text/x-python | 应用 |
| .java | text/x-java-source | 应用 |
| .cpp | text/x-c++src | 应用 |
| .c | text/x-c | 应用 |
| .h | text/x-c | 应用 |
| .php | application/x-httpd-php | 应用 |
| .rb | text/x-ruby | 应用 |
| .go | text/x-go | 应用 |
| .rs | text/x-rustsrc | 应用 |
| .swift | text/x-swift | 应用 |
| .ts | text/typescript | 应用 |
| .tsx | text/typescript | 应用 |
| .jsx | text/jaxn | 应用 |
| .bat | application/x-msdos-program | 应用 |
| .ps1 | application/x-powershell | 应用 |
| .pem | application/x-pem-file | 应用 |
| .crt | application/x-x509-ca-cert | 应用 |
| .key | application/x-pem-file | 应用 |
| .p12 | application/x-pkcs12 | 应用 |
| .cer | application/x-x509-ca-cert | 应用 |
| .der | application/x-x509-ca-cert | 应用 |
| .sqlite | application/x-sqlite3 | 应用 |
| .db | application/x-sqlite3 | 应用 |
| .wasm | application/wasm | 应用 |
| .graphql | application/graphql | 应用 |
| .gql | application/graphql | 应用 |
| .mjs | text/javascript | 应用 |
| .cjs | text/javascript | 应用 |
🐛
报告问题 / 提出建议
发现 Bug 或有建议?帮助我们改进这个工具。
这是什么工具?
MIME(多用途互联网邮件扩展)类型查询工具将文件扩展名映射到相应的 MIME 类型。MIME 类型告诉浏览器和服务器如何处理不同的文件格式。涵盖常见类型如 text/html、image/jpeg、application/json 等 500 多种。Web 开发、API 内容类型头和文件处理必备。
如何使用
- 1
搜索
输入文件扩展名或 MIME 类型进行搜索。
- 2
查看映射
查看对应的 MIME 类型和文件扩展名。
- 3
查看结果
查看输出。
常见问题
为什么 MIME 类型重要?
MIME 类型决定浏览器如何渲染内容和服务器如何处理文件上传。错误的 MIME 类型导致浏览器下载文件而非显示,或拒绝上传。API 使用带 MIME 类型的 Content-Type 头协商数据格式。安全:浏览器根据 MIME 类型执行不同策略(如对 JSON 的 XSSI 保护)。
有多少MIME类型?
数千种。
如何在 Web 服务器上设置正确的 MIME 类型?
在 Apache 中,在 .htaccess 中使用 AddType 指令(如 AddType application/json .json)。在 Nginx 中,mime.types 文件将扩展名映射到 MIME 类型。在 Node.js/Express 中,使用 mime-types 包或直接设置 Content-Type 头。对于静态文件服务器,大多数框架根据文件扩展名自动检测 MIME 类型。始终使用浏览器开发者工具验证。