MIME Type Lookup
Type an extension (png, .tar.gz, photo.png) to get its MIME type and whether it is text or binary, or a MIME type to list every extension registered for it. About 180 common types for images, documents, audio, video, archives, code, fonts and data formats.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
In both directions
Type an extension and the tool returns the MIME type plus whether the format is treated as text or binary; type a MIME type and it lists every extension registered for it. The table covers about 180 common types across images, documents, audio, video, archives, code, fonts and data formats, so the answer for the format you have is usually a single lookup.
What counts as an extension
A leading dot is stripped, so "png" and ".png" are the same query, and a dotted filename such as photo.png is answered from its final extension. Case is ignored. A query containing a dot is split on the last one, the same rule Content-Type guessing uses when it has to pick a single type from a name.
How the mime-to-ext list behaves
When you ask in the other direction, every extension the table registers for that MIME type is returned, not just the first a server might choose. That is the honest answer, because many types legitimately have several — image/x-icon has both ico and cur, and a video type can appear with several extensions depending on its container.
The compound-extension rule
A name like .tar.gz is matched by its last extension only, so it answers gz and application/gzip rather than resolving the pair. Full compound matching is intentionally not attempted because it is ambiguous — .tar.gz could mean gzip data or a tarball depending on the tool — and the single type is what a Content-Type header carries anyway.
A local dictionary
The table is embedded in this page and the lookup is a plain map read in the tab. No request is made, so a filename that reveals an internal project structure stays on your machine, and the tool works offline.
Questions
How are compound extensions like .tar.gz handled?
Only the last extension is matched (.gz → application/gzip). Full compound-extension matching (.tar.gz) is ambiguous and intentionally not attempted.
What does text or binary mean in the result?
It is a hint from the table about the format’s usual kind — text formats such as JSON, CSS and CSV are shown as text, while images, audio, video and compressed data are shown as binary. It is a guide, not a rule enforced by the tool.
Why does a MIME type return several extensions?
Many types are legitimately served with more than one extension. The tool lists every extension it has registered for that type rather than picking one, so you can choose the convention your project uses.
Related tools
See categoryData URI Converter
Encode text or an image as a data: URI, or decode a data: URI back to text or an image file.
HTTP Status Code Reference
Look up HTTP status codes — what they mean and when APIs return them.
File Metadata
Inspect file names, sizes, MIME types, timestamps and SHA-256 hashes.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.