Small Tools
Web utility

MIME Type Lookup

Find common MIME types by file extension or MIME type.

● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…

How to use MIME Type Lookup

  1. Enter an extension such as .json, or a media type such as application/json.
  2. Select Look Up.
  3. Copy the media type for your Content-Type header or server configuration.

Example

Input / settings:

.json

Output:

.json
application/json

The result lists the extension on the first line and the media type on the second.

When to use

Overview

MIME Type Lookup searches a built-in table of 20 common web and developer file types. Enter an extension, with or without the dot, to get its media type, or enter a media type to get the first matching extension. It is a quick reference, not the IANA registry, and it says nothing about how any particular server is configured.

Supported input

extension or MIME type

Output details

MIME type details

Limitations

Common mistakes

Practical tips

Privacy and security

This tool runs entirely in your browser. Your input is never uploaded to our servers. The lookup uses a table bundled with the page, so nothing you type is sent anywhere. A media type describes how a client should treat content; it does not make a file safe, so validate uploads on the server instead of trusting an extension or a declared type.

References

Frequently asked questions

How many file types does the lookup table cover?

Twenty: json, html, css, js, mjs, ts, txt, csv, xml, pdf, png, jpg, jpeg, gif, svg, webp, mp3, mp4, zip and wasm.

Is the extension lookup case-sensitive?

No. JSON, json and .TXT are all matched, with or without the leading dot.

Which extensions map to JavaScript?

Both .js and .mjs map to text/javascript in this table.

Related tools