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.
How to Use the MIME Type Lookup
- Type a file extension in the input field (e.g., "pdf", ".json", "png").
- View the MIME type, category, description, and common uses instantly.
- Copy the MIME type to your clipboard with one click.
- Browse the filterable list of all common MIME types below.
- 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
| Extension | MIME Type | Category |
|---|---|---|
| .html, .htm | text/html | Document |
| .css | text/css | Style |
| .js | application/javascript | Script |
| .json | application/json | Data |
| .xml | application/xml | Data |
| .png | image/png | Image |
| .jpg, .jpeg | image/jpeg | Image |
| .gif | image/gif | Image |
| .svg | image/svg+xml | Image |
| .webp | image/webp | Image |
| application/pdf | Document | |
| .zip | application/zip | Archive |
| .csv | text/csv | Data |
| .txt | text/plain | Document |
| .mp4 | video/mp4 | Video |
| .mp3 | audio/mpeg | Audio |
| .woff | font/woff | Font |
| .woff2 | font/woff2 | Font |
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: nosniffheader prevents browsers from MIME-sniffing, which is a security risk. - Use UTF-8 for text types — specify
text/html; charset=utf-8to avoid encoding issues. - Serve SVGs as
image/svg+xml, nottext/plain, so they render correctly in browsers. - Set correct types for fonts — use
font/woff2andfont/wofffor 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.