{ MIME Type Lookup }

// look up mime type by extension or content-type

Look up MIME types by file extension or search by content type. Find the correct MIME type for any file format instantly — free, browser-based, no sign-up.

Showing 0 MIME types Click any row to copy the MIME type string
Extension MIME Type Category Description
✓ Copied!

HOW TO USE

  1. 01
    Search

    Type a file extension like .pdf or a MIME type like image/png in the search box.

  2. 02
    Filter

    Use the category tabs to narrow results by type: Text, Image, Audio, Video, App, or Font.

  3. 03
    Copy

    Click any row or the copy button to instantly copy the MIME type string to your clipboard.

FEATURES

200+ MIME Types Instant Search Category Filter One-Click Copy Extension Lookup No Sign-Up

USE CASES

  • 🔧 Setting correct Content-Type HTTP headers
  • 🔧 Configuring web server MIME mappings
  • 🔧 Building file upload validators
  • 🔧 Writing API response headers
  • 🔧 Troubleshooting file serving issues

WHAT IS THIS?

MIME (Multipurpose Internet Mail Extensions) types are standardized identifiers used to indicate the nature and format of a file. They appear in HTTP headers, email attachments, and file system metadata, telling browsers and servers how to handle content.

RELATED TOOLS

FREQUENTLY ASKED QUESTIONS

What is a MIME type?

A MIME type (also called a media type or content type) is a two-part identifier for file formats transmitted over the internet. It consists of a type and subtype joined by a slash, such as text/html or image/jpeg. MIME types tell software how to interpret data.

How do MIME types work in HTTP?

In HTTP, MIME types appear in the Content-Type header. When a server sends a response, it includes this header so the browser knows what to do with the data — display it as HTML, render it as an image, play it as audio, or prompt a file download.

What is the MIME type for JSON?

The correct MIME type for JSON data is application/json. This should be set as the Content-Type header when serving JSON responses from an API or when submitting JSON data in a request body.

What MIME type should I use for fonts?

For web fonts, use font/woff2 for WOFF2 files (recommended), font/woff for WOFF, font/ttf for TrueType, and font/otf for OpenType. WOFF2 is the modern standard with best compression.

What is application/octet-stream?

application/octet-stream is the default binary MIME type used when the actual type is unknown. Browsers will typically prompt a download dialog for files with this type. It's a safe fallback but you should use the specific MIME type when known.

Why does MIME type matter for security?

Incorrect MIME types can lead to security vulnerabilities. MIME sniffing — where browsers guess content type — can allow attackers to execute malicious scripts. Setting X-Content-Type-Options: nosniff and using the correct MIME type prevents this attack vector.

What is multipart/form-data used for?

multipart/form-data is used for HTML form submissions that include file uploads. Unlike application/x-www-form-urlencoded, it can transmit binary data and allows sending multiple files in a single request.

Can a file have multiple MIME types?

While a file has one primary MIME type, some formats have multiple valid MIME strings. For example, JavaScript is served as both application/javascript and text/javascript. IANA standardizes these, but legacy types still appear in real-world servers.

What is a MIME Type Lookup Tool?

A MIME Type Lookup tool is an essential reference for developers, system administrators, and anyone working with web technologies. MIME (Multipurpose Internet Mail Extensions) types are standardized labels that identify the format of data being transmitted over the internet. Whenever a browser loads a webpage, downloads a file, or plays media, MIME types silently direct every step of that process.

This MIME Type Lookup tool provides an instant, searchable reference for over 200 common MIME types. You can search by file extension — such as .pdf, .mp4, or .json — or by MIME type string — such as application/pdf or video/webm. Results are categorized and can be copied with a single click, making it fast to find the exact string you need for your HTTP headers, configuration files, or application code.

Understanding MIME Type Structure

Every MIME type follows a consistent format: type/subtype. The type is a broad category such as text, image, audio, video, application, or font. The subtype specifies the exact format within that category.

For example:

Some MIME types also carry parameters — additional metadata appended after a semicolon. The most common example is the charset parameter for text types: text/html; charset=utf-8. This tells the browser which character encoding to use when rendering the document.

Where Are MIME Types Used?

MIME types appear throughout web development and system administration in several critical places:

Common MIME Types Every Developer Should Know

While there are hundreds of registered MIME types, developers encounter a core set regularly. Understanding these common types saves time and prevents configuration errors:

MIME Types and Web Security

Incorrect or missing MIME types can introduce security vulnerabilities. One of the most well-known is MIME sniffing — where browsers analyze file content to guess the MIME type when the server doesn't specify one or provides an incorrect one. Attackers can exploit this by uploading files that appear to be images but contain executable JavaScript, then serving them in a context where the browser sniffs them as scripts.

To prevent MIME sniffing attacks, web servers should always send the X-Content-Type-Options: nosniff header alongside a correct Content-Type. This header instructs browsers not to override the declared MIME type, regardless of what the file content looks like.

Similarly, Content Security Policy (CSP) headers work alongside MIME types to restrict which types of content can be loaded and executed on a page, providing an additional layer of defense against cross-site scripting and data injection attacks.

How to Configure MIME Types in Common Web Servers

In Apache, MIME types are configured in the mime.types file or via AddType directives in .htaccess:

AddType application/wasm .wasm
AddType font/woff2 .woff2

In Nginx, MIME types are defined in the mime.types include file, which is loaded by the main configuration. Custom types can be added in the http block:

types {
    application/wasm wasm;
    font/woff2       woff2;
}

For Node.js applications using Express, the res.type() method accepts both MIME type strings and file extensions, automatically setting the correct Content-Type header.

The Difference Between MIME Type and File Extension

File extensions are hints — they suggest the format of a file but can be changed or spoofed by anyone. MIME types, when properly enforced, carry more authority because they're set by the server delivering the content. A file named document.pdf with Content-Type: text/html will be treated as HTML by the browser, not as a PDF.

This distinction matters for security and for cross-platform compatibility. When building applications that accept file uploads, always validate MIME type on the server side using file signature inspection (magic bytes), not just the extension or the client-provided MIME type, which can be manipulated.

Registered vs. Vendor-Specific MIME Types

MIME types are registered with IANA (Internet Assigned Numbers Authority), which maintains the official registry. There are also vendor-specific MIME types prefixed with application/vnd. — such as application/vnd.ms-excel for older Excel files or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for modern XLSX files. These vendor types identify proprietary formats that don't fit standard categories.

Experimental or unstable types use the x- prefix, such as application/x-www-form-urlencoded, though many such types have since been standardized and the x- versions remain as legacy aliases.