DevToolBox免费
博客

MIME 类型查询

按文件扩展名查找 MIME 类型。免费使用,无需注册。

Common MIME types
.csstext/css
.gifimage/gif
.htmtext/html
.htmltext/html
.icoimage/x-icon
.jpegimage/jpeg
.jpgimage/jpeg
.jsapplication/javascript
.jsonapplication/json
.mdtext/markdown
.mp3audio/mpeg
.mp4video/mp4
.pdfapplication/pdf
.pngimage/png
.svgimage/svg+xml
.ttffont/ttf
.txttext/plain
.webmvideo/webm
.webpimage/webp
.wofffont/woff
.woff2font/woff2
.xmlapplication/xml
.zipapplication/zip
𝕏 Twitterin LinkedIn

评价此工具

4.5 / 5 · 103 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee

How to Use

  1. Enter a file extension (e.g., .svg) or MIME type (e.g., image/svg+xml)
  2. Browse the results showing matching types and extensions
  3. Click on any result to see full details
  4. Copy the MIME type string for use in your code

Common Use Cases

  • Setting correct Content-Type headers in web servers
  • Configuring file upload validation rules
  • Debugging browser file rendering issues
  • Building file type detection in applications

Frequently Asked Questions

What is a MIME type?
A MIME type is a string like 'text/html' or 'image/png' that tells the browser or client how to interpret and display a file. It consists of a type and subtype separated by a slash.
How do I find the MIME type for a file extension?
Type the file extension (e.g., .pdf, .webp) into the search box. The tool will show the corresponding MIME type and category.
What MIME type should I use for JSON?
Use 'application/json' for JSON data. For JSON with a specific schema, you can use vendor types like 'application/vnd.api+json'.