MIME Type Lookup & File Extension Map

Look up MIME type from extension or extension from MIME type

Free in-browser MIME type lookup. Enter a file extension to find its MIME type, or a MIME type to find its associated extensions, using a built-in registry. Bidirectional, instant and offline — no network request and nothing uploaded. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How does the tool know which direction I want?

If your input contains a slash it is treated as a MIME type (for example application/json) and the tool returns the associated extensions. Otherwise it is treated as a file extension — with or without a leading dot — and the tool returns the matching MIME type.

The MIME Type Lookup & File Extension Map answers both questions developers ask about content types: “what MIME type does this extension use?” and “what extensions does this MIME type cover?” It searches a built-in registry instantly and entirely offline.

How it works

The tool ships with a curated subset of the IANA / mime-db registry mapping each MIME type to its associated file extensions. When you type:

  • an input containing a slash (e.g. application/pdf) it is treated as a MIME type and the tool lists every registered extension;
  • otherwise the input is treated as a file extension (a leading dot is optional) and the tool returns the matching MIME type along with that type’s full extension list.

If an exact match is not found, the tool falls back to a substring search so a partial MIME fragment still surfaces likely candidates.

Worked examples

You typeDirectionResult
pngextension → MIMEimage/png
image/jpegMIME → extensions.jpg, .jpeg, .jpe
pdfextension → MIMEapplication/pdf
application/jsonMIME → extensions.json
wasmextension → MIMEapplication/wasm
xyz (unknown)extension → MIMEapplication/octet-stream suggested

Why the Content-Type header matters

When a browser fetches a resource, it uses the Content-Type response header to decide how to handle it. A CSS file served as text/plain will not be applied as a stylesheet. A script served as image/jpeg will not execute. Modern browsers implement strict MIME checking — deliberately — as a security measure against content-confusion attacks where a malicious server disguises executable content as something harmless.

Getting the type right also matters for:

  • Download behavior. A Content-Disposition: attachment header pairs with a meaningful MIME type so operating systems know which application to open the file with.
  • Compression decisions. Proxies and CDNs often decide whether to compress a response based on MIME type, so serving JavaScript as text/javascript rather than text/plain may activate gzip or brotli compression.
  • Security headers. X-Content-Type-Options: nosniff tells browsers not to sniff a type that conflicts with the declared one — you must declare the right type for that header to work without breaking things.

Common types to look up

  • Web fonts.woff2font/woff2; .wofffont/woff
  • Modern images.webpimage/webp; .avifimage/avif
  • Media.mp4video/mp4; .webmvideo/webm
  • Data.jsonldapplication/ld+json; .ndjsonapplication/x-ndjson
  • Manifests.webmanifestapplication/manifest+json

For unknown binary formats, application/octet-stream remains the safe catch-all: it prompts a download rather than inline rendering, which is safer than guessing wrong.