description

MIME Types Lookup

Search a comprehensive reference of MIME types (media types) and the file extensions they map to. Find the correct Content-Type header value for any file, from images and fonts to documents and archives. Runs entirely in your browser.

shield_lock

Secure & Private Client-Side

This tool runs entirely in your browser. No data is sent to any server, ensuring your information remains private and secure.

About MIME Types Lookup

Search a comprehensive reference of MIME types (media types) and the file extensions they map to. Find the correct Content-Type header value for any file, from images and fonts to documents and archives. Runs entirely in your browser.

Frequently Asked Questions

What is a MIME type? expand_more

A MIME type (media type) is a label like text/html or image/png that tells browsers and servers the format of a file, so they know how to handle it. It is sent in the Content-Type HTTP header.

Why does the correct Content-Type matter? expand_more

Serving a file with the wrong MIME type can cause browsers to refuse to run scripts, mis-render content, or download a file instead of displaying it. Many browsers block stylesheets and modules served with an incorrect type.

What MIME type should I use for JSON? expand_more

Use application/json for JSON data. Avoid text/plain, which prevents some clients from parsing the response correctly.

What is the default MIME type for unknown files? expand_more

application/octet-stream is the generic binary type. Browsers typically treat it as a downloadable file rather than trying to display it.

Common Use Cases

  • Setting Content-Type: Find the exact header value to serve a file correctly from your web server or API.
  • File Uploads: Validate or whitelist accepted MIME types when handling user uploads.
  • Data URIs & Embeds: Pick the right media type when inlining images or fonts as data URIs.
  • Debugging Downloads: Figure out why a file downloads instead of displaying by checking its expected type.