Glossary term

MIME Types

MMore terms under M

A MIME type is a label telling software what kind of content it is receiving, such as a web page, image or PDF. It helps a browser decide how to display or handle a file.

A website can send the label as part of its response to the browser. These extra response details are called headers. Here, text/html identifies a web page written in HTML, the markup used to structure pages:

HTTP · response content type
Content-Type: text/html; charset=utf-8

Other labels include image/png for a PNG image and application/pdf for a PDF document.

The label and filename are separate. A file can be named report.pdf while the website sends a different label. A wrong label can cause an unexpected download or stop a file from displaying properly.

The label is a description, not a safety check. Software accepting uploaded files still needs to check what they contain. The name MIME comes from email, where these content labels also have a job.

Sources

← Browse Glossary: M