MIME Type Lookup

Look up MIME types by file extension or find extensions for a MIME type. Shows content type, compressibility, charset, and binary/text classification.

Your data never leaves your browser Available via MCP

Enter a file extension or MIME type and click Lookup

How to Use

  1. Enter a file extension (e.g., .json, png, .tsx) or a MIME type (e.g., application/json).
  2. Click Lookup to see the result.
  3. Copy the MIME type with the Copy button for use in Content-Type headers.

Common MIME Types for Web Development

  • text/html — HTML pages
  • application/json — JSON data and API responses
  • application/javascript — JavaScript files
  • text/css — CSS stylesheets
  • image/svg+xml — SVG vector images
  • application/wasm — WebAssembly modules
  • font/woff2 — WOFF2 web fonts

Setting Content-Type in Code

Use the MIME type in HTTP responses: Content-Type: application/json; charset=UTF-8. In Express.js: res.type('json'). In Nginx: the types directive maps extensions to MIME types. Incorrect MIME types cause browsers to refuse to execute scripts or render content.

Related Tools

Encode files to Base64 with the Base64 Encoder. Convert images to Base64 data URIs with Image to Base64. Look up HTTP status codes with the HTTP Status Code Explorer. Configure web servers with the Nginx Config Generator. Parse URLs with the URL Parser.

Frequently Asked Questions

What is a MIME type?
A MIME type (Multipurpose Internet Mail Extensions, also called media type) is a standardized identifier for the format of data. It tells browsers and servers how to handle a file. Examples: "application/json" for JSON data, "image/png" for PNG images.
Where are MIME types used?
MIME types are used in HTTP Content-Type headers, email attachments, file upload validation, web server configuration, and browser content negotiation. Setting the correct MIME type ensures files are displayed or downloaded correctly.
What does "compressible" mean?
Compressible indicates whether the file type benefits from gzip/brotli compression during transfer. Text-based formats (HTML, JSON, CSS) are compressible. Already-compressed formats (PNG, ZIP, MP4) are not — compressing them wastes CPU without reducing size.
How many MIME types does this tool support?
This tool includes 85+ common file extensions and MIME types covering web development, documents, media, fonts, programming languages, and archives.

Use this tool from AI agents. The CodeTidy MCP Server lets Claude, Cursor, and other AI agents use this tool and 46 others directly. One command: npx @codetidy/mcp

Drop file to load