MIME Type Lookup
Developer · v1.0.0 · runs fully in the browser, data never leaves your device
| Extension | Content-Type | Notes | |
|---|---|---|---|
| html | text/html; charset=utf-8 | ||
| css | text/css; charset=utf-8 | ||
| js | text/javascript; charset=utf-8 | Servers should set it explicitly instead of relying on sniffing | |
| mjs | text/javascript; charset=utf-8 | ||
| json | application/json; charset=utf-8 | ||
| txt | text/plain; charset=utf-8 | ||
| csv | text/csv; charset=utf-8 | ||
| xml | application/xml | ||
| application/pdf | |||
| png | image/png | ||
| jpg / jpeg | image/jpeg | ||
| gif | image/gif | ||
| webp | image/webp | ||
| svg | image/svg+xml | SVG can contain scripts; treat uploads as untrusted content | |
| ico | image/x-icon | ||
| mp3 | audio/mpeg | ||
| wav | audio/wav | ||
| ogg | audio/ogg | ||
| mp4 | video/mp4 | ||
| webm | video/webm | ||
| woff | font/woff | ||
| woff2 | font/woff2 | ||
| ttf | font/ttf | ||
| zip | application/zip | ||
| gz | application/gzip | ||
| tar | application/x-tar | ||
| wasm | application/wasm | ||
| md | text/markdown; charset=utf-8 | ||
| yaml / yml | application/yaml | ||
| webmanifest | application/manifest+json | ||
| form(urlencoded) | application/x-www-form-urlencoded | Default form encoding | |
| multipart/form-data | multipart/form-data | Required when the form includes file uploads | |
| avif | image/avif | ||
| heic | image/heic | Limited browser encoding support; transcoding before upload is recommended | |
| bmp | image/bmp | ||
| tiff | image/tiff | ||
| flac | audio/flac | ||
| aac | audio/aac | ||
| m4a | audio/mp4 | ||
| mov | video/quicktime | ||
| avi | video/x-msvideo | ||
| 7z | application/x-7z-compressed | ||
| rar | application/vnd.rar | ||
| doc | application/msword | ||
| xls | application/vnd.ms-excel | ||
| docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | ||
| xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | ||
| pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | ||
| epub | application/epub+zip | ||
| rtf | application/rtf | ||
| ndjson / jsonl | application/x-ndjson | ||
| toml | application/toml | ||
| vtt | text/vtt | Video subtitles | |
| sh | text/x-shellscript | ||
| sql | application/sql | ||
| map | application/json; charset=utf-8 | Source map |
Security note: don't rely on browser content sniffing. When accepting uploads, validate the MIME type and extension against an allowlist, and set
Content-Disposition to attachment so SVG/HTML cannot execute as pages.