Free tools

Free MIME Type Lookup

Find the correct MIME type for file extensions and verify content-type mappings quickly.

Copy-paste outputs

Win high-intent buyers from ChatGPT, Gemini, Claude, Perplexity, and AI Overviews before your competitors do.

One operating layer for monitoring, measurement, content action, and technical cleanup.

AI Visibility TrackingCompetitive RankingSentiment by ModelSource CitationsAI Overviews TrackingPrompt MonitoringAI Visibility TrackingCompetitive RankingSentiment by ModelSource CitationsAI Overviews TrackingPrompt Monitoring
Content GapsAI InsightsAdvanced AnalyticsData CopilotBlog GenerationUGC CampaignsLLM CouncilContent GapsAI InsightsAdvanced AnalyticsData CopilotBlog GenerationUGC CampaignsLLM Council
Shopping IntelligenceCrawler MonitoringGEO OptimizationMulti-Brand ManagementShopping IntelligenceCrawler MonitoringGEO OptimizationMulti-Brand Management

Tool 01

MIME Type Lookup

Resolve file extension to MIME type (and reverse) for robust content-type handling.

MIME Type Lookup
Look up MIME type from file extension and reverse lookup extensions from MIME type.

How it works

MIME Type Lookup: methodology and worked example

How this tool computes its result

A static lookup table (`MIME_BY_EXTENSION`) hardcodes roughly 29 common extension-to-MIME-type pairs at module scope. A reverse index (`EXTENSIONS_BY_MIME`) is derived once with `reduce`, grouping every extension that shares a MIME string (e.g. both `jpg` and `jpeg` map to `image/jpeg`). The query is lowercased and a single leading "." is stripped, then checked first against the extension table, then against the MIME-type table, and reported "not found" if neither matches.

Worked example

Querying "jpg" matches the extension table and returns MIME type `image/jpeg`. Querying "image/jpeg" (the reverse direction) matches the MIME table and returns extensions `["jpg", "jpeg"]` — both keys mapping to that same MIME string. Querying "application/javascript" returns `["js", "mjs"]`.

When not to use this tool

The table covers only about 29 hardcoded extensions/MIME types — anything outside it (`.avif`, `.heic`, `.wasm`, `.parquet`, etc.) returns "No mapping found" even though it is a real, valid type; this is not backed by the full IANA media type registry.

Common mistakes

  • - Typing a MIME type with parameters attached, like "application/json; charset=utf-8" — the lookup lowercases the whole string but does a strict key match against the table, so anything beyond the bare "application/json" fails to match.
  • - Expecting compound extensions like ".tar.gz" to resolve — the code strips only a single leading dot and looks up the entire remaining string as one key, so ".tar.gz" never matches the "gz" entry.
  • - Assuming a "not found" result means the extension or MIME type is invalid — it only means it is not one of the roughly 29 pairs hardcoded in this specific tool's table.

Ready to dominate AI search visibility?

Track where your brand shows up in AI answers, close the content gaps that cost conversions, and stay visible across ChatGPT, Claude, Gemini, Perplexity, and Grok.