Check a file's real MIME type
Drop any file to read its first bytes and identify the format. The file is read in your browser and is not uploaded.
Drop files here, or click to browse
Any file type, up to 50 at once. Only the first 4 KB of each is read.
| Extension | MIME type | Group | Server config |
|---|---|---|---|
| .txt | text/plain | Text | |
| .log | text/plain | Text | |
| .html | text/html | Text | |
| .htm | text/html | Text | |
| .css | text/css | Text | |
| .js | text/javascript | Text | |
| .mjs | text/javascript | Text | |
| .cjs | text/javascript | Text | |
| .csv | text/csv | Text | |
| .tsv | text/tab-separated-values | Text | |
| .md | text/markdown | Text | |
| .markdown | text/markdown | Text | |
| .ics | text/calendar | Text | |
| .vcf | text/vcard | Text | |
| .vtt | text/vtt | Text | |
| .xhtml | application/xhtml+xml | Text | |
| .jpg | image/jpeg | Image | |
| .jpeg | image/jpeg | Image | |
| .png | image/png | Image | |
| .apng | image/apng | Image | |
| .gif | image/gif | Image | |
| .webp | image/webp | Image | |
| .avif | image/avif | Image | |
| .svg | image/svg+xml | Image | |
| .ico | image/vnd.microsoft.icon | Image | |
| .heic | image/heic | Image | |
| .heif | image/heif | Image | |
| .bmp | image/bmp | Image | |
| .tif | image/tiff | Image | |
| .tiff | image/tiff | Image | |
| .jxl | image/jxl | Image | |
| .psd | image/vnd.adobe.photoshop | Image | |
| .mp3 | audio/mpeg | Audio | |
| .wav | audio/wav | Audio | |
| .ogg | audio/ogg | Audio | |
| .oga | audio/ogg | Audio | |
| .opus | audio/ogg | Audio | |
| .aac | audio/aac | Audio | |
| .flac | audio/flac | Audio | |
| .m4a | audio/mp4 | Audio | |
| .weba | audio/webm | Audio | |
| .mid | audio/midi | Audio | |
| .midi | audio/midi | Audio | |
| .mp4 | video/mp4 | Video | |
| .webm | video/webm | Video | |
| .mov | video/quicktime | Video | |
| .mkv | video/x-matroska | Video | |
| .avi | video/x-msvideo | Video | |
| .mpeg | video/mpeg | Video | |
| .mpg | video/mpeg | Video | |
| .ogv | video/ogg | Video | |
| .3gp | video/3gpp | Video | |
| .ts | video/mp2t | Video | |
| .flv | video/x-flv | Video | |
| .wmv | video/x-ms-wmv | Video | |
| application/pdf | Document | ||
| .doc | application/msword | Document | |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Document | |
| .xls | application/vnd.ms-excel | Document | |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Document | |
| .ppt | application/vnd.ms-powerpoint | Document | |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | Document | |
| .odt | application/vnd.oasis.opendocument.text | Document | |
| .ods | application/vnd.oasis.opendocument.spreadsheet | Document | |
| .odp | application/vnd.oasis.opendocument.presentation | Document | |
| .rtf | application/rtf | Document | |
| .epub | application/epub+zip | Document | |
| .ps | application/postscript | Document | |
| .eps | application/postscript | Document | |
| .eml | message/rfc822 | Document | |
| .json | application/json | Data | |
| .jsonld | application/ld+json | Data | |
| .geojson | application/geo+json | Data | |
| .webmanifest | application/manifest+json | Data | |
| .ndjson | application/x-ndjson | Data | |
| .xml | application/xml | Data | |
| .rss | application/rss+xml | Data | |
| .atom | application/atom+xml | Data | |
| .yaml | application/yaml | Data | |
| .yml | application/yaml | Data | |
| .toml | application/toml | Data | |
| .sql | application/sql | Data | |
| .zip | application/zip | Archive | |
| .tar | application/x-tar | Archive | |
| .gz | application/gzip | Archive | |
| .tgz | application/gzip | Archive | |
| .bz2 | application/x-bzip2 | Archive | |
| .xz | application/x-xz | Archive | |
| .zst | application/zstd | Archive | |
| .7z | application/x-7z-compressed | Archive | |
| .rar | application/vnd.rar | Archive | |
| .jar | application/java-archive | Archive | |
| .apk | application/vnd.android.package-archive | Archive | |
| .dmg | application/x-apple-diskimage | Archive | |
| .iso | application/x-iso9660-image | Archive | |
| .woff | font/woff | Font | |
| .woff2 | font/woff2 | Font | |
| .ttf | font/ttf | Font | |
| .otf | font/otf | Font | |
| .eot | application/vnd.ms-fontobject | Font | |
| .bin | application/octet-stream | Binary | |
| .wasm | application/wasm | Binary | |
| .exe | application/vnd.microsoft.portable-executable | Binary | |
| .dll | application/vnd.microsoft.portable-executable | Binary | |
| .torrent | application/x-bittorrent | Binary | |
| .shtml | text/html | Text | |
| .jsx | text/jsx | Text | |
| .less | text/less | Text | |
| .scss | text/x-scss | Text | |
| .sass | text/x-sass | Text | |
| .coffee | text/coffeescript | Text | |
| .java | text/x-java-source | Text | |
| .c | text/x-c | Text | |
| .h | text/x-c | Text | |
| .cpp | text/x-c | Text | |
| .cc | text/x-c | Text | |
| .hpp | text/x-c | Text | |
| .php | application/x-httpd-php | Text | |
| .sh | application/x-sh | Text | |
| .pl | application/x-perl | Text | |
| .appcache | text/cache-manifest | Text | |
| .srt | application/x-subrip | Text | |
| .ttl | text/turtle | Text | |
| .n3 | text/n3 | Text | |
| .opml | text/x-opml | Text | |
| .rtx | text/richtext | Text | |
| .sgml | text/sgml | Text | |
| .jpe | image/jpeg | Image | |
| .jfif | image/jpeg | Image | |
| .svgz | image/svg+xml | Image | |
| .cur | image/x-icon | Image | |
| .jp2 | image/jp2 | Image | |
| .jpx | image/jpx | Image | |
| .heics | image/heic-sequence | Image | |
| .heifs | image/heif-sequence | Image | |
| .tga | image/x-tga | Image | |
| .pcx | image/x-pcx | Image | |
| .xcf | image/x-xcf | Image | |
| .ktx | image/ktx | Image | |
| .ktx2 | image/ktx2 | Image | |
| .dds | image/vnd.ms-dds | Image | |
| .wbmp | image/vnd.wap.wbmp | Image | |
| .djvu | image/vnd.djvu | Image | |
| .djv | image/vnd.djvu | Image | |
| .emf | image/emf | Image | |
| .wmf | image/wmf | Image | |
| .dng | image/x-adobe-dng | Image | |
| .cr2 | image/x-canon-cr2 | Image | |
| .nef | image/x-nikon-nef | Image | |
| .ai | application/postscript | Image | |
| .aif | audio/x-aiff | Audio | |
| .aiff | audio/x-aiff | Audio | |
| .aifc | audio/x-aiff | Audio | |
| .caf | audio/x-caf | Audio | |
| .amr | audio/amr | Audio | |
| .mka | audio/x-matroska | Audio | |
| .wma | audio/x-ms-wma | Audio | |
| .au | audio/basic | Audio | |
| .snd | audio/basic | Audio | |
| .mp2 | audio/mpeg | Audio | |
| .mpga | audio/mpeg | Audio | |
| .spx | audio/ogg | Audio | |
| .m3u | audio/x-mpegurl | Audio | |
| .pls | audio/x-scpls | Audio | |
| .ra | audio/x-pn-realaudio | Audio | |
| .ram | audio/x-pn-realaudio | Audio | |
| .m4v | video/x-m4v | Video | |
| .mpe | video/mpeg | Video | |
| .m2ts | video/mp2t | Video | |
| .mts | video/mp2t | Video | |
| .3g2 | video/3gpp2 | Video | |
| .f4v | video/x-f4v | Video | |
| .asf | video/x-ms-asf | Video | |
| .qt | video/quicktime | Video | |
| .h264 | video/h264 | Video | |
| .m3u8 | application/vnd.apple.mpegurl | Video | |
| .mpd | application/dash+xml | Video | |
| .docm | application/vnd.ms-word.document.macroEnabled.12 | Document | |
| .dotx | application/vnd.openxmlformats-officedocument.wordprocessingml.template | Document | |
| .xlsm | application/vnd.ms-excel.sheet.macroEnabled.12 | Document | |
| .xlsb | application/vnd.ms-excel.sheet.binary.macroEnabled.12 | Document | |
| .xltx | application/vnd.openxmlformats-officedocument.spreadsheetml.template | Document | |
| .pptm | application/vnd.ms-powerpoint.presentation.macroEnabled.12 | Document | |
| .ppsx | application/vnd.openxmlformats-officedocument.presentationml.slideshow | Document | |
| .potx | application/vnd.openxmlformats-officedocument.presentationml.template | Document | |
| .odg | application/vnd.oasis.opendocument.graphics | Document | |
| .odf | application/vnd.oasis.opendocument.formula | Document | |
| .odb | application/vnd.oasis.opendocument.database | Document | |
| .ott | application/vnd.oasis.opendocument.text-template | Document | |
| .pages | application/vnd.apple.pages | Document | |
| .numbers | application/vnd.apple.numbers | Document | |
| .key | application/vnd.apple.keynote | Document | |
| .xps | application/vnd.ms-xpsdocument | Document | |
| .oxps | application/oxps | Document | |
| .mobi | application/x-mobipocket-ebook | Document | |
| .azw | application/vnd.amazon.ebook | Document | |
| .cbz | application/vnd.comicbook+zip | Document | |
| .cbr | application/vnd.comicbook-rar | Document | |
| .tex | application/x-tex | Document | |
| .latex | application/x-latex | Document | |
| .msg | application/vnd.ms-outlook | Document | |
| .mbox | application/mbox | Document | |
| .vsd | application/vnd.visio | Document | |
| .pub | application/x-mspublisher | Document | |
| .one | application/onenote | Document | |
| .wpd | application/vnd.wordperfect | Document | |
| .map | application/json | Data | |
| .xsd | application/xml | Data | |
| .xsl | application/xml | Data | |
| .xslt | application/xslt+xml | Data | |
| .dtd | application/xml-dtd | Data | |
| .wsdl | application/wsdl+xml | Data | |
| .rdf | application/rdf+xml | Data | |
| .xspf | application/xspf+xml | Data | |
| .xlf | application/x-xliff+xml | Data | |
| .gpx | application/gpx+xml | Data | |
| .kml | application/vnd.google-earth.kml+xml | Data | |
| .kmz | application/vnd.google-earth.kmz | Data | |
| .nt | application/n-triples | Data | |
| .cbor | application/cbor | Data | |
| .parquet | application/vnd.apache.parquet | Data | |
| .sqlite | application/vnd.sqlite3 | Data | |
| .sqlite3 | application/vnd.sqlite3 | Data | |
| .mdb | application/x-msaccess | Data | |
| .pac | application/x-ns-proxy-autoconfig | Data | |
| .bz | application/x-bzip | Archive | |
| .lz | application/x-lzip | Archive | |
| .lzma | application/x-lzma | Archive | |
| .z | application/x-compress | Archive | |
| .cab | application/vnd.ms-cab-compressed | Archive | |
| .deb | application/vnd.debian.binary-package | Archive | |
| .rpm | application/x-rpm | Archive | |
| .xpi | application/x-xpinstall | Archive | |
| .crx | application/x-chrome-extension | Archive | |
| .war | application/java-archive | Archive | |
| .ear | application/java-archive | Archive | |
| .msi | application/x-msdownload | Archive | |
| .ttc | font/collection | Font | |
| .otc | font/collection | Font | |
| .pfb | application/x-font-type1 | Font | |
| .class | application/java-vm | Binary | |
| .swf | application/x-shockwave-flash | Binary | |
| .glb | model/gltf-binary | 3D and CAD | |
| .gltf | model/gltf+json | 3D and CAD | |
| .obj | model/obj | 3D and CAD | |
| .stl | model/stl | 3D and CAD | |
| .3mf | model/3mf | 3D and CAD | |
| .usdz | model/vnd.usdz+zip | 3D and CAD | |
| .dae | model/vnd.collada+xml | 3D and CAD | |
| .step | model/step | 3D and CAD | |
| .stp | model/step | 3D and CAD | |
| .iges | model/iges | 3D and CAD | |
| .igs | model/iges | 3D and CAD | |
| .dwg | image/vnd.dwg | 3D and CAD | |
| .dxf | image/vnd.dxf | 3D and CAD | |
| .pem | application/x-pem-file | Security | |
| .cer | application/pkix-cert | Security | |
| .crt | application/x-x509-ca-cert | Security | |
| .der | application/x-x509-ca-cert | Security | |
| .p12 | application/x-pkcs12 | Security | |
| .pfx | application/x-pkcs12 | Security | |
| .csr | application/pkcs10 | Security | |
| .p7b | application/x-pkcs7-certificates | Security | |
| .sig | application/pgp-signature | Security | |
| .asc | application/pgp-signature | Security | |
| .gpg | application/pgp-encrypted | Security | |
| .pgp | application/pgp-encrypted | Security |
How to use
Search or filter the list
Type an extension such as .webp or part of a MIME type such as image/ in the search box, or press a group such as Font or Security. The counter shows how many rows match.
Or drop files to check them
Drop up to 50 files on the checker, or click it to browse. Only the first 4 KB of each is read. You get the detected type, how it was identified and a warning if the extension disagrees.
Copy or export
Press Copy next to a type, nginx or Apache for a ready config line, or Copy header in the checker. Download the current group as JSON, CSV, nginx types or Apache AddType.
Why MIME Type Lookup
- 267 extensions in 11 groups, including 3D and CAD formats and certificates.
- Signature-based file checks for up to 50 files at once, so renamed files are caught.
- One-click nginx and Apache lines, and whole-list exports for server configs.
- Search by MIME type to find every extension that uses it.
Common MIME types quick reference
These are the types most web projects need. The full searchable list below the checker has the rest.
Types are case-insensitive but almost always written in lowercase. Parameters follow a semicolon, as in text/html; charset=utf-8. Newer image formats such as AVIF and JPEG XL can be missing from older server type lists, so check them first when images download instead of displaying. The same applies to .webmanifest and .wasm files, which some servers still send as generic binary data.
| Extension | MIME type |
|---|---|
| .html | text/html |
| .css | text/css |
| .js, .mjs | text/javascript |
| .json | application/json |
| .xml | application/xml |
| .txt | text/plain |
| .csv | text/csv |
| application/pdf | |
| .zip | application/zip |
| .jpg, .jpeg | image/jpeg |
| .png | image/png |
| .gif | image/gif |
| .webp | image/webp |
| .avif | image/avif |
| .svg | image/svg+xml |
| .ico | image/vnd.microsoft.icon |
| .mp4 | video/mp4 |
| .webm | video/webm |
| .mp3 | audio/mpeg |
| .woff2 | font/woff2 |
Setting Content-Type correctly
A wrong Content-Type can stop a stylesheet or script from loading, make a download open as text, or let a browser guess the type in unsafe ways. Most web servers pick the type from the file extension, so problems usually come from an extension missing from the server's list.
- nginx reads types from its mime.types file. Add missing ones in a types block, for example image/avif avif;. The nginx types download builds that block for you.
- Apache uses the AddType directive, for example AddType image/webp .webp in the config or an .htaccess file.
- Add a charset to text types, such as text/html; charset=utf-8, so browsers do not have to guess the encoding.
- Send X-Content-Type-Options: nosniff so browsers trust your type instead of sniffing. With it, scripts and stylesheets served with the wrong type are blocked.
- For JSON APIs, send application/json. Avoid text/json, which was never a registered type.