Small tools. Better flow.

MIME type lookup

Search by extension, filename, or MIME type.

Usage guide

Your input stays in this browser.

Input & options

Text 1 MB

View code examples ↓

Result

Your result will appear here.

Code examples

Starting points for your own code. Run them in the environment shown below.

Node.js 22+ · ES module (.mjs)

Current inputs apply only to fields used by the example. Selected files are not embedded.

Install dependencies

npm install mrmime
import { lookup } from "mrmime";
const extension = "json";
const query = extension === "custom" ? "config.json" : extension;
console.log(lookup(query) ?? "application/octet-stream");

Put it to work

Search by extension, filename, or MIME type.

Details that matter

Format and meaning

Extension-based mapping, not content sniffing or security validation.

Supported scope and limits

Text 1 MB

Split inputs that exceed the limit. If a format or algorithm is unsupported, choose a tool that matches your requirements instead of silently changing the format.