MIME Type Lookup

Find the MIME (Content-Type) for a file extension, or the extensions for a MIME type, with server config lines.

Runs instantly in your browser — results update as you type.

What is the MIME type of a WebP image?

The MIME type of WebP is image/webp. A MIME type (media type) tells browsers what kind of file a server is sending via the Content-Type header — for example text/html, image/png or application/json.

Why the right MIME type matters

  • Browsers refuse to run JavaScript or apply CSS served with the wrong type when X-Content-Type-Options: nosniff is set.
  • Web fonts, WebP/AVIF images and video may fail to load or download instead of displaying.
  • Unknown files fall back to application/octet-stream, which forces a download.

Search by extension (woff2), by full MIME type (image/png) or by a group such as video/. Copy the Apache or nginx line to fix a server that sends the wrong type.

Frequently asked questions

What MIME type should JavaScript use?

text/javascript is the current standard (RFC 9239).

What is the MIME type for JSON?

application/json.

How do I check what my server sends?

Use the HTTP Headers Checker and look at the Content-Type header.