MIME type lookup

Find the MIME type for a file extension, or the extensions for a MIME type, and whether it compresses well.

Input

A file extension, a file name or a MIME type.

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

NameTypeRequiredWhat 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.