b2KIT

MIME Type Lookup

Look up MIME types by file extension and find file extensions for MIME types with a searchable database.

Tested tool guide Tested browser tools Checked August 16, 2026

What MIME Type Lookup does and how it behaves

MIME Type Lookup answers two related questions: which MIME type is associated with a file extension, and which extensions are associated with a MIME type. Enter one side of the association to search the browser-based database for the other. The lookup is useful when checking filenames, HTTP metadata, upload rules, or server configuration. The important limitation is that an extension-to-type match describes a conventional association. It does not inspect the file, prove its contents, or guarantee how a browser will handle it.

How the result is produced

1

Extension lookup

Search with a file extension when you need its commonly associated media type. The result is a database mapping based on the suffix, not an analysis of the file's bytes. This distinction matters for renamed, malformed, or deliberately misleading files. The lookup also cannot tell whether an HTTP server is actually sending the returned value in its Content-Type header.

2

MIME type lookup

Search with a media type in type/subtype form when you need associated filename extensions. A reverse lookup can return more than one extension because several suffixes may conventionally represent the same format. The relationship is not necessarily one-to-one, and a listed extension is a naming convention rather than a requirement imposed on every file carrying that media type.

Good uses

  • Check the expected Content-Type value while configuring a web server to serve files with a particular extension.
  • Find a conventional filename extension for content identified by a type/subtype value in an API response or upload record.
  • Compare an uploaded filename's extension with its declared MIME type before deciding whether deeper content validation is needed.

Limits and checks

  • Do not treat a matching extension and MIME type as proof that the file contains that format. A filename can be changed without changing its contents.
  • Some formats have multiple extensions, multiple historical media types, or vendor-specific registrations. A lookup result may therefore be valid without being the only association encountered in existing systems.
  • A media type is not the whole HTTP response policy. Content-Disposition, security restrictions, browser support, and response context can affect whether content is displayed, downloaded, or rejected.

Common questions

Does the returned MIME type guarantee that a browser will open the file inline?

No. The mapping identifies a conventional media type for the extension, but browser behavior depends on more than that association. The actual Content-Type response header, Content-Disposition, browser capabilities, security policies, and the validity of the file all matter. A correct lookup result can still accompany a download prompt or an unsupported-format response.

Can this lookup identify a file that has no extension or has the wrong extension?

No. Extension lookup uses the name supplied to find a stored association; it does not inspect file signatures or parse content. If the extension is absent or misleading, use a content-aware file identification or validation method. If the media type is already known independently, reverse lookup can suggest conventional extensions without verifying the file.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools