Look up the MIME type for a file extension, or find every extension for a media type like image/. A searchable table of 90+ common types, fully in-browser.
Runs entirely in your browser — your data never leaves your device.
How to use MIME Type Lookup
What it does & when you need it
A MIME type — also called a media or content type — labels the format of a file
as type/subtype, like text/html or image/png. Servers send it in the
Content-Type header so a browser knows whether to render, download, or run the
bytes it receives. This tool maps file extensions to their types and back, across
a table of more than ninety common formats. It all runs in your browser, so
searching is instant and works offline.
Reach for it when you are configuring a web server, setting the Content-Type
on an upload or an API response, debugging a file that downloads instead of
displaying, or just need to confirm the right type for an extension.
How to use
Type an extension with or without the dot (pdf or .pdf) to get its MIME
type.
Type part of a media type such as image/ to list every matching extension.
Type a word like font or video for a text search across both columns, or
clear the box to browse the whole table. Copy with Copy or Ctrl/Cmd +
Enter.
Things worth knowing
One extension can have more than one type. Formats evolve: .js was long
served as application/javascript, but the current standard is
text/javascript, which is what this table uses. When rows share an extension or
a type, all of them are listed so you can match your platform.
The extension is not the whole story. Many servers and browsers also sniff
the first bytes of a file, and a wrong Content-Type can be overridden — or
blocked outright when the response carries X-Content-Type-Options: nosniff. Use
this tool to set the correct type rather than trusting a guess.
To see the Content-Type a live URL actually returns, use the
HTTP header checker; to encode a small binary file inline,
try Base64.
Examples
Extension to type
pdf
Returns application/pdf, the Content-Type to serve a PDF with.
All extensions for a media type
image/
Lists every image extension in the table, from png and jpg to svg, webp, and avif.
Look up a full type
application/json
Shows the .json extension that maps to this common API content type.
Frequently asked questions
How do I look up a MIME type?+
Type a file extension with or without the dot (pdf or .pdf) to get its MIME type, or type part of a media type like image/ to list every matching extension. A word such as "font" or "video" does a text search across both columns, and an empty box shows the whole table.
What is a MIME type and where is it used?+
A MIME type, also called a media or content type, labels the format of a file as type/subtype, for example text/html or image/png. Servers send it in the Content-Type header so browsers know how to handle the bytes, and uploads and email attachments are tagged the same way.
Why does the same extension sometimes have more than one type?+
Formats evolve and registries differ. Historically .js was served as application/javascript, but the current standard is text/javascript, which is what this table uses. When several rows share an extension or a type, they are all listed so you can pick the one your platform expects.
Does the browser guess the type only from the extension?+
Not always. Many servers and browsers also sniff the first bytes of a file, and a wrong Content-Type can be overridden or blocked, especially with the X-Content-Type-Options: nosniff header. Use this tool to set the correct type rather than relying on guessing.
Is my input uploaded anywhere?+
No. The lookup table is bundled with the tool and all searching happens in your browser, so nothing you type is sent to a server and the tool works offline.