Free MIME Type Lookup

Look up the MIME type for a file extension, or search by MIME type to find its extensions — instantly in your browser.

How to look up a MIME type

  1. 1

    Type an extension or MIME type

    Enter a file extension like .svg, or part of a MIME type like text/.

  2. 2

    Review the matches

    Matching extension ↔ MIME type pairs appear instantly as you type.

  3. 3

    Use the value you need

    Copy the extension or MIME type into your code, config, or HTTP header.

Example use cases

1

Setting a Content-Type header

Find the correct MIME type to send in an HTTP response or API request for a given file type.

2

Restricting a file upload input

Look up the right MIME type or extension to use in an `accept` attribute or server-side upload validation.

3

Debugging a "wrong file type" error

Check whether the MIME type your app expects actually matches the extension of the file being uploaded.

Frequently asked questions

What is a MIME type?

A MIME type (also called a media type or content type) is a standardized string like "application/json" or "image/png" that tells a browser, server, or email client what kind of data a file contains, so it knows how to handle it.

Can I look it up by extension or by MIME type?

Both. Type a file extension (e.g. .csv) to see its MIME type, or type part of a MIME type (e.g. image/) to see every matching extension.

Where would I use this?

Common spots are the "Content-Type" header in an HTTP response, the "accept" attribute on a file ``, or an "enctype"/"type" field in an API request or config file.

Is my input uploaded anywhere?

No. The lookup runs against a local list in your browser — nothing you type is sent to a server.