ZapKit

MIME type lookup

Get the right Content-Type for a file, for server config, uploads, downloads and email attachments, or find what extension a MIME type means.

What is a MIME type?

A MIME type, also called a media type or content type, is a label like image/png that tells software what kind of data a file contains. Web servers send it in the Content-Type header, email uses it for attachments, and upload forms use it to accept or reject files.

Search about 75 common types by extension, type name or kind. Each row shows the MIME type, its extensions and its kind, and filters narrow the list to documents, images, audio, video, fonts, archives, code or data.

How to use the MIME type lookup

  1. 1.Search

    An extension like .webp or a type like json.

  2. 2.Filter by kind

    Images, documents, audio, video, fonts and more.

  3. 3.Copy

    Copy the MIME type with one click.

Example: configuring a server

Serving modern images and a Word document:

.webp / .avif
image/webp / image/avif
.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document
.woff2
font/woff2

Each file is served with a type browsers handle correctly.

Why the right type matters

Browsers use the Content-Type to decide whether to show, play or download a file. A wrong type makes a video download instead of playing or blocks a script, and with X-Content-Type-Options: nosniff, browsers refuse to guess.

Office formats have long types, like application/vnd.openxmlformats-officedocument.wordprocessingml.document for .docx. JavaScript's official type is text/javascript. application/octet-stream means unknown binary data and usually triggers a download. Types can carry parameters too, most often charset=utf-8 on text formats, which tells the browser how to decode the characters.

Frequently asked questions

What does image/svg+xml mean?

An image that is XML underneath; +xml and +json mark the format a type builds on.

Is application/json or text/json correct?

application/json. text/json isn't registered.

What's the type for form posts?

application/x-www-form-urlencoded, or multipart/form-data with file uploads.

Does it detect a file's type?

No. To identify a file from its contents, use the file inspector.

More Developer tools