MIME Type

[Updated: Feb 11, 2016, Created: Feb 11, 2016]

Web HTTP 

Also known as: Media Type or Content Type

MIME stands for Multi-purpose Internet Mail Extensions.

When we send data to a software which requires MIME type information other than data , we include MIME type which tells the receiving software how to handle the data.

Typically MIME types form a standard way of classifying data types on the Internet.

A MIME type has two parts: a top level type and a subtype, (and sometimes an optional parameters).

The two types are separated by a slash (/).

The two parts are needed just to classify a sub time under top level type.

For example application/xml, is MIME type for a XML file.

The currently common top-level type names are: application, image, message, model, multipart, text, video.

Sub-type name typically consists of a media type name

Some MIME types:

  • text/html used for HTML file.
  • text/csv used for CSV file.
  • text/plain used for text data.
  • text/x-java-source used for Java source file.
  • Application/Pdf used for PDF file.
  • application/json used for JSON data.