Extension ↔ MIME type mapping for HTTP headers and configs.
| Extension | MIME type | |
|---|---|---|
| .aac | audio/aac | |
| .avi | video/x-msvideo | |
| .bin | application/octet-stream | |
| .bmp | image/bmp | |
| .bz2 | application/x-bzip2 | |
| .css | text/css | |
| .csv | text/csv | |
| .doc | application/msword | |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | |
| .eot | application/vnd.ms-fontobject | |
| .epub | application/epub+zip | |
| .gif | image/gif | |
| .gz | application/gzip | |
| .htm/.html | text/html | |
| .ico | image/vnd.microsoft.icon | |
| .ics | text/calendar | |
| .jar | application/java-archive | |
| .jpeg/.jpg | image/jpeg | |
| .js | text/javascript | |
| .json | application/json | |
| .jsonld | application/ld+json | |
| .mjs | text/javascript | |
| .mp3 | audio/mpeg | |
| .mp4 | video/mp4 | |
| .mpeg | video/mpeg | |
| .odp | application/vnd.oasis.opendocument.presentation | |
| .ods | application/vnd.oasis.opendocument.spreadsheet | |
| .odt | application/vnd.oasis.opendocument.text | |
| .oga | audio/ogg | |
| .ogv | video/ogg | |
| .otf | font/otf | |
| .png | image/png | |
| application/pdf | ||
| .rar | application/vnd.rar | |
| .rtf | application/rtf | |
| .svg | image/svg+xml | |
| .tar | application/x-tar | |
| .tif/.tiff | image/tiff | |
| .ts | video/mp2t | |
| .ttf | font/ttf | |
| .txt | text/plain | |
| .wasm | application/wasm | |
| .wav | audio/wav | |
| .weba | audio/webm | |
| .webm | video/webm | |
| .webmanifest | application/manifest+json | |
| .webp | image/webp | |
| .woff | font/woff | |
| .woff2 | font/woff2 | |
| .xhtml | application/xhtml+xml | |
| .xls | application/vnd.ms-excel | |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | |
| .xml | application/xml | |
| .zip | application/zip | |
| .7z | application/x-7z-compressed |
🌐 Common gotchas: .js is now officially text/javascript (not application/javascript), fonts are font/* since 2017, and .webp is image/webp — some old server defaults still get these wrong.
Servers declare Content-Type so browsers know how to render bytes. A wrong value breaks things quietly: stylesheets served as text/plain are refused under strict MIME checking, SVGs download instead of rendering, fonts fail CORS-adjacent validation.
JavaScript is now officially text/javascript (application/javascript was deprecated). Fonts moved to font/* in 2017 (font/woff2). Web app manifests need application/manifest+json exactly.
application/octet-stream forces download rather than display. Use it for binaries users should save; never for PDFs or images you want shown inline.
More tools you might find useful
Convert names between camelCase, snake_case, kebab-case, and more.
Build a reverse proxy nginx server block with SSL and caching.
Enter any two of V, I, R, P and solve the other two instantly.
Paste options, spin, and let chance decide for you.