MIME Type Lookup

A MIME type (also called a media type or content type) tells a browser or application what kind of data a file contains, independent of its file extension. This lookup tool lets you search by file extension (like .json or .png) to find its correct MIME type, or search by MIME type to see which extensions it applies to — useful when configuring servers, APIs, or file upload validation.

ExtensionMIME Type
.aac audio/aac
.avi video/x-msvideo
.bin application/octet-stream
.bmp image/bmp
.css text/css
.csv text/csv
.doc application/msword
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.gif image/gif
.gz application/gzip
.htm text/html
.html text/html
.ico image/vnd.microsoft.icon
.jpeg image/jpeg
.jpg image/jpeg
.js text/javascript
.json application/json
.md text/markdown
.mp3 audio/mpeg
.mp4 video/mp4
.mpeg video/mpeg
.otf font/otf
.pdf application/pdf
.png image/png
.ppt application/vnd.ms-powerpoint
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
.rar application/vnd.rar
.rtf application/rtf
.svg image/svg+xml
.tar application/x-tar
.ttf font/ttf
.txt text/plain
.wav audio/wav
.weba audio/webm
.webm video/webm
.webp image/webp
.woff font/woff
.woff2 font/woff2
.xhtml application/xhtml+xml
.xls application/vnd.ms-excel
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xml application/xml
.yaml application/yaml
.yml application/yaml
.zip application/zip
.7z application/x-7z-compressed

Your data stays in your browser — this tool runs entirely on the client side and nothing is uploaded to a server.

How to Use the MIME Type Lookup

  1. Type a file extension (e.g. "pdf") or a MIME type (e.g. "application/json") into the search box.
  2. Matching results are filtered instantly from the reference table.
  3. Copy the MIME type you need directly from the results.

Why MIME types matter

When a server sends a file, it includes a Content-Type header describing the MIME type so the receiving application knows how to handle it — whether to render it as an image, parse it as JSON, or offer it as a download. Getting this wrong can cause browsers to display raw code instead of an image, or refuse to process an upload that has the correct extension but the wrong declared type.

Structure of a MIME type

A MIME type has the format `type/subtype`, such as `text/html`, `image/png`, or `application/json`. The type describes the general category (text, image, application, audio, video, multipart) and the subtype describes the specific format within that category.

Example

Common types
.json, .png, .pdf
application/json, image/png, application/pdf

Tips

  • Always validate uploaded file content, not just the extension or claimed MIME type, since both can be spoofed.
  • Use `application/octet-stream` as a generic fallback for unknown binary data.

Frequently Asked Questions

Can a file extension have more than one MIME type?

It's uncommon but possible in some legacy or vendor-specific cases. Where ambiguity exists, prefer the type registered with IANA.

Is a MIME type the same as a file extension?

No. A file extension is just a naming convention; the MIME type is what actually tells software how to interpret the file's content.