FormatterHQ

MIME Type Lookup

Type a file extension or a media type to find the matching MIME type and Content-Type header value, then copy it with one click.

Loading tool…
Ready.

How to use the MIME Type Lookup

  1. Type an extension (webp, .docx) or part of a media type (application/json, font) into the search box.
  2. Click a filter chip such as image, video or font to limit results to one top-level type.
  3. Read the extension and MIME type side by side in the results table.
  4. Click Copy on a row to copy the MIME type for your server config or code.

MIME Type Lookup for File Extensions and Content-Types

This MIME type lookup maps file extensions to the media types browsers and servers expect, and works the other way too: search video/ and you get every video extension in the table. It covers the formats web developers handle daily, from images and fonts to Office documents, archives, certificates and 3D models, plus common content types that have no file extension such as multipart/form-data.

What is a MIME type?

A MIME type (officially a media type) is a two-part label like image/png: a top-level type, a slash and a subtype. Servers send it in the Content-Type header, and browsers use it rather than the file name to decide whether to render, play or download a response. A wrong type causes real bugs: a stylesheet served as text/plain is ignored, and a script served with the wrong type is blocked when the server sends X-Content-Type-Options: nosniff.

Example

You can search several items at once, separated by spaces or commas. Full file names work too, since only the extension is used:

webp avif .woff2 report.pdf

.webp          image/webp
.avif          image/avif
.woff2         font/woff2
.pdf           application/pdf

Gotchas worth knowing

  • JavaScript is text/javascript. The older application/javascript still works, but the current standard names text/javascript for .js and .mjs files.
  • .ts is not TypeScript here. The registered meaning of .ts is an MPEG transport stream (video/mp2t), used by HLS video. Servers that send that type for TypeScript source can confuse tools, so be explicit in your config.
  • SVG needs image/svg+xml. Served as text/xml, an SVG in an <img> tag will not display. You can check the file itself in the SVG viewer.
  • Office files use long vendor types. A .docx is application/vnd.openxmlformats-officedocument.wordprocessingml.document, which is why copying beats typing.
  • Unknown binary data should be sent as application/octet-stream, which tells browsers to download rather than display it.

Where you use the result

Paste the type into an nginx types block, an Apache AddType line, an S3 object's metadata, a Content-Type header in your API, or the accept attribute of a file input. It is also the prefix of a data URI, so when you build one with the image to Base64 converter the MIME type goes right after data:. For response codes rather than content types, see the HTTP status codes list.

Privacy

The lookup table ships with the page and every search runs locally in your browser, so the file names you type are never uploaded.

Frequently asked questions

What MIME type should I use for JSON?
Use application/json. It needs no charset parameter because JSON is defined as UTF-8. Related types include application/ld+json for JSON-LD and application/problem+json for API error bodies.
Does the browser trust the file extension or the Content-Type?
For HTTP responses, the Content-Type header wins. Browsers may sniff the content when the header is missing or generic, but the X-Content-Type-Options: nosniff header turns that off. File extensions matter mainly for local files and downloads.
Why is my .mjs or .wasm file blocked?
Browsers require a JavaScript MIME type for module scripts and application/wasm for streaming WebAssembly compilation. If your server falls back to application/octet-stream or text/plain for these extensions, loading fails. Add the correct types to your server or CDN configuration.
What should I use when I do not know the file type?
Send application/octet-stream. It means arbitrary binary data, and browsers will offer to download it instead of trying to display it. Add a Content-Disposition: attachment header if you also want to suggest a file name.

Last updated September 26, 2026

Related tools

File Type Checker Find out what a file really is from its content, not its name. Detects 150+ formats and warns when the extension does not match. DNS Lookup Look up A, AAAA, CNAME, MX, NS, TXT and SOA records for any domain. IP Address Lookup Look up the approximate country, region, city, time zone and network (ASN) of any public IP address, from a local database. MX Lookup Find the mail exchange (MX) servers and priorities for a domain or email address. Nameserver Lookup Find the authoritative nameservers (NS records) of any domain. TXT Record Lookup Read the TXT records of a domain, including SPF, DKIM and verification strings. MongoDB ObjectId to Timestamp Extract the creation date from MongoDB ObjectIds and see the random and counter parts; also builds a date-range _id query. QR Code Generator Create free QR codes for URLs, text, Wi-Fi, vCards, e-mail, SMS, phone numbers, locations and events. Custom colours, PNG and SVG. QR Code Reader & Scanner Scan QR codes from an image, screenshot or your camera and see the content — links, Wi-Fi passwords, contacts — safely before opening. Regex Cheat Sheet Interactive regex cheat sheet: anchors, classes, quantifiers, groups, lookarounds, flags and Unicode, with clickable examples and a flavour table. Regex Escape Escape special characters so any text can be matched literally inside a regular expression in JavaScript, PCRE, Python or Java. Regex Explainer Break a regular expression into tokens and explain each part in plain English: groups, quantifiers, classes, anchors and lookarounds.