MIME Type Lookup

Type a file name, an extension or a MIME type to get the match. The full table is below and searchable, with notes where the web uses more than one name.

How it works

A MIME type, also called a media type or a Content-Type, is how a server tells a browser what a file is: text/html, image/webp, application/pdf. Browsers trust it over the file name, so the wrong type can make a script refuse to run or a picture download instead of showing.

The table here covers about 190 extensions across the web, images, audio, video, fonts, office documents, archives, code and data. Types are the names registered with IANA where one exists. Older or unofficial names that are still common, such as application/javascript or application/x-zip-compressed, are listed under the type they mean, so a lookup by them still finds the right row.

The lookup takes a whole file name or path and reads its last extension, knows that .tar.gz is gzip, and ignores parameters like ; charset=utf-8 on a type. The table ships with the page, so nothing is sent anywhere.

How to use it

  1. 1 Type a file name (report.pdf), an extension (.webp or webp) or a MIME type (image/webp) into the first box.
  2. 2 Read the MIME type, the extensions that share it, and any note about older names.
  3. 3 Or browse the full table below. Its search box matches extensions, types and descriptions.
  4. 4 Copy the type with its Copy button.

Good to know

  • image/jpg is not a real type, though it is common. The correct one is image/jpeg.
  • Serve JavaScript as text/javascript. A script sent as text/plain with the X-Content-Type-Options: nosniff header will not run.
  • When you check uploads, accept the older names too: Windows browsers often report a .zip as application/x-zip-compressed.
  • To learn what a file really is from its bytes, rather than its name, use the File Inspector.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

The Content-Type header, and why the wrong one breaks things

When a browser asks a server for a file, the answer comes with a header such as Content-Type: image/webp. That one line decides what the browser does next. It does not look at the end of the URL; a link ending in .webp served as text/html is treated as a web page. So when an image shows as a screen of garbage, a font fails to load, or a download opens as text, the first thing to check is the type the server sent.

Here is a worked example. Type photo.webp into the box above. The tool takes the last extension, webp, and finds image/webp: a WebP image, the only extension with that type. Now type the type itself, image/webp, and you land on the same row. Type IMAGE/WEBP; charset=utf-8 and you still do, because types are not case sensitive and parameters after the semicolon do not change which type it is. Try backup.tar.gz and you get application/gzip, with a note that a .tar.gz is a tar archive that was gzipped, which is why it is served as gzip and not as tar.

JavaScript shows why the exact name matters. For years servers sent scripts as application/javascript or application/x-javascript, and some sent text/plain by mistake. In 2022 RFC 9239 settled on text/javascript and marked the others obsolete. Browsers still run scripts sent with any of the JavaScript names. They do not run one sent as text/plain when the server also sends X-Content-Type-Options: nosniff, a header many security checklists add. And JavaScript modules are stricter still: a module served with a non-JavaScript type is refused outright. That is why a site can work locally and break on a new host.

The other direction trips people up in upload forms. A file picked from disk has no server and no header, so the browser asks the operating system, which guesses from the extension. Windows often answers application/x-zip-compressed for a .zip, and older systems may say image/pjpeg for a JPEG. A server that accepts only application/zip will then reject a perfectly good file. The rows here list those older names under the type they mean, so you can see which ones to accept.

There are limits to this table. It covers about 190 common extensions, not the thousands in the full IANA registry or the freedesktop database, and several formats have no registered type at all; those rows say so. A type also tells you only what a file claims to be, the same as its name does. Rename a PNG to .pdf and both the extension and the type it implies will be wrong. To find out what a file really is, its first bytes are the evidence, and the File Inspector reads those.

Frequently asked questions

Is it text/javascript or application/javascript?

text/javascript. RFC 9239, published in 2022, made it the one standard name and marked application/javascript and the others obsolete. Browsers run scripts sent with any of them, so old servers still work, but new configuration should say text/javascript.

What type should I use for a file that is not in the table?

application/octet-stream, which means "unknown binary data". Browsers download such a file rather than try to open it, which is the safe choice for something you cannot name.

Why do some rows say "not registered"?

Because nobody ever registered a type for that format with IANA. Python files, Matroska video and camera raw files are examples. The table gives the unofficial name most software uses, and says it is unofficial.

Does the browser use the MIME type or the file extension?

For anything it downloads, the MIME type in the Content-Type header. The extension only matters when there is no header, such as a file picked from your own disk, where the browser and the operating system guess from the name.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.