Skip to content
Free web tool

MIME type lookup

This MIME type lookup tells you which Content-Type goes with a file, or which file extensions go with a MIME type. Developers setting up servers, uploads and email attachments use it so files are served and opened correctly.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

61 characters

Result

Found5 of 6
Looked upResult
pngimage/png
report.pdfapplication/pdf
.woff2font/woff2
backup.tar.gzapplication/gzip (a compressed tar archive)
application/json.json, .map
file.xyzNot in the built-in table
Table
151 common extensions. Servers can be set up differently, so check the Content-Type your server actually sends.

The short answer

A MIME type, also called a media type, names a file format as type/subtype, such as image/png. Servers send it in the Content-Type header, and IANA keeps the official registry. This lookup maps common file extensions to those types, but an extension alone does not guarantee what a server sends.

Formulamedia type = type/subtype, for example image/png

Worked exampleIn the sample list, png gives image/png, report.pdf gives application/pdf, .woff2 gives font/woff2, backup.tar.gz gives application/gzip, application/json lists .json and .map, and file.xyz is not in the table, so 5 of 6 are found.

Example

Input
png
report.pdf
.woff2
backup.tar.gz
application/json
file.xyz
Result
Found5 of 6
Looked upResult
pngimage/png
report.pdfapplication/pdf
.woff2font/woff2
backup.tar.gzapplication/gzip (a compressed tar archive)
application/json.json, .map
file.xyzNot in the built-in table
Table
151 common extensions. Servers can be set up differently, so check the Content-Type your server actually sends.

How to use the mime type lookup

  1. Enter extensions, file names or MIME types in the box, one per line.
  2. The result updates as you type; Run also works.
  3. Read each result, then use Copy result or Download.

How it works

Extensions are matched without regard to case, with or without a leading dot. For file names only the last extension is used, so backup.tar.gz gives application/gzip with a note.

Entering a MIME type such as image/jpeg lists every extension in the table that uses it, and parameters such as charset are ignored.

The table covers about 150 common extensions across images, video, audio, documents, fonts, archives, web files, code and data.

Unknown extensions or types are reported as not in the table rather than guessed.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

What is the MIME type for JavaScript?

text/javascript. RFC 9239 made it the standard type, replacing older ones such as application/javascript.

What MIME type should I use for unknown binary files?

application/octet-stream is the general type for arbitrary binary data. Browsers usually download such files instead of showing them.

What is the MIME type for .docx?

application/vnd.openxmlformats-officedocument.wordprocessingml.document.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools