Skip to content

MIME Types Lookup

Search MIME types by file extension or content type, with a short description and category for each entry.

MIME Types Lookup tool

Loading...

Example

Input: Search: .json

Result: .json - application/json (JSON data format); also .jsonld - application/ld+json (JSON-LD linked data)

The search matches file extensions, MIME type names and descriptions, so partial matches like .jsonld are listed too.

Common MIME Types for the Web

ExtensionMIME type
.htmltext/html
.csstext/css
.jstext/javascript
.jsonapplication/json
.xmlapplication/xml
.txttext/plain
.csvtext/csv
.pdfapplication/pdf
.zipapplication/zip
.pngimage/png
.jpgimage/jpeg
.svgimage/svg+xml
.webpimage/webp
.mp4video/mp4
.woff2font/woff2
  1. Enter a file extension (such as .json, .mp4 or .woff2) or a MIME type (such as application/json) in the search field.
  2. Browse the matching entries with their extensions and descriptions.
  3. Use the Category menu (application, audio, image, text, video, font) to narrow the list.
  4. Read the category and short description to confirm it is the format you need.
  5. Click the copy button on an entry to copy the MIME type.

MIME Types and the Content-Type Header

A MIME type, also called a media type, is a label like text/html or image/png. It tells a browser or app what kind of file it is getting. This lookup finds the right type for 104 common file extensions, and the extensions that go with a type. Search .woff2 and you get font/woff2. Search video/mp4 and you get .mp4 and .m4v.

Servers send the MIME type in the Content-Type header, and browsers trust that header more than the file name. Get it wrong and things break. A stylesheet sent as text/plain is ignored. A script with the wrong type is blocked when the page also sends the X-Content-Type-Options: nosniff header. A PDF sent as application/octet-stream downloads instead of opening.

Every type has two parts, a main type and a subtype, split by a slash. The main types here are application, text, image, audio, video and font, and the Category menu filters by them. Names that start with vnd. are vendor formats, like the long Microsoft Office types. Names with x- are older, unofficial labels. JavaScript is listed as text/javascript, the current standard, since application/javascript is now obsolete.

A few extensions appear twice because they mean different things. .webm can be audio or video, and .ts can be a TypeScript file or an MPEG video stream. Copy a type with one click for a server config, an upload filter or an API response. For the status code to send with it, see HTTP Status Codes. To put a small file inline as a data URL, try Base64 Encode and Decode.

Sources

Frequently Asked Questions

application/json. It is the type registered with IANA and the one browsers, servers and API tools expect. Older systems sometimes used text/json or text/javascript, but those are not standard. JSON is always UTF-8 under the current standard, so you do not need to add a charset, although "; charset=utf-8" does no harm.
Use application/octet-stream, which means "some binary data". Browsers treat it as a download and will not try to open or run it, which is also the safe choice for files users upload. If you know the real format, send its proper type instead so browsers and apps can handle it correctly.
Most servers pick the type from the file extension using a built-in list. In Apache, add missing ones with AddType in the config or an .htaccess file. In Nginx, edit the types block or the mime.types file. In Node.js with Express, res.type() sets it. For API responses, set the Content-Type header yourself.
Usually the server sends it as application/octet-stream or another type the browser cannot show, or it adds a Content-Disposition: attachment header. Check the response headers in the Network tab of your developer tools. Sending the right type, such as application/pdf or image/webp, lets the browser display it.

Related Tools

HTTP Status Codes Reference

Search and browse over 60 HTTP status codes grouped by class, each with its official name and a plain description.

Web and SEO Tools

Meta Tag Generator

Generate HTML meta tags for SEO, Open Graph, and Twitter Cards with a live preview of search and social results.

Web and SEO Tools

URL Parser

Break down URLs into protocol, host, port, path, query parameters, and hash components.

Developer Tools

Base64 Encode and Decode

Encode text to Base64 and decode Base64 strings back to readable text, with full UTF-8 support.

Developer Tools

HTML Minifier

Minify HTML by removing comments and collapsing whitespace between tags and inside tags to reduce document size.

Developer Tools