Tools / MIME Types Reference

MIME Types Reference.

Look up the media type for any file extension, or the extensions for a Content-Type, from the mime-db dataset.

Runs in your browser

A single .ext looks up that exact extension; anything else searches extensions and types.

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
MIME types
Matches

About MIME Types Reference

MIME Types Reference maps file extensions to the media type a server should send in the Content-Type header, and the other way round. Type an extension such as .webp and you get exactly image/webp; type a fragment such as "font" or "image/" to see every matching type. The table has more than 1,200 extensions taken from mime-db, the dataset used by Express, many CDNs and most Node.js tooling, which merges the official IANA registry with the mappings shipped by the Apache httpd and nginx web servers. The source column tells you where a mapping comes from: IANA entries are registered standards, while Apache and nginx entries are widely used conventions for types that were never registered. The compressible column marks types that gzip or Brotli shrink well, which is handy when you configure compression rules on a reverse proxy. Typical mistakes this helps you avoid: serving JavaScript as text/javascript versus application/javascript (both work, text/javascript is the current standard), sending SVG as text/xml so browsers refuse to render it as an image, serving .mjs or .wasm files with application/octet-stream so module loading fails, and uploading Office files whose long vnd.openxmlformats types are easy to mistype in an allow-list. Remember that a file's extension says nothing about its real content, so always validate uploads by inspecting the bytes, not only by looking up the extension.

How to Use

  1. Type an extension (with the dot) for an exact match, or any word to search.
  2. Read the MIME type and its source in the table.
  3. Copy the type into your server, upload validation or Content-Type header.

Frequently Asked Questions

Where does the data come from?

From mime-db 1.52.0, which combines the IANA media type registry with the mappings used by Apache httpd and nginx. The list is bundled with the page, so it works offline.

Why does one extension map to several types?

Some extensions were registered more than once or are used by unrelated formats. The table lists every mapping so you can pick the one that fits your file; the IANA entry is usually the safest choice.

Is the extension enough to validate an upload?

No. Anyone can rename a file. Check the file signature (magic bytes) on the server and treat the extension and the browser-supplied type as hints only.

Does this page send my searches anywhere?

No. Filtering runs in your browser on data that is already on the page.

Related Tools