Content-Type
Indicates the media type of the response body, telling the browser how to interpret and display the content.
Syntax
Content-Type: <media-type>; charset=<encoding>
Example
Content-Type: text/html; charset=UTF-8
Description
Content-Type specifies the MIME type and character encoding of the response body. One of the most fundamental HTTP headers.
Consists of a media type (e.g., text/html, application/json) and optionally a charset parameter.
Incorrect Content-Type can cause rendering issues and security vulnerabilities. Always set it explicitly with X-Content-Type-Options: nosniff.
How real sites send this header
Home-page responses of 503 popular sites from the enterno.io /check catalogue, checked in the last 30 days.
99.2%
(499 of 503) send Content-Type.
Most common values:
text/html; charset=UTF-8— 360 sitestext/html— 100 sitestext/html;charset=UTF-8— 30 sites
See it on: google.com, yandex.ru, discord.com, github.com, cloudflare.com
Check if your website sends this header correctly
Check your headers →