A little help goes a long way. Find a tool/

Reference

MIME Type Lookup

Free MIME type lookup: enter an extension (pdf) or a content type (image/png) and get the mapping, category and notes for 120+ common file types.

YOUR WORKSPACEFree to use. No sign-up.
—
Enter an extension or a MIME type above.

Common types at a glance

Extension MIME type Note

Deep dive guides

A LITTLE CONTEXT · 3 MIN READMIME Types Explained: The Labels Behind Every Download

How mime type lookup works

A MIME type (officially a media type) is the two-part label a web server sends with every file — image/png, application/pdf, text/html — so the browser knows how to handle it. The mapping runs in both directions, and this tool handles both: enter an extension like pdf or .pdf to get its content type, or enter a type like image/png to see which extensions use it. The category (text, image, audio, video, application, font) comes from the type’s first half and is shown on every row.

The mapping is genuinely many-to-many, and the table is honest about it. One extension can carry several types (.webm is video/webm for video and audio/webm for audio); one type can own several extensions (image/jpeg covers both .jpg and .jpeg); and some historic types were never registered but won anyway (image/x-icon for favicons). Where common practice disagrees with the IANA registry, the note column says so — for example JavaScript is officially text/javascript as of RFC 9239, even though plenty of older stacks still send application/javascript.

When a server sends no type, browsers fall back to application/octet-stream — "a stream of bytes" — and often download the file instead of displaying it, which is the single most common cause of files "downloading instead of opening". Knowing the right type fixes that: HTML needs text/html or your page renders as plain text, CSS needs text/css, and JSON APIs should send application/json. The common-types table below the search covers the two dozen types that account for nearly all day-to-day web traffic.

Frequently asked questions

What is the difference between a file extension and a MIME type?
The extension (.pdf) is an operating-system naming convention; the MIME type (application/pdf) is the label actually transmitted, typically in an HTTP Content-Type header. Servers should decide the type from configuration or content — not trust the extension, which anyone can rename. Mismatched pairs are a classic debugging find this tool is built for.
Why does my webm search show two different types?
WebM is a container format that can hold either video (video/webm) or audio-only streams (audio/webm). The right label depends on the actual content of the file, not the extension. Browsers often sniff or fail gracefully, but strict software — CDNs with nosniff, mobile apps — will reject a mislabelled file.
What is application/octet-stream and when should I use it?
It is the catch-all for arbitrary binary data, and the correct choice only when nothing more specific applies. Because browsers cannot render it, they typically download the file. If your file "downloads instead of opening", the server is probably sending octet-stream — fix the Content-Type and the browser will handle it properly.
Which MIME type should I send for JavaScript?
text/javascript. RFC 9239 made it the registered type in 2022, and modules refuse to execute without a JavaScript type. application/javascript still works everywhere but is the legacy spelling — new server configs should use text/javascript.
Where does the official list live?
The IANA media types registry (iana.org) is the authoritative source, and it lists thousands of types including vendor-specific ones. This tool covers the roughly 120 types that cover almost all practical work, including a handful of unregistered but universally used types, which are flagged in the notes.