MIME 型別參考
簡而言之: 您實際會設定或除錯的內容型別——web、office、media、archive 和 font 格式——按副檔名分類,可在您輸入時篩選。
🔒 按設計保證隱私: 一切都在此裝置上的您的瀏覽器中執行。您的輸入從不上傳到伺服器。
| 副檔名 | MIME 型別 | 用途 |
|---|---|---|
| .html | text/html | 網頁 |
| .css | text/css | 樣式表 |
| .js | text/javascript | JavaScript |
| .json | application/json | JSON 資料 |
| .xml | application/xml | XML 文件 |
| .txt | text/plain | 純文字 |
| .csv | text/csv | 逗號分隔值 |
| .md | text/markdown | Markdown |
| .png | image/png | PNG 影象 |
| .jpg | image/jpeg | JPEG 照片 |
| .gif | image/gif | GIF 影象 |
| .webp | image/webp | WebP 影象 |
| .svg | image/svg+xml | SVG 向量影象 |
| .ico | image/x-icon | 網站圖示(Favicons) |
| .avif | image/avif | AVIF 影象 |
| .mp3 | audio/mpeg | MP3 音訊 |
| .wav | audio/wav | WAV 音訊 |
| .ogg | audio/ogg | Ogg 音訊 |
| .mp4 | video/mp4 | MP4 影片 |
| .webm | video/webm | WebM 影片 |
| .mov | video/quicktime | QuickTime 影片 |
| application/pdf | PDF 文件 | |
| .zip | application/zip | ZIP 歸檔 |
| .tar | application/x-tar | TAR 歸檔 |
| .gz | application/gzip | Gzip 檔案 |
| .7z | application/x-7z-compressed | 7Z 歸檔檔案 |
| .rar | application/vnd.rar | RAR 歸檔 |
| .doc | application/msword | Word(舊版) |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word OOXML |
| .xls | application/vnd.ms-excel | Excel(舊版) |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel OOXML |
| .ppt | application/vnd.ms-powerpoint | PowerPoint(舊版) |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | PowerPoint OOXML |
| .woff | font/woff | Web 字型 |
| .woff2 | font/woff2 | Web 字型 v2 |
| .ttf | font/ttf | TrueType 字型 |
| .otf | font/otf | OpenType 字型 |
| .wasm | application/wasm | WebAssembly |
| .bin | application/octet-stream | 通用二進位制 |
| .form / POST | application/x-www-form-urlencoded | HTML 表單提交 |
| .json API | application/ld+json | JSON-LD 結構化資料 |
關於
MIME 型別(媒體型別)是伺服器告訴瀏覽器一個檔案實際上是什麼的方式——從這張表得到的 Content-Type 標頭正是阻止 .png 被當作文字提供、或下載被嗅探成 HTML(一種 XSS 向量,這正是 X-Content-Type-Options: nosniff 存在的原因)的東西。這張表涵蓋日常 Web 工作的格式。有兩個條目值得記住,它們反覆引發錯誤:JavaScript 是 text/javascript(舊的 application/javascript 已棄用),.svg 是 image/svg+xml——提供方式錯誤,SVG 圖示會悄悄失效。
常見問題
為什麼我的檔案會下載而不是顯示?
伺服器傳送了 application/octet-stream 或錯誤的型別,或 Content-Disposition: attachment。對照此表檢查響應標頭。
副檔名和檔案頭哪個說了算?
標頭——瀏覽器根據 Content-Type 行動(嗅探是 nosniff 禁用的危險回退)。副檔名只對選擇標頭的伺服器重要。