MIME 类型查询
按扩展名查 MIME 类型,或按类型查扩展名,并直接复制 Content-Type 响应头。
仅在浏览器中处理免费使用
两边都能查。
70 条
| MIME 类型 | 扩展名 | 类别 |
|---|---|---|
| text/plain | .txt .log .ini .text | 文本 |
| text/html! | .html .htm | 文本 |
| text/css | .css | 文本 |
| text/csv | .csv | 文本 |
| text/markdown | .md .markdown | 文本 |
| text/calendar | .ics | 文本 |
| text/vcard | .vcf | 文本 |
| application/json | .json | 数据 |
| application/ld+json | .jsonld | 数据 |
| application/xml | .xml | 数据 |
| application/yaml | .yaml .yml | 数据 |
| application/toml | .toml | 数据 |
| application/sql | .sql | 数据 |
| application/x-ndjson | .ndjson .jsonl | 数据 |
| application/vnd.apache.parquet | .parquet | 数据 |
| text/javascript! | .js .mjs .cjs | 文本 |
| application/wasm! | .wasm | 其他 |
| text/x-python | .py | 文本 |
| text/x-java-source | .java | 文本 |
| application/x-sh | .sh .bash | 文本 |
| image/png | .png | 图片 |
| image/jpeg | .jpg .jpeg .jpe | 图片 |
| image/gif | .gif | 图片 |
| image/webp | .webp | 图片 |
| image/avif | .avif | 图片 |
| image/svg+xml! | .svg | 图片 |
| image/heic | .heic | 图片 |
| image/heif | .heif | 图片 |
| image/bmp | .bmp | 图片 |
| image/tiff | .tif .tiff | 图片 |
| image/vnd.microsoft.icon | .ico | 图片 |
| audio/mpeg | .mp3 | 音频 |
| audio/wav | .wav | 音频 |
| audio/ogg | .ogg .oga | 音频 |
| audio/flac | .flac | 音频 |
| audio/aac | .aac | 音频 |
| audio/mp4 | .m4a | 音频 |
| audio/webm | .weba | 音频 |
| video/mp4 | .mp4 .m4v | 视频 |
| video/webm | .webm | 视频 |
| video/quicktime | .mov | 视频 |
| video/x-msvideo | .avi | 视频 |
| video/x-matroska | .mkv | 视频 |
| video/mp2t | .ts | 视频 |
| font/woff2 | .woff2 | 字体 |
| font/woff | .woff | 字体 |
| font/ttf | .ttf | 字体 |
| font/otf | .otf | 字体 |
| application/pdf | 文档 | |
| application/rtf | .rtf | 文档 |
| application/msword | .doc | 文档 |
| application/vnd.openxmlformats-officedocument.wordprocessingml.document | .docx | 文档 |
| application/vnd.ms-excel | .xls | 文档 |
| application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | .xlsx | 文档 |
| application/vnd.ms-powerpoint | .ppt | 文档 |
| application/vnd.openxmlformats-officedocument.presentationml.presentation | .pptx | 文档 |
| application/vnd.oasis.opendocument.text | .odt | 文档 |
| application/vnd.oasis.opendocument.spreadsheet | .ods | 文档 |
| application/epub+zip | .epub | 文档 |
| application/vnd.hancom.hwp | .hwp | 文档 |
| application/hwp+zip | .hwpx | 文档 |
| application/zip | .zip | 压缩包 |
| application/gzip | .gz | 压缩包 |
| application/x-tar | .tar | 压缩包 |
| application/x-7z-compressed | .7z | 压缩包 |
| application/vnd.rar | .rar | 压缩包 |
| application/zstd | .zst | 压缩包 |
| application/octet-stream | .bin .dat | 其他 |
| application/x-www-form-urlencoded | — | 其他 |
| multipart/form-data | — | 其他 |
文件在浏览器本地处理,不会上传到服务器。
使用方法
无需注册、无需安装,也没有使用次数限制,完全免费。
输入扩展名或 MIME 类型,另一侧会一起显示。不用先选模式:带斜杠的按类型处理,其余按扩展名处理。
Content-Type 写错后果很直接。把 PDF 以 application/octet-stream 发出去,浏览器就不显示而是下载;把样式表以 text/plain 发出去,浏览器干脆拒绝应用。
表格标出了浏览器会执行的类型:HTML、JavaScript 和 SVG。如果你把上传的文件按原类型返回,这三种会让一次上传变成在你自己域名下运行的脚本。改用 application/octet-stream 返回,或者换一个独立域名返回,才能挡住。
同一个扩展名在这张表里只对应一个类型。如果 jpg 同时挂在两个类型下,先读到哪一行就会得出不同答案,所以不留这种行。
这份清单只收录 Web 工作中真正会遇到的条目,而不是包含数千条、其中大部分永远用不上的完整 IANA 注册表。
输入的内容不会上传到服务器,查询全部在浏览器本地完成。