MIME Type Lookup

Look up MIME types for file extensions.

text/plainText

Extensions: .txt

Plain text file

text/htmlText

Extensions: .html, .htm

HTML document

text/cssText

Extensions: .css

CSS stylesheet

text/javascriptText

Extensions: .js, .mjs

JavaScript code

text/xmlText

Extensions: .xml

XML document

text/csvText

Extensions: .csv

Comma-separated values

text/markdownText

Extensions: .md, .markdown

Markdown document

application/jsonApplication

Extensions: .json

JSON data

application/ld+jsonApplication

Extensions: .jsonld

JSON-LD linked data

application/xmlApplication

Extensions: .xml

XML data

application/yamlApplication

Extensions: .yaml, .yml

YAML configuration

image/jpegImage

Extensions: .jpg, .jpeg

JPEG image

MIME Type Quick Reference:

  • application/json: JSON data (use in APIs)
  • text/html: HTML documents
  • text/css: CSS stylesheets
  • image/png: PNG images
  • application/pdf: PDF documents
  • video/mp4: MP4 videos

Search by MIME type, file extension, or content type to find the right MIME type

About MIME Type Lookup

MIME Type Lookup maps file extensions to their official IANA media types (e.g., .pdf → application/pdf, .png → image/png) and vice versa. This is useful when setting Content-Type headers in APIs, configuring web server mime mappings, or determining how a browser will handle a downloaded file. You can search by extension or by MIME type.

Frequently Asked Questions

Is MIME Type Lookup free?

Yes, completely free. No signup, no account, no usage limits. Use it as much as you need.

Is my data secure?

All processing happens directly in your browser using JavaScript. Your data is never sent to any server, stored, or shared. It stays entirely on your device.

What MIME type should I use for a JSON API response?

Use application/json. Some older APIs use text/plain or text/javascript, but application/json is the correct and widely supported type for JSON responses.

What is the difference between application/octet-stream and a specific MIME type?

application/octet-stream is a generic binary type that tells the browser to treat the file as a download without trying to display it. Using a specific type (like image/png) allows the browser to render or handle the file appropriately.