Content-Type对照表
MIME类型Content-Type大全
| Content-Type | 扩展名 | 说明 | 操作 |
|---|---|---|---|
text/html |
html,htm |
HTML文档 | |
text/css |
css |
CSS样式表 | |
text/javascript |
js |
JavaScript | |
text/plain |
txt |
纯文本 | |
text/xml |
xml |
XML文档 | |
text/csv |
csv |
CSV表格 | |
application/json |
json |
JSON数据 | |
application/xml |
xml |
XML数据 | |
application/pdf |
pdf |
PDF文档 | |
application/zip |
zip |
ZIP压缩包 | |
application/x-gzip |
gz |
GZip压缩 | |
application/x-tar |
tar |
TAR打包 | |
application/octet-stream |
bin,exe,dll |
二进制文件(默认下载) | |
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 |
PPT(新版) | |
image/jpeg |
jpg,jpeg |
JPEG图片 | |
image/png |
png |
PNG图片 | |
image/gif |
gif |
GIF图片 | |
image/webp |
webp |
WebP图片 | |
image/svg+xml |
svg |
SVG矢量图 | |
image/x-icon |
ico |
ICO图标 | |
audio/mpeg |
mp3 |
MP3音频 | |
audio/ogg |
ogg |
OGG音频 | |
audio/wav |
wav |
WAV音频 | |
video/mp4 |
mp4 |
MP4视频 | |
video/webm |
webm |
WebM视频 | |
video/ogg |
ogv |
OGV视频 | |
font/woff |
woff |
WOFF字体 | |
font/woff2 |
woff2 |
WOFF2字体 | |
font/ttf |
ttf |
TTF字体 | |
multipart/form-data |
- |
文件上传表单 | |
application/x-www-form-urlencoded |
- |
普通表单提交 |
Content-Type对照表使用说明
Content-Type/MIME类型对照表收录Web开发中常用的MIME类型,包括文本(text/html、text/css)、图片(image/jpeg、image/png)、应用(application/json)等完整列表,支持按扩展名或MIME搜索。
常用MIME类型速查:
- HTML: text/html
- CSS: text/css
- JavaScript: text/javascript
- JSON: application/json
- 图片: image/jpeg、image/png、image/webp
- PDF: application/pdf
适用场景:HTTP响应头Content-Type设置、文件上传类型验证、接口开发、Nginx/Apache配置
常用MIME类型速查:
- HTML: text/html
- CSS: text/css
- JavaScript: text/javascript
- JSON: application/json
- 图片: image/jpeg、image/png、image/webp
- PDF: application/pdf
适用场景:HTTP响应头Content-Type设置、文件上传类型验证、接口开发、Nginx/Apache配置