The Content-Type header, and why the wrong one breaks things
When a browser asks a server for a file, the answer comes with a header such as Content-Type: image/webp. That one line decides what the browser does next. It does not look at the end of the URL; a link ending in .webp served as text/html is treated as a web page. So when an image shows as a screen of garbage, a font fails to load, or a download opens as text, the first thing to check is the type the server sent.
Here is a worked example. Type photo.webp into the box above. The tool takes the last extension, webp, and finds image/webp: a WebP image, the only extension with that type. Now type the type itself, image/webp, and you land on the same row. Type IMAGE/WEBP; charset=utf-8 and you still do, because types are not case sensitive and parameters after the semicolon do not change which type it is. Try backup.tar.gz and you get application/gzip, with a note that a .tar.gz is a tar archive that was gzipped, which is why it is served as gzip and not as tar.
JavaScript shows why the exact name matters. For years servers sent scripts as application/javascript or application/x-javascript, and some sent text/plain by mistake. In 2022 RFC 9239 settled on text/javascript and marked the others obsolete. Browsers still run scripts sent with any of the JavaScript names. They do not run one sent as text/plain when the server also sends X-Content-Type-Options: nosniff, a header many security checklists add. And JavaScript modules are stricter still: a module served with a non-JavaScript type is refused outright. That is why a site can work locally and break on a new host.
The other direction trips people up in upload forms. A file picked from disk has no server and no header, so the browser asks the operating system, which guesses from the extension. Windows often answers application/x-zip-compressed for a .zip, and older systems may say image/pjpeg for a JPEG. A server that accepts only application/zip will then reject a perfectly good file. The rows here list those older names under the type they mean, so you can see which ones to accept.
There are limits to this table. It covers about 190 common extensions, not the thousands in the full IANA registry or the freedesktop database, and several formats have no registered type at all; those rows say so. A type also tells you only what a file claims to be, the same as its name does. Rename a PNG to .pdf and both the extension and the type it implies will be wrong. To find out what a file really is, its first bytes are the evidence, and the File Inspector reads those.