DEV3 Technologies home

Developer tool

MIME Type Lookup

Search about 300 file extensions and MIME types in both directions, with ready-to-copy Content-Type headers and notes on charset and fallbacks.

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-8

    Text format: include a charset parameter, usually utf-8.

  • .texttext/plainText and code
    Content-Type: text/plain; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .logtext/plainText and code
    Content-Type: text/plain; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .conftext/plainText and code
    Content-Type: text/plain; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .initext/plainText and code
    Content-Type: text/plain; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .cfgtext/plainText and code
    Content-Type: text/plain; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .htmltext/htmlText and code
    Content-Type: text/html; charset=utf-8

    Always 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-8

    Always 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-8

    Text format: include a charset parameter, usually utf-8.

  • .csvtext/csvText and code
    Content-Type: text/csv; charset=utf-8

    Add charset=utf-8; Excel may still need a BOM to read accented characters.

  • .mdtext/markdownText and code
    Content-Type: text/markdown; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .markdowntext/markdownText and code
    Content-Type: text/markdown; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .jstext/javascriptText and code
    Content-Type: text/javascript; charset=utf-8

    The current standard type for JavaScript. application/javascript is obsolete but still seen.

  • .mjstext/javascriptText and code
    Content-Type: text/javascript; charset=utf-8

    The current standard type for JavaScript. application/javascript is obsolete but still seen.

  • .cjstext/javascriptText and code
    Content-Type: text/javascript; charset=utf-8

    The current standard type for JavaScript. application/javascript is obsolete but still seen.

  • .tsxtext/typescriptText and code
    Content-Type: text/typescript; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .pytext/x-pythonText and code
    Content-Type: text/x-python; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .javatext/x-java-sourceText and code
    Content-Type: text/x-java-source; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .ctext/x-cText and code
    Content-Type: text/x-c; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .htext/x-cText and code
    Content-Type: text/x-c; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .cpptext/x-c++srcText and code
    Content-Type: text/x-c++src; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .cctext/x-c++srcText and code
    Content-Type: text/x-c++src; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .hpptext/x-c++srcText and code
    Content-Type: text/x-c++src; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .cstext/x-csharpText and code
    Content-Type: text/x-csharp; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .gotext/x-goText and code
    Content-Type: text/x-go; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .rstext/x-rustText and code
    Content-Type: text/x-rust; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .phptext/x-phpText and code
    Content-Type: text/x-php; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .rbtext/x-rubyText and code
    Content-Type: text/x-ruby; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .shtext/x-shText and code
    Content-Type: text/x-sh; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .bashtext/x-shText and code
    Content-Type: text/x-sh; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .sqltext/x-sqlText and code
    Content-Type: text/x-sql; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .yamltext/x-yamlText and code
    Content-Type: text/x-yaml; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .ymltext/x-yamlText and code
    Content-Type: text/x-yaml; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .difftext/x-diffText and code
    Content-Type: text/x-diff; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .patchtext/x-diffText and code
    Content-Type: text/x-diff; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .scsstext/x-scssText and code
    Content-Type: text/x-scss; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .lesstext/x-lessText and code
    Content-Type: text/x-less; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .vuetext/x-vueText and code
    Content-Type: text/x-vue; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .swifttext/x-swiftText and code
    Content-Type: text/x-swift; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .kttext/x-kotlinText and code
    Content-Type: text/x-kotlin; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .icstext/calendarText and code
    Content-Type: text/calendar; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .vcftext/vcardText and code
    Content-Type: text/vcard; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .tsvtext/tab-separated-valuesText and code
    Content-Type: text/tab-separated-values; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .xsltext/xmlText and code
    Content-Type: text/xml; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .vtttext/vttText and code
    Content-Type: text/vtt; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .rtxtext/richtextText and code
    Content-Type: text/richtext; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .sgmltext/sgmlText and code
    Content-Type: text/sgml; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .rofftext/troffText and code
    Content-Type: text/troff; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .asmtext/x-asmText and code
    Content-Type: text/x-asm; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .luatext/x-luaText and code
    Content-Type: text/x-lua; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .pltext/x-perlText and code
    Content-Type: text/x-perl; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .scalatext/x-scalaText and code
    Content-Type: text/x-scala; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .hstext/x-haskellText and code
    Content-Type: text/x-haskell; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .darttext/x-dartText and code
    Content-Type: text/x-dart; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .tomltext/x-tomlText and code
    Content-Type: text/x-toml; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .propertiestext/x-propertiesText and code
    Content-Type: text/x-properties; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .textext/x-texText and code
    Content-Type: text/x-tex; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .mktext/x-makefileText and code
    Content-Type: text/x-makefile; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .dockerfiletext/x-dockerfileText and code
    Content-Type: text/x-dockerfile; charset=utf-8

    Text format: include a charset parameter, usually utf-8.

  • .jsonapplication/jsonWeb and data
    Content-Type: application/json; charset=utf-8

    No 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-8

    No 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+json

    Text format: include a charset parameter, usually utf-8.

  • .xmlapplication/xmlWeb and data
    Content-Type: application/xml

    Text format: include a charset parameter, usually utf-8.

  • .xsdapplication/xmlWeb and data
    Content-Type: application/xml

    Text format: include a charset parameter, usually utf-8.

  • .xhtmlapplication/xhtml+xmlWeb and data
    Content-Type: application/xhtml+xml

    Text format: include a charset parameter, usually utf-8.

  • .rssapplication/rss+xmlWeb and data
    Content-Type: application/rss+xml

    Text format: include a charset parameter, usually utf-8.

  • .atomapplication/atom+xmlWeb and data
    Content-Type: application/atom+xml

    Text format: include a charset parameter, usually utf-8.

  • .webmanifestapplication/manifest+jsonWeb and data
    Content-Type: application/manifest+json

    Text format: include a charset parameter, usually utf-8.

  • .wasmapplication/wasmWeb and data
    Content-Type: application/wasm

    Must be served with this exact type for streaming compilation to work.

  • .jsxapplication/javascriptWeb and data
    Content-Type: application/javascript

    Text format: include a charset parameter, usually utf-8.

  • .graphqlapplication/graphqlWeb and data
    Content-Type: application/graphql

    Text format: include a charset parameter, usually utf-8.

  • .gqlapplication/graphqlWeb and data
    Content-Type: application/graphql

    Text format: include a charset parameter, usually utf-8.

  • .ndjsonapplication/x-ndjsonWeb and data
    Content-Type: application/x-ndjson

    Text format: include a charset parameter, usually utf-8.

  • .jsonlapplication/x-ndjsonWeb and data
    Content-Type: application/x-ndjson

    Text format: include a charset parameter, usually utf-8.

  • .p7sapplication/pkcs7-signatureWeb and data
    Content-Type: application/pkcs7-signature

    Send 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-signature

    Send 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-signature

    Send 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-file

    Send 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-cert

    Send 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-cert

    Send 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-cert

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .p12application/pkcs12Web and data
    Content-Type: application/pkcs12

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .pfxapplication/pkcs12Web and data
    Content-Type: application/pkcs12

    Send 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-php

    Send 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-sqlite3

    Send 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-sqlite3

    Send 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-sqlite3

    Send 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+json

    Text format: include a charset parameter, usually utf-8.

  • .geojsonapplication/geo+jsonWeb and data
    Content-Type: application/geo+json

    Text format: include a charset parameter, usually utf-8.

  • .gpxapplication/gpx+xmlWeb and data
    Content-Type: application/gpx+xml

    Text format: include a charset parameter, usually utf-8.

  • .kmlapplication/vnd.google-earth.kml+xmlWeb and data
    Content-Type: application/vnd.google-earth.kml+xml

    Text format: include a charset parameter, usually utf-8.

  • .kmzapplication/vnd.google-earth.kmzWeb and data
    Content-Type: application/vnd.google-earth.kmz

    Send 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-flash

    Send 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+xml

    Text format: include a charset parameter, usually utf-8.

  • .mathmlapplication/mathml+xmlWeb and data
    Content-Type: application/mathml+xml

    Text format: include a charset parameter, usually utf-8.

  • .xsltapplication/xslt+xmlWeb and data
    Content-Type: application/xslt+xml

    Text format: include a charset parameter, usually utf-8.

  • .bibapplication/x-bibtexWeb and data
    Content-Type: application/x-bibtex

    Send 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-latex

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .pngimage/pngImages
    Content-Type: image/png

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .jpgimage/jpegImages
    Content-Type: image/jpeg

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .jpegimage/jpegImages
    Content-Type: image/jpeg

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .jpeimage/jpegImages
    Content-Type: image/jpeg

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .gifimage/gifImages
    Content-Type: image/gif

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .webpimage/webpImages
    Content-Type: image/webp

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .avifimage/avifImages
    Content-Type: image/avif

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .svgimage/svg+xmlImages
    Content-Type: image/svg+xml

    Compress 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+xml

    Compress on the server with gzip or brotli; the .svgz extension is already gzipped and needs Content-Encoding: gzip.

  • .bmpimage/bmpImages
    Content-Type: image/bmp

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .icoimage/x-iconImages
    Content-Type: image/x-icon

    Send 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.icon

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .tifimage/tiffImages
    Content-Type: image/tiff

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .tiffimage/tiffImages
    Content-Type: image/tiff

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .heicimage/heicImages
    Content-Type: image/heic

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .heifimage/heifImages
    Content-Type: image/heif

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .apngimage/apngImages
    Content-Type: image/apng

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .jxlimage/jxlImages
    Content-Type: image/jxl

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .jp2image/jp2Images
    Content-Type: image/jp2

    Send 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.photoshop

    Send the exact type plus an accurate Content-Length; add X-Content-Type-Options: nosniff for safety.

  • .xcfimage/x-xcfImages
    Content-Type: image/x-xcf

    Send 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-cr2

    Send 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

  1. Type the extension, with or without the dot, into the search box. For example pdf, .webp or *.woff2.
  2. 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.
  3. 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-8 for pages.
  • Content-Type: application/json for 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-stream for unknown binary files rather than inventing a type.
  • Serve WebAssembly as application/wasm and JavaScript as text/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.