MIME type lookup
Find the MIME type for a file extension, or the extensions for a MIME type, and whether it compresses well.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/mime-lookup \
-H 'Content-Type: application/json' \
-d '{"input":{"query":"photo.webp"}}'
import json, urllib.request
body = {'input': {'query': 'photo.webp'}}
request = urllib.request.Request("https://setget.net/v1/tools/mime-lookup", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/mime-lookup", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"query":"photo.webp"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "mime-lookup",
"input": {
"query": "photo.webp"
}
}
{
"input": {
"query": "photo.webp"
}
}
Endpoint: POST /v1/tools/mime-lookup. Over MCP: run_tool with slug: "mime-lookup".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
query |
string | yes | A file extension, a file name or a MIME type. |
Examples
Input
{
"query": "photo.webp"
}Result
{
"query": "photo.webp",
"direction": "extension",
"extension": "webp",
"mime": "image/webp",
"extensions": [
"webp"
],
"kind": "binary",
"compressible": false
}From type to extensions
Input
{
"query": "application/json"
}Result
{
"query": "application/json",
"direction": "mime",
"extension": "json",
"mime": "application/json",
"extensions": [
"json",
"map"
],
"kind": "text",
"compressible": true
}Questions
- What does "compressible" mean?
- Whether gzip or Brotli usually makes the file noticeably smaller. Text formats do; images, video, archives and WOFF fonts are already compressed.
- Is the file inspected?
- No. The answer comes only from the name or type you enter.
Related tools
- HTTP headers parserTurn a raw block of HTTP headers into JSON, explain the well-known ones and audit security headers.
http-headers-parse - .gitignore testerCheck which paths a .gitignore file ignores and which line decided each one, using real Git matching rules.
gitignore-test - Cache-Control explainerExplain a Cache-Control header directive by directive and how browsers and CDNs will treat the response.
cache-control-explain - Card number (Luhn) and IBAN validatorCheck a card number with the Luhn checksum and name its network, or check an IBAN by length and mod-97.
luhn-iban-validate - CIDR and subnet calculatorWork out the network, netmask, host range and size of an IPv4 or IPv6 CIDR block, and split it into subnets.
cidr-calc - Cookie parserParse Cookie and Set-Cookie headers into JSON, with warnings about missing security attributes.
cookie-parse