A MIME type, or media type, is a standard identifier for the format of a file or response, written as type/subtype. Servers send it in the Content-Type header so clients know how to interpret the body.
Why it matters
A wrong type can break a site: a stylesheet served as text/plain may be ignored, and JSON served as HTML can be mis-rendered. Browsers may also guess types, which is a security risk, so the X-Content-Type-Options: nosniff header tells them to trust the declared type.
You can see the declared type for any URL by inspecting its response headers, which is the fastest way to confirm whether a server migration changed how files are labeled.
Example
Content-Type: text/html; charset=utf-8
Content-Type: application/json
Content-Type: image/webp
Common mistakes
- Serving JavaScript or CSS with an incorrect type after a server migration.
- Omitting the charset for text responses.
- Relying on file extensions instead of sending the header correctly.
Related
Get notified when this term updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.