CalculatorsConvertersDeveloperTextAll toolsDirectory
Submit your tool Sign in
Theme
Home/Answers/Network
How-to

How do I find the correct MIME content-type for a file extension?

Short answer

Search a browser-based MIME types reference by file extension to get the correct content-type value, such as application/json for .json or image/png for .png. It loads in your browser and needs no account.

The content-type header tells clients how to read a file

When a server sends a file, the Content-Type header tells the browser or client what the bytes are, so it can render, download or parse them correctly. Setting the wrong type, or a generic one, can make files download instead of display or break an upload. A MIME reference maps a file extension to its standard content-type so your headers are right.

One lookup for uploads and downloads

Whether you are configuring a static server, validating an upload, or setting a Content-Disposition, you often just need the exact MIME string for an extension. A client-side reference lets you search for the extension in your browser and read the value, with nothing sent to a server. It is free and needs no sign-up.

Step by step

  1. Open the reference. Open the MIME types reference in your browser.
  2. Search the extension. Type the file extension you need, such as .svg or .csv.
  3. Copy the content-type. Read and copy the matching content-type value for your headers.

Frequently asked questions

What is the content-type for JSON?

The standard content-type for JSON is application/json.

Why does the MIME type matter?

It tells the client how to handle the file, so the wrong type can break rendering, uploads or downloads.

Is my search sent to a server?

No. The reference runs in your browser, so nothing is uploaded.

Related answers