Ready to Execute
Click the blue ▶ Run button in the header bar or press Ctrl + Enter to compile and preview your results.
File Extensions and MIME Types (What a Browser Actually Obeys)
Serve a VTT as text/plain and a <track> element refuses it
About MIME Type Checker — Free Online Tool
MIME Type Checker explains a content type in both directions — type to meaning, or filename to type — including the structured-syntax suffix, the charset rule and whether it is active content.
Parses the top-level type, subtype and parameters, recognises the "+xml" style suffixes, and flags the types that can execute script in the serving origin.
Types are looked up from a table in the page. Nothing about the file is transmitted.
Picking the right Content-Type header, understanding a type you have been handed, diagnosing mojibake from a missing charset, and reviewing upload handling.
Also known as: content type lookup · mime type for extension · what is this mime type · media type checker · content-type header
When to use it
Because the Content-Type header decides what a browser does with a response, and getting it wrong produces failures that look like problems with the file.
How it works
A type is split into its top-level type, subtype and parameters; a filename is resolved through the extension table. Either way the result is explained.
Nine Top-Level Types, And Only Nine
text, image, audio, video, application, font, multipart, message and model. Everything else is a typo or a private type. The distinction that matters most is text versus application: a text type is human-readable and needs a charset, while application covers everything binary or structured. Note that font only became a top-level type in 2017, which is why older material and older servers still use application/font-woff.
The +xml Suffix Tells A Parser What To Do
image/svg+xml, application/atom+xml, application/ld+json: the suffix after the plus is a structured-syntax suffix, and it says the format is built on top of that syntax. A tool that does not know what Atom is can still parse it as XML because of the suffix. It is a small piece of design that lets generic tooling do something useful with a type it has never heard of.
A Text Type Without A Charset Is A Guess
Serve text/html or text/csv with no charset and the browser decides the encoding itself, from heuristics that differ between browsers. When its guess differs from the actual bytes, you get mojibake — and the file is blamed. Add "; charset=utf-8". The exception is application/json, which is defined as UTF-8 by its own specification, so the parameter is not used there.
The Types That Can Run Code
text/html, application/javascript, image/svg+xml and application/xhtml+xml can all execute script in the context of the origin that served them. Serve a user-uploaded file with any of them from your own domain and its author has your origin, your cookies and your permissions. The mitigations are a separate domain for user content, Content-Disposition: attachment, and X-Content-Type-Options: nosniff — which also stops a browser sniffing the content and deciding the type is something else.
How to Use MIME Type Checker in 4 Easy Steps
Follow this simple guide to process your files in seconds directly inside your browser tab.
Provide Input for MIME Type Checker
Paste your payload, code snippet, or string into the MIME Type Checker editor workspace. A two-way lookup between filenames and MIME types, with an explanation of what each part of a type means.
Configure Formatting & Validation Rules
Select indentation preferences, minification, encoding options, or validation rules. Because the Content-Type header decides what a browser does with a response, and getting it wrong produces failures that look like problems with the file.
Run In-Browser Engine
The engine executes MIME Type Checker locally in your browser with microsecond latency and zero server transmission.
Copy or Download Output
Copy the sanitized, formatted, or generated output directly to your clipboard or download it for your project.
Why Use MIME Type Checker on ShortTrick
Engineered for maximum speed, strict privacy, and frictionless digital productivity.
Zero Code or Token Leaks
Proprietary source code, API keys, database queries, and tokens processed in MIME Type Checker never leave your browser.
Microsecond Performance
Optimized AST parsers and Web Crypto APIs process large payloads in MIME Type Checker in milliseconds.
Syntax Validation & Formatting
MIME Type Checker highlights syntax errors and enforces standard formatting conventions automatically.
Offline Ready
Once loaded, MIME Type Checker functions entirely offline without requiring an active internet connection.
Frequently Asked Questions About MIME Type Checker
Common questions regarding MIME Type Checker, data privacy, file format compatibility, and usage limits.
Popular Searches & Related Tasks for MIME Type Checker
Common search phrases, secondary format tasks, and workflows users reach for when using this tool.
Direct Variations & Search Synonyms (8)
Specific Workflows & Long-Tail Queries (15)
Semantic Standards & Technical Entities (20)
Three different claims about what a file is
A file announces its type in three places, and they are allowed to disagree. Only one of them is written by whatever created the file; the other two are claims anybody can change, which is exactly why relying on the convenient one is a standard security mistake.
| Signal | Lives in | Set by | Trustworthy |
|---|---|---|---|
| Extension | The filename | Anyone who renames it | No |
| MIME type | The HTTP header | The server, often guessing | Only as far as the server |
| Magic bytes | The first bytes of the file | The program that wrote it | Largely yes |
| Encoding | The bytes throughout | The program that wrote it | Detected, not declared |
In practice: Renaming a file changes nothing about it, which is why an upload accepted on its extension alone is a hole: the bytes inside decide what actually runs. Encoding is a separate question again, and a mis-detected one is what turns an apostrophe into three strange characters. A server sending the wrong MIME type is its own category of problem, and it is the reason a correct script can refuse to load with no error that mentions the script.
Related Developer Tools Tools & Popular Utilities
Explore complementary browser-based tools with zero file uploads and instant in-memory execution.
More Developer Tools Tools
Popular Tools Across Other Categories
Related Reading & Tutorials
Guides, articles, and best practices for developer tools workflows.

File Extensions and MIME Types (What a Browser Actually Obeys)
