Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Chrome, what's the simplest way to view the mime type of a document?

Tags:

In Firefox, you can select "View Page Info" from the right-click menu, and the mime type will be displayed.

But the same "View Page Info" command in Chrome does not show the mime type.

Feels like I'm overlooking something obvious.

like image 738
Matthew Butterick Avatar asked Mar 01 '13 00:03

Matthew Butterick


People also ask

What is MIME type document?

A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

How the browser works MIME types?

MIME types enable browsers to recognize the filetype of a file which has been sent via HTTP by the webserver. As a result the browser is able to choose a suitable displaying method. Common MIME types are for example text/html for html-files or image/jpeg for jpeg-files.


2 Answers

Earlier & later versions of Chrome may be slightly different

Chrome v50.0.2661.102 m

To open Chromes developer tools (several options):

  1. Menu -> More Tools -> Developer Tools
  2. Ctrl + Shift + I
  3. Hit the F12 key

Once open, select the Network tab, select the name of the resource on the lefthand side, then hit the Headers tab. Under Response Headers find Content-Type which is your mime type.

enter image description here

With images you can select the Preview tab and you will be able to see some information about the resource, including the mime type, located at the bottom of the developer window.

enter image description here

like image 165
Prancer Avatar answered Sep 19 '22 21:09

Prancer


Hit F12 and then go to Network tab. If you want html document then narrow the filter to Documents (on the bottom).

like image 34
Łukasz Wojciechowski Avatar answered Sep 23 '22 21:09

Łukasz Wojciechowski