ประเด็นสำคัญ
- 01Search ตาม file extension (.pdf, .webp) หรือ media type string (application/pdf, image/webp)
- 02Entries sourced จาก IANA media type registry ครอบคลุม image, video, audio, text, application และ font types
- 03Filter ตามกลุ่มเพื่อ quickly browse all MIME types ในหมวดหมู่ที่กำหนด
- 04ทำงานทั้งหมดในเบราว์เซอร์ของคุณ — ไม่มี queries ส่งไปยังเซิร์ฟเวอร์ใดๆ
เหตุใด MIME Types สำคัญสำหรับ Web Development
Content-Type header บอกเบราว์เซอร์หรือ API client ว่ามันรับข้อมูลประเภทใด ได้ผิด และ PDF ดาวน์โหลดแทนการแสดงตัวอย่าง JSON response ถือว่าเป็น plain text หรือรูปภาพล้มเหลวในการแสดงผล การตั้ง MIME type ที่ถูกต้องเป็นรายละเอียดเล็กน้อยที่มี visible user-facing consequences
นอกเหนือเบราว์เซอร์ MIME types ควบคุม upload form filtering (accept="image/*") CDN cache policies email attachment handling และ API response parsing มี reliable reference เป็นสิ่งจำเป็นเมื่อ configuring web server เขียน file upload handler หรือดีบัก download ที่เปิดในแอปพลิเคชันที่ผิด
วิธี Lookup MIME Type
- 01
Search ตาม extension หรือ type
Type file extension (pdf, webp, epub) ด้วยหรือไม่มี leading dot หรือ type media type string (application/pdf, image/webp) ผลลัพธ์ filter ในเวลาจริง
- 02
Filter ตามกลุ่มหากจำเป็น
คลิกปุ่มกลุ่ม — Image, Video, Audio, Text, Application หรือ Font — เพื่อ narrow list ไป single category มีประโยชน์เมื่อคุณต้องการ see all font MIME types หรือ all video types ยังไง
- 03
อ่านรายการ
แต่ละผลลัพธ์แสดง canonical IANA-registered MIME type, file extensions ที่ commonly ใช้มัน และ one-line description ของรูปแบบ
- 04
คัดลอกและใช้
คลิกคัดลอกหรือ manually select MIME type string เพื่อใช้ใน Content-Type header, Accept attribute บน HTML input server configuration หรือ API response
เมื่อใช้ Lookup นี้
- 01Configuring nginx หรือ Apache เพื่อให้ correct Content-Type สำหรับ file format ใหม่
- 02เขียน file upload handler ที่ validate MIME type ของ incoming files
- 03ตั้งค่า accept attribute บน HTML file input เพื่อ restrict uploadable file types
- 04ตอบสนองอย่างถูกต้องจาก API endpoint ที่ return binary files
- 05Debugging PDF ที่ดาวน์โหลดแทนการแสดงตัวอย่าง — ตรวจสอบว่าเซิร์ฟเวอร์ส่ง application/pdf
- 06ค้นหา MIME type ที่ถูกต้องสำหรับ modern image formats เช่น AVIF หรือ HEIC
Sourced จาก IANA, Runs ในเบราว์เซอร์ของคุณ
MIME type database ถูก bundle ด้วยหน้า และ sourced จาก IANA media type registry Searching และ filtering เกิดขึ้นทั้งหมดในเบราว์เซอร์ของคุณ — ไม่มี queries ส่งไปยังเซิร์ฟเวอร์ใดๆ
บางส่วน extensions map ไป multiple valid MIME types ตัวอย่างเช่น .xml map ไป both text/xml และ application/xml text/xml ถูกใช้เมื่อ XML เป็นมนุษย์-readable content; application/xml ชื่นชอบสำหรับ data interchange ใช้สิ่งใดที่ match วิธีการ tooling หรือ client ของคุณจะใช้ไฟล์ Lookup surfaces ทั้งสองเพื่อให้คุณ choose ที่ถูกต้อง สำหรับบริบทของคุณ
MIME Type Lookup FAQ
MIME type สำหรับ PDF file คืออะไร?
application/pdf เป็น canonical, IANA-registered MIME type สำหรับ PDF files
เหตุใด extension ของฉันแสดง multiple MIME types?
บางรูปแบบมี multiple registered types — .xml map ไป text/xml และ application/xml สำหรับตัวอย่าง ใช้อย่างที่ match วิธีการ client หรือ toolchain ของคุณคาดว่าจะใช้ไฟล์
ความแตกต่างระหว่าง font/woff และ application/font-woff คืออะไร?
font/woff คือ modern IANA-registered type สำหรับ WOFF fonts application/font-woff คือ older, legacy type ยังคงเห็นใน some server configurations ชื่นชอบ font/woff สำหรับ new setups
MIME type ที่ฉันควรใช้สำหรับ .heic iPhone photos?
image/heic เป็นประเภทที่ยอมรับได้มากที่สุดสำหรับ HEIC files (HEIF images ใช้ HEVC codec) เซิร์ฟเวอร์บางตัวยังยอมรับ image/heif ซึ่งหมายถึง broader HEIF container format
มี MIME type สำหรับ WebAssembly หรือไม่?
ใช่ — application/wasm เป็น official MIME type สำหรับ .wasm files Web servers ต้องให้บริการ WebAssembly ด้วย type นี้สำหรับเบราว์เซอร์เพื่อ compile มันอย่างมีประสิทธิ