EN
My tools

MIME Type Lookup (File Extension ↔ Content-Type)

Look up the MIME type of a file extension or the extensions of a MIME type: 1,000+ IANA and common types with a ready Content-Type header and charset.

MIME type
image/webp
for .webp
Content-Type header
Content-Type: image/webp
Compressible
not recorded
Listed by
IANA (registered media type)

Data: IANA Media Types registry as compiled in the mime-db project (v1.54.0), plus application/yaml (RFC 9512) and text/event-stream.

Matches
MIME typeExtensionsListed byCompressibleCharset
image/webp.webpIANA——
My tools →
Advertisement

A web server or API has to say what kind of file it sends with a Content-Type header, and uploads are often checked against a list of allowed MIME types. Type a file extension or a file name to get its MIME type, or a MIME type to get its usual extensions. Each answer includes a ready-to-paste Content-Type header with the right charset, whether the format is worth gzip or brotli compression, and whether the type is registered with IANA or just common practice.

How to use this tool

  1. Type an extension (webp), a file name (report.docx) or a MIME type (application/json).
  2. Read the MIME type, the other types sometimes used for the same extension, and the Content-Type header.
  3. Choose "Every type in the same family" to browse all image/, audio/ or font/ types.
  4. Or type a word such as font or zip to search inside MIME type names.

Formula

type "/" subtype [ "+" suffix ] [ "; charset=" value ]

The top-level type is one of application, audio, font, image, message, model, multipart, text or video. vnd. marks vendor types, x- unregistered ones, and +json, +xml or +zip the underlying format. When several types claim an extension, the registered IANA type wins, then the one without x-, then a media type over application/.

Example

webp gives image/webp with the header Content-Type: image/webp and "no — already compressed", so a server should not gzip it. .json gives application/json with charset=utf-8; app.js gives text/javascript, which RFC 9239 made the standard type for JavaScript, with the older application/javascript listed as also used.

Frequently asked questions

Which MIME type should I use for JavaScript?

text/javascript. RFC 9239 (2022) made it the standard and marked application/javascript as obsolete, although browsers accept both.

What if an extension is not listed?

Serve the file as application/octet-stream, which tells the browser to download it rather than display it.

Why does a text type need a charset?

Without one, browsers and clients may guess the encoding and show Korean, Chinese or accented text as gibberish. utf-8 is the safe choice for web text.

Is the extension a reliable way to know a file's type?

No — anyone can rename a file. Servers that accept uploads should check the content (magic bytes) as well.

Sources

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). MIME Type Lookup (File Extension ↔ Content-Type). https://kakao.mobile/tools/mime-type-lookup/

MLA

“MIME Type Lookup (File Extension ↔ Content-Type).” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/mime-type-lookup/.

Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms

Advertisement