Developer tool
MIME Type Lookup
Free, no sign-up. Runs in your browser; nothing is uploaded.
347 of 347 mappings
- .txttext/plainText and code
Content-Type: text/plain; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .texttext/plainText and code
Content-Type: text/plain; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .logtext/plainText and code
Content-Type: text/plain; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .conftext/plainText and code
Content-Type: text/plain; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .initext/plainText and code
Content-Type: text/plain; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .cfgtext/plainText and code
Content-Type: text/plain; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .htmltext/htmlText and code
Content-Type: text/html; charset=utf-8Always send charset=utf-8 (or declare it in a meta tag) to avoid garbled text.
- .htmtext/htmlText and code
Content-Type: text/html; charset=utf-8Always send charset=utf-8 (or declare it in a meta tag) to avoid garbled text.
- .csstext/cssText and code
Content-Type: text/css; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .csvtext/csvText and code
Content-Type: text/csv; charset=utf-8Add charset=utf-8; Excel may still need a BOM to read accented characters.
- .mdtext/markdownText and code
Content-Type: text/markdown; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .markdowntext/markdownText and code
Content-Type: text/markdown; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .jstext/javascriptText and code
Content-Type: text/javascript; charset=utf-8The current standard type for JavaScript. application/javascript is obsolete but still seen.
- .mjstext/javascriptText and code
Content-Type: text/javascript; charset=utf-8The current standard type for JavaScript. application/javascript is obsolete but still seen.
- .cjstext/javascriptText and code
Content-Type: text/javascript; charset=utf-8The current standard type for JavaScript. application/javascript is obsolete but still seen.
- .tsxtext/typescriptText and code
Content-Type: text/typescript; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .pytext/x-pythonText and code
Content-Type: text/x-python; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .javatext/x-java-sourceText and code
Content-Type: text/x-java-source; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .ctext/x-cText and code
Content-Type: text/x-c; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .htext/x-cText and code
Content-Type: text/x-c; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .cpptext/x-c++srcText and code
Content-Type: text/x-c++src; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .cctext/x-c++srcText and code
Content-Type: text/x-c++src; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .hpptext/x-c++srcText and code
Content-Type: text/x-c++src; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .cstext/x-csharpText and code
Content-Type: text/x-csharp; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .gotext/x-goText and code
Content-Type: text/x-go; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .rstext/x-rustText and code
Content-Type: text/x-rust; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .phptext/x-phpText and code
Content-Type: text/x-php; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .rbtext/x-rubyText and code
Content-Type: text/x-ruby; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .shtext/x-shText and code
Content-Type: text/x-sh; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .bashtext/x-shText and code
Content-Type: text/x-sh; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .sqltext/x-sqlText and code
Content-Type: text/x-sql; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .yamltext/x-yamlText and code
Content-Type: text/x-yaml; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .ymltext/x-yamlText and code
Content-Type: text/x-yaml; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .difftext/x-diffText and code
Content-Type: text/x-diff; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .patchtext/x-diffText and code
Content-Type: text/x-diff; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .scsstext/x-scssText and code
Content-Type: text/x-scss; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .lesstext/x-lessText and code
Content-Type: text/x-less; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .vuetext/x-vueText and code
Content-Type: text/x-vue; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .swifttext/x-swiftText and code
Content-Type: text/x-swift; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .kttext/x-kotlinText and code
Content-Type: text/x-kotlin; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .icstext/calendarText and code
Content-Type: text/calendar; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .vcftext/vcardText and code
Content-Type: text/vcard; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .tsvtext/tab-separated-valuesText and code
Content-Type: text/tab-separated-values; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .xsltext/xmlText and code
Content-Type: text/xml; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .vtttext/vttText and code
Content-Type: text/vtt; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .rtxtext/richtextText and code
Content-Type: text/richtext; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .sgmltext/sgmlText and code
Content-Type: text/sgml; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .rofftext/troffText and code
Content-Type: text/troff; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .asmtext/x-asmText and code
Content-Type: text/x-asm; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .luatext/x-luaText and code
Content-Type: text/x-lua; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .pltext/x-perlText and code
Content-Type: text/x-perl; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .scalatext/x-scalaText and code
Content-Type: text/x-scala; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .hstext/x-haskellText and code
Content-Type: text/x-haskell; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .darttext/x-dartText and code
Content-Type: text/x-dart; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .tomltext/x-tomlText and code
Content-Type: text/x-toml; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .propertiestext/x-propertiesText and code
Content-Type: text/x-properties; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .textext/x-texText and code
Content-Type: text/x-tex; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .mktext/x-makefileText and code
Content-Type: text/x-makefile; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .dockerfiletext/x-dockerfileText and code
Content-Type: text/x-dockerfile; charset=utf-8Text format: include a charset parameter, usually utf-8.
- .jsonapplication/jsonWeb and data
Content-Type: application/json; charset=utf-8No charset is needed in theory (JSON is UTF-8), but sending charset=utf-8 is harmless.
- .mapapplication/jsonWeb and data
Content-Type: application/json; charset=utf-8No charset is needed in theory (JSON is UTF-8), but sending charset=utf-8 is harmless.
- .jsonldapplication/ld+jsonWeb and data
Content-Type: application/ld+jsonText format: include a charset parameter, usually utf-8.
- .xmlapplication/xmlWeb and data
Content-Type: application/xmlText format: include a charset parameter, usually utf-8.
- .xsdapplication/xmlWeb and data
Content-Type: application/xmlText format: include a charset parameter, usually utf-8.
- .xhtmlapplication/xhtml+xmlWeb and data
Content-Type: application/xhtml+xmlText format: include a charset parameter, usually utf-8.
- .rssapplication/rss+xmlWeb and data
Content-Type: application/rss+xmlText format: include a charset parameter, usually utf-8.
- .atomapplication/atom+xmlWeb and data
Content-Type: application/atom+xmlText format: include a charset parameter, usually utf-8.
- .webmanifestapplication/manifest+jsonWeb and data
Content-Type: application/manifest+jsonText format: include a charset parameter, usually utf-8.
- .wasmapplication/wasmWeb and data
Content-Type: application/wasmMust be served with this exact type for streaming compilation to work.
- .jsxapplication/javascriptWeb and data
Content-Type: application/javascriptText format: include a charset parameter, usually utf-8.
- .graphqlapplication/graphqlWeb and data
Content-Type: application/graphqlText format: include a charset parameter, usually utf-8.
- .gqlapplication/graphqlWeb and data
Content-Type: application/graphqlText format: include a charset parameter, usually utf-8.
- .ndjsonapplication/x-ndjsonWeb and data
Content-Type: application/x-ndjsonText format: include a charset parameter, usually utf-8.
- .jsonlapplication/x-ndjsonWeb and data
Content-Type: application/x-ndjsonText format: include a charset parameter, usually utf-8.
- .p7sapplication/pkcs7-signatureWeb and data
Content-Type: application/pkcs7-signatureSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .ascapplication/pgp-signatureWeb and data
Content-Type: application/pgp-signatureSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .sigapplication/pgp-signatureWeb and data
Content-Type: application/pgp-signatureSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .pemapplication/x-pem-fileWeb and data
Content-Type: application/x-pem-fileSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .crtapplication/x-x509-ca-certWeb and data
Content-Type: application/x-x509-ca-certSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .cerapplication/x-x509-ca-certWeb and data
Content-Type: application/x-x509-ca-certSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .derapplication/x-x509-ca-certWeb and data
Content-Type: application/x-x509-ca-certSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .p12application/pkcs12Web and data
Content-Type: application/pkcs12Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .pfxapplication/pkcs12Web and data
Content-Type: application/pkcs12Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .phtmlapplication/x-httpd-phpWeb and data
Content-Type: application/x-httpd-phpSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .sqliteapplication/x-sqlite3Web and data
Content-Type: application/x-sqlite3Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .dbapplication/x-sqlite3Web and data
Content-Type: application/x-sqlite3Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .sqlite3application/x-sqlite3Web and data
Content-Type: application/x-sqlite3Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .ipynbapplication/x-ipynb+jsonWeb and data
Content-Type: application/x-ipynb+jsonText format: include a charset parameter, usually utf-8.
- .geojsonapplication/geo+jsonWeb and data
Content-Type: application/geo+jsonText format: include a charset parameter, usually utf-8.
- .gpxapplication/gpx+xmlWeb and data
Content-Type: application/gpx+xmlText format: include a charset parameter, usually utf-8.
- .kmlapplication/vnd.google-earth.kml+xmlWeb and data
Content-Type: application/vnd.google-earth.kml+xmlText format: include a charset parameter, usually utf-8.
- .kmzapplication/vnd.google-earth.kmzWeb and data
Content-Type: application/vnd.google-earth.kmzSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .swfapplication/x-shockwave-flashWeb and data
Content-Type: application/x-shockwave-flashSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .rdfapplication/rdf+xmlWeb and data
Content-Type: application/rdf+xmlText format: include a charset parameter, usually utf-8.
- .mathmlapplication/mathml+xmlWeb and data
Content-Type: application/mathml+xmlText format: include a charset parameter, usually utf-8.
- .xsltapplication/xslt+xmlWeb and data
Content-Type: application/xslt+xmlText format: include a charset parameter, usually utf-8.
- .bibapplication/x-bibtexWeb and data
Content-Type: application/x-bibtexSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .latexapplication/x-latexWeb and data
Content-Type: application/x-latexSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .pngimage/pngImages
Content-Type: image/pngSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .jpgimage/jpegImages
Content-Type: image/jpegSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .jpegimage/jpegImages
Content-Type: image/jpegSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .jpeimage/jpegImages
Content-Type: image/jpegSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .gifimage/gifImages
Content-Type: image/gifSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .webpimage/webpImages
Content-Type: image/webpSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .avifimage/avifImages
Content-Type: image/avifSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .svgimage/svg+xmlImages
Content-Type: image/svg+xmlCompress on the server with gzip or brotli; the .svgz extension is already gzipped and needs Content-Encoding: gzip.
- .svgzimage/svg+xmlImages
Content-Type: image/svg+xmlCompress on the server with gzip or brotli; the .svgz extension is already gzipped and needs Content-Encoding: gzip.
- .bmpimage/bmpImages
Content-Type: image/bmpSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .icoimage/x-iconImages
Content-Type: image/x-iconSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .curimage/vnd.microsoft.iconImages
Content-Type: image/vnd.microsoft.iconSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .tifimage/tiffImages
Content-Type: image/tiffSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .tiffimage/tiffImages
Content-Type: image/tiffSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .heicimage/heicImages
Content-Type: image/heicSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .heifimage/heifImages
Content-Type: image/heifSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .apngimage/apngImages
Content-Type: image/apngSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .jxlimage/jxlImages
Content-Type: image/jxlSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .jp2image/jp2Images
Content-Type: image/jp2Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .psdimage/vnd.adobe.photoshopImages
Content-Type: image/vnd.adobe.photoshopSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .xcfimage/x-xcfImages
Content-Type: image/x-xcfSend the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
- .cr2image/x-canon-cr2Images
Content-Type: image/x-canon-cr2Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.
How to use the mime type lookup
Find a type from a file extension
- Type the extension, with or without the dot, into the search box. For example
pdf,.webpor*.woff2. - The matching entry appears first, followed by anything that contains your text. Each card shows the extension, the MIME type, its category and a header you can copy.
- Narrow the list with the Category menu when you only care about images, fonts or archives.
Find the extension for a type
Search the full type, such as application/json, or just the first half, such as video/, to list every video format in the table. This is handy when you are writing an upload allow-list or an accept attribute and need all the extensions that belong to a type.
Using the Content-Type header
The header tells the receiver how to read the body. Examples:
Content-Type: text/html; charset=utf-8for pages.Content-Type: application/jsonfor API responses and request bodies.Content-Type: multipart/form-data; boundary=...for file uploads. HTTP clients add the boundary automatically.
Send the right type on both requests and responses. A wrong type can make a stylesheet be ignored, a font fail to load or a script be blocked.
Good habits
- Add X-Content-Type-Options: nosniff so browsers do not guess a different type from the content.
- Fall back to
application/octet-streamfor unknown binary files rather than inventing a type. - Serve WebAssembly as
application/wasmand JavaScript astext/javascript. - Match the type to the real content, not only the file name. Check uploads on the server instead of trusting what the browser claims.
About the table
The list covers the formats web developers meet most often: web files, images, audio, video, fonts, office documents, archives and binaries. It is a practical reference and not a copy of the official IANA registry, so check the registry for rare or vendor-specific formats.
Frequently asked questions
What is a MIME type?
A MIME type, also called a media type, is a label such as image/png or application/json that tells a browser or API client what kind of data it received. It has a type, a slash and a subtype.
Which type should I use for an unknown file?
Use application/octet-stream. It means arbitrary binary data, and browsers will normally offer to download it rather than try to display it.
Do I need a charset in Content-Type?
For text formats such as text/html, text/css and text/csv, yes: add charset=utf-8. For binary types such as images or PDF a charset has no meaning and should be left out.
Why does one extension have several types?
Some extensions are shared between formats. For example .ts can be TypeScript or an MPEG transport stream video, so the server or the file contents decide which one applies.
Is anything sent to a server?
No. The table is built into the page and the search runs locally.