MIME Type Lookup
Find the Content-Type for a file extension, a file name or a URL, or go the other way from a MIME type to its extensions. Each answer says whether the name is in the IANA registry or only common practice, and old names such as image/jpg or application/javascript point you to the registered one.
Runs in your browserNothing you type is sent to a server.
Input and result
What you type is kept in this browser only. Reopen to restore your last run.
Use cases
- Set the Content-Type for a static file or an upload: type the extension and copy the header line.
- Paste a whole file name, a Windows path or a URL with a query string; only the last extension is read, so archive.tar.gz is read as gz.
- Check a name you found in old code: image/jpg, application/javascript and image/x-icon each point to the registered name to send instead.
- See whether a type is IANA-registered or only common practice before you put it in an allow-list - video/webm, audio/wav and application/x-tar are in the second group.
- List a whole group with image/*, video/* or font/* when you are building an accept attribute or an upload filter.
Examples
- Common input
photo.JPG- Read the last extension of a file name, path or URL, or look a MIME type up the other way, and copy the Content-Type header.
- Typical output
image/jpeg / IANA registered / Content-Type: image/jpeg- Use this as a quick sanity check before copying results.
Common mistakes
- The extension is only a label. A file named .png can hold anything, so an upload check that trusts the extension or the browser-sent type alone can be fooled; read the file's signature on the server too.
- .ts is deliberately not in the table: it is TypeScript in a code repository and an MPEG transport stream in a video player, and guessing wrong breaks one of them.
- Only the last extension counts. backup.tar.gz is application/gzip on the outside; the tar inside is only visible after unpacking.
Before you copy
- 1Text types (text/html, text/css, text/csv) carry ; charset=utf-8 in the copied header; application/json does not, because JSON defines no charset parameter.
- 2If the answer is an alias, send the registered name it points to.
- 3For a common-but-unregistered type, check what the receiving server or CDN expects.
Sources
This is where MIME types are officially registered. The 'IANA registered' mark in this tool comes from downloading the registry's CSV files (application, audio, font, image, text, video) on 2026-11-28 and matching every row of the table against them. Names in wide use that the registry does not list, such as video/webm, audio/wav and application/x-tar, are marked as common practice instead.
Basis: IANA Media Types, checked 2026-11-28
RFC 9239 settles JavaScript on the single media type text/javascript and marks application/javascript, application/ecmascript and similar names obsolete. That is why the tool points an old name from legacy code to the registered one.
Basis: RFC 9239 (2022)
Section 11 of RFC 8259 registers application/json and notes that no charset parameter is defined for it, because JSON text is exchanged as UTF-8. So the header this tool copies adds ; charset=utf-8 to text/* types only.
Basis: RFC 8259
FAQ
Does MIME Type Lookup upload my input?
No. This tool runs in your browser unless the privacy badge explicitly says a server route is required.
Can I use this for production secrets?
Avoid pasting sensitive production data into any website. Prefer local test data or redacted payloads.