MIME type
Definition
A MIME type identifies the kind of transmitted data so that receiving programs can classify and process it appropriately.
Media types usually consist of a type and subtype, for example text/html or image/jpeg. In HTTP, the information is transmitted in the Content-Type header. Browsers base their processing on this; the file extension alone is not a reliable substitute.
Simply explained
You label a data packet so that the receiving program knows what kind of content it contains.
Why it matters in practice
Correct type specifications are important for displaying web pages, providing files, and the cooperation of interfaces.
Example from business
Possible example: A server delivers a JSON response with application/json so that a calling system can process it appropriately.
Limits and pitfalls
- Renaming a file extension does not change the data format. Incorrect type declarations can disrupt display and processing and should be corrected on the server.
Origin & history
MIME types are standardized as Internet media types and registered by IANA; their use extends beyond websites.
Use in mid-sized companies
- IT teams can check the type declarations of downloads and interfaces and align them with the actual delivered format.
Frequently asked questions
Is a MIME type the same as a file extension?
No. It is a separate format specification; filename and actual content may differ from it.
Sources
- MIME types. · MDN (o. J.): MIME types.
Editorially reviewed on: