MIME Type Lookup — Find MIME Type for Any File Extension

Quickly find the MIME type for any file extension. Get the content type, description, and common uses for hundreds of file formats. 100% client-side — no data is sent anywhere.

MIME Type Lookup

.
Type a file extension with or without the dot prefix

How to Use the MIME Type Lookup

  1. Type a file extension in the input field (e.g., "pdf", ".json", "png").
  2. View the MIME type, category, description, and common uses instantly.
  3. Copy the MIME type to your clipboard with one click.
  4. Browse the filterable list of all common MIME types below.
  5. Use the filter to quickly search by extension or MIME type name.

How It Works

MIME types (Multipurpose Internet Mail Extensions) are standardized identifiers defined by the IANA that tell browsers and servers how to handle file content. Each MIME type follows the format type/subtype, such as image/png or application/json. The "type" category indicates the general kind of data, and the "subtype" specifies the exact format.

This tool maintains a local database of common MIME types mapped to their file extensions. When you type an extension, it performs a case-insensitive lookup and returns the corresponding MIME type along with its category, description, and typical use cases. No network requests are made — everything runs from an embedded reference table.

Common MIME Types

ExtensionMIME TypeCategory
.html, .htmtext/htmlDocument
.csstext/cssStyle
.jsapplication/javascriptScript
.jsonapplication/jsonData
.xmlapplication/xmlData
.pngimage/pngImage
.jpg, .jpegimage/jpegImage
.gifimage/gifImage
.svgimage/svg+xmlImage
.webpimage/webpImage
.pdfapplication/pdfDocument
.zipapplication/zipArchive
.csvtext/csvData
.txttext/plainDocument
.mp4video/mp4Video
.mp3audio/mpegAudio
.wofffont/woffFont
.woff2font/woff2Font

Tips for Web Servers

  • Always set Content-Type headers — browsers may refuse to render files served without a correct MIME type.
  • Enable nosniff — the X-Content-Type-Options: nosniff header prevents browsers from MIME-sniffing, which is a security risk.
  • Use UTF-8 for text types — specify text/html; charset=utf-8 to avoid encoding issues.
  • Serve SVGs as image/svg+xml, not text/plain, so they render correctly in browsers.
  • Set correct types for fonts — use font/woff2 and font/woff for web fonts to ensure cross-browser compatibility.
  • Check your configuration — misconfigured MIME types can cause downloads instead of rendering, or break Content Security Policy rules.

Why Use This MIME Type Lookup

Knowing the correct MIME type is critical for web servers, HTTP headers, email attachments, and API responses. Serving a file with the wrong MIME type can break rendering, downloads, or security policies.

This lookup provides instant results, comprehensive metadata, and a searchable reference list for hundreds of common file formats — all offline.

Frequently Asked Questions

A MIME (Multipurpose Internet Mail Extensions) type is a standard identifier that tells browsers and servers what type of content a file contains. For example, image/png for PNG images.

Browsers use MIME types to decide how to handle content — whether to display it, download it, or pass it to a plugin. Incorrect MIME types can cause security issues, broken layouts, or failed downloads.

The tool includes hundreds of common MIME types. If yours isn't listed, check IANA's official registry for the complete database.

Use Cases

Web Server Configuration

Set correct Content-Type headers in Nginx, Apache, or IIS configurations for proper content delivery.

Email Attachments

Set correct MIME types for email attachments to ensure they render and download properly across clients.

API Development

Configure correct Content-Type and Accept headers for REST APIs, file uploads, and download endpoints.

Security Policy Setup

Configure Content-Security-Policy and X-Content-Type-Options headers with accurate MIME types.