What Are MIME Types
MIME stands for Multipurpose Internet Mail Extensions, a standard that began as a way to label the contents of email attachments so a mail client would know how to handle them. The same labels turned out to be just as useful on the web, where a server needs to tell a browser whether it is sending a web page, an image, or a download. Today a MIME type, also called a content type, is the universal way to declare the format of a piece of data.
The label follows a simple type/subtype structure. The type is a broad category such as text, image, audio, video, or application, and the subtype names the specific format within it, as in text/html, image/png, or application/json. This two-part scheme lets software make quick decisions: a browser renders text/html, displays image/png inline, and prompts a download for an unfamiliar application subtype. Getting the label right is what keeps that behavior predictable.