MIME Type Lookup (File Extension to Content Type)
Look up MIME types by extension and detect file types from magic bytes.
475 types
| Extension | MIME type | Charset | Compress |
|---|---|---|---|
| .html | text/html | UTF-8 | Yes |
| .htm | text/html | UTF-8 | Yes |
| .shtml | text/html | UTF-8 | Yes |
| .xhtml | application/xhtml+xml | UTF-8 | Yes |
| .css | text/css | UTF-8 | Yes |
| .js | text/javascript | UTF-8 | Yes |
| .mjs | text/javascript | UTF-8 | Yes |
| .cjs | text/javascript | UTF-8 | Yes |
| .jsx | text/jsx | UTF-8 | Yes |
| .ts | video/mp2t | No | |
| .tsx | text/tsx | UTF-8 | Yes |
| .json | application/json | UTF-8 | Yes |
| .jsonld | application/ld+json | UTF-8 | Yes |
| .map | application/json | UTF-8 | Yes |
| .webmanifest | application/manifest+json | UTF-8 | Yes |
| .geojson | application/geo+json | UTF-8 | Yes |
| .topojson | application/json | UTF-8 | Yes |
| .har | application/json | UTF-8 | Yes |
| .ndjson | application/x-ndjson | UTF-8 | Yes |
| .jsonl | application/jsonl | UTF-8 | Yes |
| .json5 | application/json5 | UTF-8 | Yes |
| .xml | application/xml | UTF-8 | Yes |
| .xsl | application/xslt+xml | UTF-8 | Yes |
| .xslt | application/xslt+xml | UTF-8 | Yes |
| .xsd | application/xml | UTF-8 | Yes |
| .dtd | application/xml-dtd | UTF-8 | Yes |
| .rss | application/rss+xml | UTF-8 | Yes |
| .atom | application/atom+xml | UTF-8 | Yes |
| .rdf | application/rdf+xml | UTF-8 | Yes |
| .opml | text/x-opml | UTF-8 | Yes |
| .kml | application/vnd.google-earth.kml+xml | UTF-8 | Yes |
| .kmz | application/vnd.google-earth.kmz | No | |
| .gpx | application/gpx+xml | UTF-8 | Yes |
| .txt | text/plain | UTF-8 | Yes |
| .text | text/plain | UTF-8 | Yes |
| .log | text/plain | UTF-8 | Yes |
| .conf | text/plain | UTF-8 | Yes |
| .cfg | text/plain | UTF-8 | Yes |
| .ini | text/plain | UTF-8 | Yes |
| .env | text/plain | UTF-8 | Yes |
| .properties | text/x-java-properties | UTF-8 | Yes |
| .toml | application/toml | UTF-8 | Yes |
| .yaml | application/yaml | UTF-8 | Yes |
| .yml | application/yaml | UTF-8 | Yes |
| .csv | text/csv | UTF-8 | Yes |
| .tsv | text/tab-separated-values | UTF-8 | Yes |
| .md | text/markdown | UTF-8 | Yes |
| .markdown | text/markdown | UTF-8 | Yes |
| .rst | text/x-rst | UTF-8 | Yes |
| .adoc | text/asciidoc | UTF-8 | Yes |
| .tex | application/x-tex | UTF-8 | Yes |
| .latex | application/x-latex | UTF-8 | Yes |
| .bib | text/x-bibtex | UTF-8 | Yes |
| .rtf | application/rtf | UTF-8 | Yes |
| .ics | text/calendar | UTF-8 | Yes |
| .ifb | text/calendar | UTF-8 | Yes |
| .vcf | text/vcard | UTF-8 | Yes |
| .vcard | text/vcard | UTF-8 | Yes |
| .srt | application/x-subrip | UTF-8 | Yes |
| .vtt | text/vtt | UTF-8 | Yes |
| .ass | text/x-ssa | UTF-8 | Yes |
| .sub | text/vnd.dvb.subtitle | UTF-8 | Yes |
| .diff | text/x-diff | UTF-8 | Yes |
| .patch | text/x-diff | UTF-8 | Yes |
| .sh | application/x-sh | UTF-8 | Yes |
| .bash | application/x-sh | UTF-8 | Yes |
| .zsh | text/x-shellscript | UTF-8 | Yes |
| .bat | application/x-msdos-program | UTF-8 | Yes |
| .cmd | application/x-msdos-program | UTF-8 | Yes |
| .ps1 | text/plain | UTF-8 | Yes |
| .py | text/x-python | UTF-8 | Yes |
| .pyc | application/x-python-code | No | |
| .rb | text/x-ruby | UTF-8 | Yes |
| .php | application/x-httpd-php | UTF-8 | Yes |
| .pl | text/x-perl | UTF-8 | Yes |
| .pm | text/x-perl | UTF-8 | Yes |
| .lua | text/x-lua | UTF-8 | Yes |
| .java | text/x-java-source | UTF-8 | Yes |
| .class | application/java-vm | No | |
| .jar | application/java-archive | No | |
| .war | application/java-archive | No | |
| .ear | application/java-archive | No | |
| .jnlp | application/x-java-jnlp-file | UTF-8 | Yes |
| .kt | text/x-kotlin | UTF-8 | Yes |
| .kts | text/x-kotlin | UTF-8 | Yes |
| .scala | text/x-scala | UTF-8 | Yes |
| .groovy | text/x-groovy | UTF-8 | Yes |
| .gradle | text/x-groovy | UTF-8 | Yes |
| .go | text/x-go | UTF-8 | Yes |
| .rs | text/rust | UTF-8 | Yes |
| .c | text/x-c | UTF-8 | Yes |
| .h | text/x-c | UTF-8 | Yes |
| .cc | text/x-c | UTF-8 | Yes |
| .cpp | text/x-c | UTF-8 | Yes |
| .cxx | text/x-c | UTF-8 | Yes |
| .hpp | text/x-c | UTF-8 | Yes |
| .hh | text/x-c | UTF-8 | Yes |
| .m | text/x-objcsrc | UTF-8 | Yes |
| .mm | text/x-objcsrc | UTF-8 | Yes |
| .swift | text/x-swift | UTF-8 | Yes |
| .cs | text/x-csharp | UTF-8 | Yes |
| .vb | text/x-vb | UTF-8 | Yes |
| .fs | text/x-fsharp | UTF-8 | Yes |
| .dart | application/vnd.dart | UTF-8 | Yes |
| .r | text/x-r | UTF-8 | Yes |
| .jl | text/x-julia | UTF-8 | Yes |
| .hs | text/x-haskell | UTF-8 | Yes |
| .ex | text/x-elixir | UTF-8 | Yes |
| .exs | text/x-elixir | UTF-8 | Yes |
| .erl | text/x-erlang | UTF-8 | Yes |
| .clj | text/x-clojure | UTF-8 | Yes |
| .lisp | text/x-common-lisp | UTF-8 | Yes |
| .scm | text/x-scheme | UTF-8 | Yes |
| .ml | text/x-ocaml | UTF-8 | Yes |
| .pas | text/x-pascal | UTF-8 | Yes |
| .asm | text/x-asm | UTF-8 | Yes |
| .s | text/x-asm | UTF-8 | Yes |
| .f90 | text/x-fortran | UTF-8 | Yes |
| .for | text/x-fortran | UTF-8 | Yes |
| .sql | application/sql | UTF-8 | Yes |
| .graphql | application/graphql+json | UTF-8 | Yes |
| .gql | application/graphql+json | UTF-8 | Yes |
| .proto | text/x-protobuf | UTF-8 | Yes |
| .vue | text/x-vue | UTF-8 | Yes |
| .svelte | text/x-svelte | UTF-8 | Yes |
| .scss | text/x-scss | UTF-8 | Yes |
| .sass | text/x-sass | UTF-8 | Yes |
| .less | text/less | UTF-8 | Yes |
| .styl | text/x-styl | UTF-8 | Yes |
| .coffee | text/coffeescript | UTF-8 | Yes |
| .hbs | text/x-handlebars-template | UTF-8 | Yes |
| .mustache | text/x-mustache | UTF-8 | Yes |
| .ejs | text/x-ejs | UTF-8 | Yes |
| .pug | text/x-pug | UTF-8 | Yes |
| .twig | text/x-twig | UTF-8 | Yes |
| .jsp | application/jsp | UTF-8 | Yes |
| .asp | text/asp | UTF-8 | Yes |
| .aspx | text/asp | UTF-8 | Yes |
| .cshtml | text/x-cshtml | UTF-8 | Yes |
| .wasm | application/wasm | Yes | |
| .wat | text/plain | UTF-8 | Yes |
| .htc | text/x-component | UTF-8 | Yes |
| .appcache | text/cache-manifest | UTF-8 | Yes |
| .manifest | text/cache-manifest | UTF-8 | Yes |
| .mf | text/plain | UTF-8 | Yes |
| .lock | text/plain | UTF-8 | Yes |
| .dockerfile | text/plain | UTF-8 | Yes |
| .makefile | text/x-makefile | UTF-8 | Yes |
| .cmake | text/x-cmake | UTF-8 | Yes |
| .png | image/png | No | |
| .apng | image/apng | No | |
| .jpg | image/jpeg | No | |
| .jpeg | image/jpeg | No | |
| .jpe | image/jpeg | No | |
| .jfif | image/jpeg | No | |
| .pjpeg | image/jpeg | No | |
| .gif | image/gif | No | |
| .webp | image/webp | No | |
| .avif | image/avif | No | |
| .heic | image/heic | No | |
| .heif | image/heif | No | |
| .jxl | image/jxl | No | |
| .jp2 | image/jp2 | No | |
| .jpx | image/jpx | No | |
| .j2k | image/jp2 | No | |
| .svg | image/svg+xml | UTF-8 | Yes |
| .svgz | image/svg+xml | No | |
| .ico | image/vnd.microsoft.icon | Yes | |
| .cur | image/x-icon | Yes | |
| .bmp | image/bmp | Yes | |
| .dib | image/bmp | Yes | |
| .tif | image/tiff | Yes | |
| .tiff | image/tiff | Yes | |
| .psd | image/vnd.adobe.photoshop | Yes | |
| .xcf | image/x-xcf | Yes | |
| .ai | application/postscript | Yes | |
| .eps | application/postscript | Yes | |
| .ps | application/postscript | Yes | |
| .dng | image/x-adobe-dng | No | |
| .cr2 | image/x-canon-cr2 | No | |
| .cr3 | image/x-canon-cr3 | No | |
| .nef | image/x-nikon-nef | No | |
| .arw | image/x-sony-arw | No | |
| .orf | image/x-olympus-orf | No | |
| .raf | image/x-fuji-raf | No | |
| .rw2 | image/x-panasonic-rw2 | No | |
| .tga | image/x-tga | Yes | |
| .pcx | image/x-pcx | Yes | |
| .ppm | image/x-portable-pixmap | Yes | |
| .pgm | image/x-portable-graymap | Yes | |
| .pbm | image/x-portable-bitmap | Yes | |
| .pnm | image/x-portable-anymap | Yes | |
| .xbm | image/x-xbitmap | Yes | |
| .xpm | image/x-xpixmap | Yes | |
| .exr | image/x-exr | No | |
| .hdr | image/vnd.radiance | Yes | |
| .dds | image/vnd.ms-dds | Yes | |
| .ktx | image/ktx | No | |
| .ktx2 | image/ktx2 | No | |
| .emf | image/emf | Yes | |
| .wmf | image/wmf | Yes | |
| .djvu | image/vnd.djvu | No | |
| .djv | image/vnd.djvu | No | |
| .mp3 | audio/mpeg | No | |
| .m4a | audio/mp4 | No | |
| .m4b | audio/mp4 | No | |
| .m4r | audio/mp4 | No | |
| .aac | audio/aac | No | |
| .adts | audio/aac | No | |
| .oga | audio/ogg | No | |
| .ogg | audio/ogg | No | |
| .opus | audio/ogg | No | |
| .spx | audio/ogg | No | |
| .flac | audio/flac | No | |
| .wav | audio/wav | Yes | |
| .wave | audio/wav | Yes | |
| .aif | audio/aiff | Yes | |
| .aiff | audio/aiff | Yes | |
| .aifc | audio/aiff | Yes | |
| .au | audio/basic | Yes | |
| .snd | audio/basic | Yes | |
| .mid | audio/midi | Yes | |
| .midi | audio/midi | Yes | |
| .kar | audio/midi | Yes | |
| .weba | audio/webm | No | |
| .wma | audio/x-ms-wma | No | |
| .amr | audio/amr | No | |
| .awb | audio/amr-wb | No | |
| .3ga | audio/3gpp | No | |
| .caf | audio/x-caf | No | |
| .ra | audio/x-realaudio | No | |
| .ram | audio/x-pn-realaudio | No | |
| .mka | audio/x-matroska | No | |
| .ac3 | audio/ac3 | No | |
| .dts | audio/vnd.dts | No | |
| .mpga | audio/mpeg | No | |
| .m3u | audio/x-mpegurl | UTF-8 | Yes |
| .m3u8 | application/vnd.apple.mpegurl | UTF-8 | Yes |
| .pls | audio/x-scpls | UTF-8 | Yes |
| .mp4 | video/mp4 | No | |
| .m4v | video/x-m4v | No | |
| .mp4v | video/mp4 | No | |
| .mpg4 | video/mp4 | No | |
| .mov | video/quicktime | No | |
| .qt | video/quicktime | No | |
| .webm | video/webm | No | |
| .mkv | video/x-matroska | No | |
| .mk3d | video/x-matroska | No | |
| .avi | video/x-msvideo | No | |
| .wmv | video/x-ms-wmv | No | |
| .asf | video/x-ms-asf | No | |
| .flv | video/x-flv | No | |
| .f4v | video/mp4 | No | |
| .ogv | video/ogg | No | |
| .mpeg | video/mpeg | No | |
| .mpg | video/mpeg | No | |
| .mpe | video/mpeg | No | |
| .m1v | video/mpeg | No | |
| .m2v | video/mpeg | No | |
| .mts | video/mp2t | No | |
| .m2ts | video/mp2t | No | |
| .3gp | video/3gpp | No | |
| .3g2 | video/3gpp2 | No | |
| .h264 | video/h264 | No | |
| .h265 | video/h265 | No | |
| .ivf | video/x-ivf | No | |
| .mxf | application/mxf | No | |
| .vob | video/x-ms-vob | No | |
| .mpd | application/dash+xml | UTF-8 | Yes |
| .woff | font/woff | No | |
| .woff2 | font/woff2 | No | |
| .ttf | font/ttf | Yes | |
| .otf | font/otf | Yes | |
| .ttc | font/collection | Yes | |
| .eot | application/vnd.ms-fontobject | Yes | |
| .pfb | application/x-font-type1 | Yes | |
| application/pdf | No | ||
| .epub | application/epub+zip | No | |
| .mobi | application/x-mobipocket-ebook | No | |
| .azw | application/vnd.amazon.ebook | No | |
| .azw3 | application/vnd.amazon.mobi8-ebook | No | |
| .fb2 | application/x-fictionbook+xml | UTF-8 | Yes |
| .cbz | application/vnd.comicbook+zip | No | |
| .cbr | application/vnd.comicbook-rar | No | |
| .xps | application/vnd.ms-xpsdocument | No | |
| .oxps | application/oxps | No | |
| .doc | application/msword | Yes | |
| .dot | application/msword | Yes | |
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | No | |
| .dotx | application/vnd.openxmlformats-officedocument.wordprocessingml.template | No | |
| .docm | application/vnd.ms-word.document.macroEnabled.12 | No | |
| .xls | application/vnd.ms-excel | Yes | |
| .xlt | application/vnd.ms-excel | Yes | |
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | No | |
| .xltx | application/vnd.openxmlformats-officedocument.spreadsheetml.template | No | |
| .xlsm | application/vnd.ms-excel.sheet.macroEnabled.12 | No | |
| .xlsb | application/vnd.ms-excel.sheet.binary.macroEnabled.12 | No | |
| .ppt | application/vnd.ms-powerpoint | Yes | |
| .pps | application/vnd.ms-powerpoint | Yes | |
| .pot | application/vnd.ms-powerpoint | Yes | |
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | No | |
| .ppsx | application/vnd.openxmlformats-officedocument.presentationml.slideshow | No | |
| .potx | application/vnd.openxmlformats-officedocument.presentationml.template | No | |
| .pptm | application/vnd.ms-powerpoint.presentation.macroEnabled.12 | No | |
| .vsd | application/vnd.visio | Yes | |
| .vsdx | application/vnd.ms-visio.drawing | No | |
| .mpp | application/vnd.ms-project | Yes | |
| .one | application/onenote | Yes | |
| .msg | application/vnd.ms-outlook | Yes | |
| .pst | application/vnd.ms-outlook | Yes | |
| .pub | application/x-mspublisher | Yes | |
| .mdb | application/x-msaccess | Yes | |
| .accdb | application/msaccess | Yes | |
| .odt | application/vnd.oasis.opendocument.text | No | |
| .ott | application/vnd.oasis.opendocument.text-template | No | |
| .ods | application/vnd.oasis.opendocument.spreadsheet | No | |
| .ots | application/vnd.oasis.opendocument.spreadsheet-template | No | |
| .odp | application/vnd.oasis.opendocument.presentation | No | |
| .otp | application/vnd.oasis.opendocument.presentation-template | No | |
| .odg | application/vnd.oasis.opendocument.graphics | No | |
| .odf | application/vnd.oasis.opendocument.formula | No | |
| .odb | application/vnd.oasis.opendocument.database | No | |
| .pages | application/vnd.apple.pages | No | |
| .numbers | application/vnd.apple.numbers | No | |
| .key | application/vnd.apple.keynote | No | |
| .wpd | application/vnd.wordperfect | Yes | |
| .abw | application/x-abiword | Yes | |
| .zip | application/zip | No | |
| .gz | application/gzip | No | |
| .tgz | application/gzip | No | |
| .bz2 | application/x-bzip2 | No | |
| .bz | application/x-bzip | No | |
| .xz | application/x-xz | No | |
| .lz | application/x-lzip | No | |
| .lzma | application/x-lzma | No | |
| .lz4 | application/x-lz4 | No | |
| .zst | application/zstd | No | |
| .br | application/x-brotli | No | |
| .z | application/x-compress | No | |
| .7z | application/x-7z-compressed | No | |
| .rar | application/vnd.rar | No | |
| .tar | application/x-tar | Yes | |
| .cpio | application/x-cpio | Yes | |
| .ar | application/x-archive | Yes | |
| .cab | application/vnd.ms-cab-compressed | No | |
| .arj | application/x-arj | No | |
| .lzh | application/x-lzh-compressed | No | |
| .ace | application/x-ace-compressed | No | |
| .sit | application/x-stuffit | No | |
| .sitx | application/x-stuffitx | No | |
| .iso | application/x-iso9660-image | Yes | |
| .img | application/octet-stream | No | |
| .dmg | application/x-apple-diskimage | No | |
| .vhd | application/x-vhd | No | |
| .vhdx | application/x-vhdx | No | |
| .vmdk | application/x-vmdk | No | |
| .qcow2 | application/x-qemu-disk | No | |
| .ova | application/x-virtualbox-ova | No | |
| .exe | application/vnd.microsoft.portable-executable | Yes | |
| .dll | application/vnd.microsoft.portable-executable | Yes | |
| .sys | application/octet-stream | Yes | |
| .msi | application/x-msi | Yes | |
| .msix | application/msix | No | |
| .appx | application/appx | No | |
| .apk | application/vnd.android.package-archive | No | |
| .xapk | application/vnd.android.package-archive | No | |
| .ipa | application/octet-stream | No | |
| .deb | application/vnd.debian.binary-package | No | |
| .rpm | application/x-rpm | No | |
| .snap | application/vnd.snap | No | |
| .flatpak | application/vnd.flatpak | No | |
| .appimage | application/vnd.appimage | No | |
| .pkg | application/octet-stream | No | |
| .bin | application/octet-stream | No | |
| .dat | application/octet-stream | No | |
| .so | application/octet-stream | Yes | |
| .o | application/x-object | Yes | |
| .a | application/x-archive | Yes | |
| .elf | application/x-elf | Yes | |
| .dylib | application/x-mach-binary | Yes | |
| .swf | application/x-shockwave-flash | No | |
| .crx | application/x-chrome-extension | No | |
| .xpi | application/x-xpinstall | No | |
| .vsix | application/vsix | No | |
| .nupkg | application/zip | No | |
| .whl | application/zip | No | |
| .egg | application/zip | No | |
| .gem | application/x-tar | No | |
| .torrent | application/x-bittorrent | No | |
| .sqlite | application/vnd.sqlite3 | Yes | |
| .sqlite3 | application/vnd.sqlite3 | Yes | |
| .db | application/vnd.sqlite3 | Yes | |
| .parquet | application/vnd.apache.parquet | No | |
| .avro | application/avro | No | |
| .arrow | application/vnd.apache.arrow.file | No | |
| .feather | application/vnd.apache.arrow.file | No | |
| .orc | application/octet-stream | No | |
| .hdf5 | application/x-hdf5 | No | |
| .h5 | application/x-hdf5 | No | |
| .nc | application/x-netcdf | No | |
| .npy | application/octet-stream | No | |
| .npz | application/zip | No | |
| .pkl | application/octet-stream | No | |
| .mat | application/x-matlab-data | No | |
| .sav | application/x-spss-sav | No | |
| .dta | application/x-stata-dta | No | |
| .rdata | application/octet-stream | No | |
| .ipynb | application/x-ipynb+json | UTF-8 | Yes |
| .pem | application/x-pem-file | UTF-8 | Yes |
| .crt | application/x-x509-ca-cert | Yes | |
| .cer | application/pkix-cert | Yes | |
| .der | application/x-x509-ca-cert | Yes | |
| .csr | application/pkcs10 | UTF-8 | Yes |
| .p10 | application/pkcs10 | Yes | |
| .p7b | application/x-pkcs7-certificates | Yes | |
| .p7c | application/pkcs7-mime | Yes | |
| .p7m | application/pkcs7-mime | Yes | |
| .p7s | application/pkcs7-signature | Yes | |
| .p12 | application/x-pkcs12 | No | |
| .pfx | application/x-pkcs12 | No | |
| .crl | application/pkix-crl | Yes | |
| .asc | application/pgp-signature | UTF-8 | Yes |
| .sig | application/pgp-signature | Yes | |
| .gpg | application/pgp-encrypted | No | |
| .pgp | application/pgp-encrypted | No | |
| .jwk | application/jwk+json | UTF-8 | Yes |
| .jwks | application/jwk-set+json | UTF-8 | Yes |
| .eml | message/rfc822 | UTF-8 | Yes |
| .mbox | application/mbox | UTF-8 | Yes |
| .mht | multipart/related | UTF-8 | Yes |
| .mhtml | multipart/related | UTF-8 | Yes |
| .url | text/x-uri | UTF-8 | Yes |
| .webloc | application/x-webloc | UTF-8 | Yes |
| .desktop | application/x-desktop | UTF-8 | Yes |
| .lnk | application/x-ms-shortcut | No | |
| .reg | text/x-ms-regedit | UTF-8 | Yes |
| .plist | application/x-plist | UTF-8 | Yes |
| .strings | text/plain | UTF-8 | Yes |
| .po | text/x-gettext-translation | UTF-8 | Yes |
| .mo | application/x-gettext-translation | No | |
| .xliff | application/xliff+xml | UTF-8 | Yes |
| .xlf | application/xliff+xml | UTF-8 | Yes |
| .resx | application/xml | UTF-8 | Yes |
| .glb | model/gltf-binary | No | |
| .gltf | model/gltf+json | UTF-8 | Yes |
| .obj | model/obj | UTF-8 | Yes |
| .mtl | model/mtl | UTF-8 | Yes |
| .stl | model/stl | Yes | |
| .fbx | application/octet-stream | No | |
| .dae | model/vnd.collada+xml | UTF-8 | Yes |
| .3mf | model/3mf | No | |
| .usdz | model/vnd.usdz+zip | No | |
| .ply | application/ply | Yes | |
| .wrl | model/vrml | UTF-8 | Yes |
| .x3d | model/x3d+xml | UTF-8 | Yes |
| .step | model/step | UTF-8 | Yes |
| .stp | model/step | UTF-8 | Yes |
| .iges | model/iges | UTF-8 | Yes |
| .igs | model/iges | UTF-8 | Yes |
| .dwg | image/vnd.dwg | No | |
| .dxf | image/vnd.dxf | UTF-8 | Yes |
| .blend | application/x-blender | No | |
| .skp | application/vnd.sketchup.skp | No | |
| .xd | application/vnd.adobe.xd | No | |
| .indd | application/x-indesign | No | |
| .gcode | text/x-gcode | UTF-8 | Yes |
| .shp | application/x-esri-shape | No | |
| .shx | application/x-esri-shape | No | |
| .dbf | application/dbase | Yes | |
| .prj | text/plain | UTF-8 | Yes |
| .gpkg | application/geopackage+sqlite3 | No | |
| .pbf | application/x-protobuf | No | |
| .mvt | application/vnd.mapbox-vector-tile | No | |
| .pmtiles | application/vnd.pmtiles | No | |
| .pac | application/x-ns-proxy-autoconfig | UTF-8 | Yes |
Detect from file
The file is read on your device and never uploaded.
Use via API
Find the MIME type and Content-Type header for a file extension or filename, the extensions for a MIME type, or search the table. Optionally detect a file's real type from its first bytes (magic numbers). Send JSON, get JSON back.
POST https://pithlab.com/api/v1/tools/mime-type-lookup
curl https://pithlab.com/api/v1/tools/mime-type-lookup \
-H "Authorization: Bearer $PITHLAB_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"photo.webp"}'About the MIME Type Lookup
Find the MIME type for any file extension or the extensions for a MIME type, with charset and compression notes. Detect a file's real type from its bytes.
How to use the MIME Type Lookup
- Type a file extension (png), a file name (report.docx) or a MIME type (application/json).
- Read the best match at the top, then browse the table, which filters as you type.
- Use the Content-Type value shown, which includes charset=utf-8 for text types.
- To check what a file really is, choose it under Detect from file. Only its first and last bytes are read, on your device.
Examples
Input
png
Output
.png: image/png
Input
styles.css
Output
.css: text/css; charset=utf-8
Input
image/jpeg
Output
image/jpeg: .jpg, .jpeg, .jpe, .jfif, .pjpeg
Input
application/json; charset=utf-8
Output
application/json: .json, .map, .topojson, .har
Frequently asked questions
What is a MIME type?
A MIME type (or media type) such as text/html or image/png tells browsers and other software what kind of data a file contains. Web servers send it in the Content-Type header.
What happens if a server sends the wrong MIME type?
Browsers may refuse to run scripts or stylesheets, show a download prompt instead of displaying a file, or show code as text. With X-Content-Type-Options: nosniff, browsers trust the header completely, so it must be right.
How does detecting from a file work?
Most formats start with a fixed signature, called magic bytes, such as %PDF- for PDF or 89 50 4E 47 for PNG. The tool reads the start and end of the file in your browser and compares them with about 40 known signatures. Nothing is uploaded.
Which types should be compressed?
Text formats such as HTML, CSS, JavaScript, JSON, SVG and XML shrink a lot with gzip or Brotli. Already compressed formats such as JPEG, PNG, MP4, WOFF2 and ZIP do not, so compressing them wastes CPU.
Why is a DOCX detected as a ZIP?
Office files are ZIP archives. The tool looks for the word/, xl/ or ppt/ folders inside to tell them apart. If those names are not in the bytes it reads, it falls back to ZIP.