MIME Type Checker

Check the MIME type of a file to understand its format.

Data & File Tools

Inspect MIME Types Online: Determine Official IANA Media Types & Debug HTTP Content-Types

You deploy a web application or configure an Amazon S3 / Cloudflare CDN bucket to host SVG icons, WebP images, or font files. But when you visit your website in a browser, your custom fonts fail to load with console warnings, your SVGs download as raw files instead of displaying, or CSS stylesheets are blocked with the ominous security warning: "Refused to apply style because its MIME type ('text/plain') is not a supported stylesheet MIME type."

In internet architecture, web browsers do not determine how to display a file based on its filename extension (.html, .css, .json). Instead, browsers rely strictly on the MIME type (Multipurpose Internet Mail Extensions) sent in the server's HTTP Content-Type header.

Our free MIME Type Checker analyzes any file or file extension to identify its standardized IANA media type, associated file extensions, binary signatures, and proper server configuration headers. Everything computes in-browser with zero latency.

Standard Web Development MIME Types Reference

File TypeOfficial IANA MIME TypeAssociated Extensions
JSON Dataapplication/json.json
HTML Documenttext/html.html, .htm
CSS Stylesheettext/css.css
JavaScript Moduletext/javascript.js, .mjs
WebP Imageimage/webp.webp
SVG Vectorimage/svg+xml.svg
Web Open Font (WOFF2)font/woff2.woff2
PDF Documentapplication/pdf.pdf

MIME Sniffing & The "X-Content-Type-Options: nosniff" Security Header

Historically, if a web server misconfigured a file's MIME type, web browsers engaged in "MIME sniffing"—attempting to guess the content type by examining the first few bytes of the response body.

🚨 The Dangerous Cross-Site Scripting (XSS) Vector

MIME sniffing introduced severe security risks. An attacker could upload an image avatar that secretly contained malicious HTML/JavaScript code. When the browser sniffed the file, it executed the script rather than rendering an image, leading to stolen user session cookies.

Modern security standards mandate sending the HTTP header X-Content-Type-Options: nosniff. This instructs browsers to strictly respect the declared MIME type, making correct MIME configuration key for all websites and CDNs.

Frequently Asked Questions

What is the default MIME type when a server cannot recognize a file?

When a web server does not recognize an extension, it typically falls back to application/octet-stream. This tells browsers that the payload is generic binary data, prompting an automatic file download rather than in-browser display.

Can I check a MIME type just by typing an extension?

Yes! You can either drop an actual physical file into the tool or type an extension (such as .wasm, .csv, .mp4) into the search bar to look up its official IANA media type.

Is there any data sent to external servers?

None. All file header inspection and MIME dictionary lookups execute locally in your browser memory.