MIME Type Lookup
Search 120+ MIME types by file extension or content type. Copy the correct Content-Type header value instantly.
Showing 89 of 89 types
| Extension | MIME Type | Copy |
|---|---|---|
| .jpg | image/jpeg | |
| .jpeg | image/jpeg | |
| .png | image/png | |
| .gif | image/gif | |
| .webp | image/webp | |
| .svg | image/svg+xml | |
| .ico | image/x-icon | |
| .avif | image/avif | |
| .bmp | image/bmp | |
| .tiff | image/tiff | |
| .mp4 | video/mp4 | |
| .webm | video/webm | |
| .ogg | video/ogg | |
| .mov | video/quicktime | |
| .avi | video/x-msvideo | |
| .mkv | video/x-matroska | |
| .mp3 | audio/mpeg | |
| .wav | audio/wav | |
| .ogg | audio/ogg | |
| .flac | audio/flac | |
| .aac | audio/aac | |
| .m4a | audio/x-m4a | |
| .opus | audio/opus | |
| .html | text/html | |
| .htm | text/html | |
| .css | text/css | |
| .js | text/javascript | |
| .mjs | text/javascript | |
| .ts | text/typescript | |
| .txt | text/plain | |
| .csv | text/csv | |
| .xml | text/xml | |
| .md | text/markdown | |
| .yaml | text/yaml | |
| .yml | text/yaml | |
| .ics | text/calendar | |
| .vcf | text/vcard | |
| .py | text/x-python | |
| .rb | text/x-ruby | |
| .go | text/x-go | |
| .rs | text/x-rust | |
| .java | text/x-java-source | |
| .c | text/x-c | |
| .cpp | text/x-c++ | |
| .swift | text/x-swift | |
| .kt | text/x-kotlin | |
| .patch | text/x-patch | |
| .diff | text/x-diff | |
| .json | application/json | |
| .jsonl | application/jsonlines | |
| application/pdf | ||
| .zip | application/zip | |
| .tar | application/x-tar | |
| .gz | application/gzip | |
| .br | application/x-brotli | |
| .wasm | application/wasm | |
| .bin | application/octet-stream | |
| .exe | application/octet-stream | |
| .dmg | application/x-apple-diskimage | |
| .apk | application/vnd.android.package-archive | |
| .epub | application/epub+zip | |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | |
| .doc | application/msword | |
| .xls | application/vnd.ms-excel | |
| .ppt | application/vnd.ms-powerpoint | |
| .rtf | application/rtf | |
| .graphql | application/graphql | |
| .proto | application/x-protobuf | |
| .msgpack | application/msgpack | |
| .toml | application/toml | |
| .rss | application/rss+xml | |
| .atom | application/atom+xml | |
| .rar | application/x-rar-compressed | |
| .7z | application/x-7z-compressed | |
| .sh | application/x-sh | |
| .php | application/x-httpd-php | |
| .sql | application/sql | |
| .map | application/json | |
| .webmanifest | application/manifest+json | |
| .geojson | application/geo+json | |
| .ndjson | application/x-ndjson | |
| .har | application/json | |
| .woff | font/woff | |
| .woff2 | font/woff2 | |
| .ttf | font/ttf | |
| .otf | font/otf | |
| .eot | application/vnd.ms-fontobject |
The Copy Header button copies the full Content-Type: ... header value, including charset=utf-8 for text-based types.
Frequently Asked Questions
What is a MIME type?
A MIME type (Multipurpose Internet Mail Extensions) is a standard identifier used to specify the nature and format of a file. Web servers include a Content-Type header in HTTP responses so browsers know how to handle the data — whether to render it as HTML, display it as an image, play it as audio, or prompt a download.
How do I set Content-Type in HTTP headers?
In a Node.js/Express server, use res.setHeader('Content-Type', 'application/json'). In nginx, set default_type or use the types block. In Next.js API routes, use response.headers.set('Content-Type', ...). Click the 'Copy Header' button next to any MIME type for the exact header string.
What MIME type should I use for JSON APIs?
Use application/json for REST APIs returning JSON data. You can optionally add charset=utf-8 (e.g., application/json; charset=utf-8), though it is technically redundant for JSON as RFC 8259 mandates UTF-8.
What is application/octet-stream used for?
application/octet-stream is the default MIME type for arbitrary binary data. Browsers treat it as a download rather than trying to render it. It is used for executable files, compiled binaries, and any file format that does not have a more specific MIME type.
Why does my browser not recognize a file type?
Browsers rely on the Content-Type header from the server, not just the file extension. If your server sends the wrong MIME type (or none at all), the browser may refuse to render the file or handle it incorrectly. Always set the Content-Type header explicitly on your server for important file types.