MIME Type Finder
Type a file extension such as png or .json to get its MIME type, or paste a MIME type such as application/pdf to list the extensions that use it. The finder decides which direction you mean by checking for a slash: a query with a slash is treated as a MIME type, otherwise it is an extension. It draws on a built-in table covering images, documents, text and code, audio, video, archives and fonts.
How to find a MIME type
- In the Extension or MIME type box, type a file extension, with or without the leading dot.
- Or paste a full MIME type such as image/jpeg to search in reverse.
- Watch the hint below the box confirm whether it detected an extension or a MIME type.
- Read the matched MIME type, or the list of matching extensions, in the panel.
- Click Copy to grab the MIME type or the space-separated extensions for a header or config.
Examples
Extension to MIME type
png
image/png
MIME type to extensions (several share it)
image/jpeg
jpe jpeg jpg
A dotted, upper-case extension still resolves
.JSON
application/json
Frequently asked questions
What is a MIME type?
A MIME type, also called a media type or content type, tells software what kind of data a file holds, for example image/png or application/json. A web server sends it in the Content-Type header so the browser knows how to handle the response.
How does the tool know if I typed an extension or a MIME type?
It looks for a forward slash. Any query containing a slash, like text/css, is treated as a MIME type and searched in reverse. Anything without a slash, like css, is treated as an extension. The hint line under the input tells you which mode it chose.
Does the leading dot or casing matter?
No. For extensions the finder lowercases the query and strips one leading dot, so png, .png, .PNG and PNG all resolve the same way. MIME type matching is also case-insensitive.
Why do some MIME types map to more than one extension?
Several extensions can share a type. A reverse search on image/jpeg returns jpe, jpeg and jpg, and application/yaml returns yaml and yml. The results are sorted alphabetically so the order is stable.
What happens with an unknown extension or type?
The finder only knows the extensions in its built-in table, so an obscure or made-up extension returns no match. Likewise a MIME type not in the table returns no extensions. Truly unknown binary data is conventionally served as application/octet-stream.
How many extensions and types are covered?
The table spans common formats across images, documents, text and code, audio, video, archives and fonts. It is a curated list of everyday types rather than the full IANA registry, so rare or vendor-specific types may be missing.
Is the MIME type detected from the file contents?
No. This is a name-based lookup keyed on the extension or the type string you enter. It does not read file bytes or magic numbers, so a mislabelled file will still return the type its extension implies.
Can I trust the type for setting a Content-Type header?
The values follow common web conventions and are a good default for static files. For text formats you may still want to add a charset, such as text/html; charset=utf-8, which this lookup does not append.
Is anything uploaded?
No. The lookup uses the built-in table and runs entirely in your browser, so nothing you type is sent to a server.
Learn more
- MIME types and the Content-Type header explained
What MIME types are, how servers use the Content-Type header, why one type can have several extensions, and when to reach for octet-stream.
Related tools
HTTP Status Code Lookup
Look up any HTTP status code by number or name. See the reason phrase, the class (2xx, 4xx, 5xx) and a plain-English meaning. Free, fast and private.
CSV to Markdown
Convert CSV data into a clean GitHub-flavored Markdown table. Handles quoted fields, commas, and pipes, with column alignment. Free, fast and private.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
ASCII Table
Full ASCII table for all 128 codes with decimal, hex, octal and binary values, character names and descriptions. Search by code, hex or character.
Aspect Ratio Box Generator
Generate CSS for a responsive aspect-ratio container. Use the modern aspect-ratio property or the padding-top fallback, then copy the ready code.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.