Tools.GamesLoop Logo
TOOLS.GAMESLOOP160+ Free Online Tools

MIME Type Lookup

Find the MIME type for any file extension, and vice versa.

MIME Type Lookup

Developer tool running locally in browser

Advertisement
Ad Space (auto) — Configurable via NEXT_PUBLIC_ADSENSE_CLIENT

What does MIME Type Lookup do?

Look up the correct Content-Type for a file extension, or find which extensions a MIME type covers. Serving the wrong type is a frequent cause of files downloading instead of displaying, or of a browser refusing to run a script.

How to Use MIME Type Lookup

  1. 1
    Type an extensionWith or without the dot.
  2. 2
    Read the MIME typePlus any charset guidance.
  3. 3
    Search in reverseEnter a MIME type to see its extensions.

Key Features

  • Search by extension or by MIME type
  • Several hundred types covering images, video, audio, documents, fonts and archives
  • Notes on which types need a charset parameter
  • Flags obsolete types that have been superseded
  • Ready-to-paste Content-Type header for each result

Frequently Asked Questions

What is a MIME type?

A two-part label such as text/html or image/png that tells a client what a file actually is. Servers send it in the Content-Type header, and browsers use it to decide whether to render, download or refuse the file.

Why does my file download instead of displaying?

Usually because it is served as application/octet-stream, the generic "unknown binary" type. Configure your server with the correct type for that extension and the browser will render it.

Should I include a charset?

Yes for text types. text/html; charset=utf-8 avoids the browser guessing the encoding, which is a common cause of mojibake. Binary types have no charset.

Can I trust a file’s MIME type?

Not from a client. An uploaded file’s declared type is set by the browser from the extension and is trivially spoofed. Always verify server-side by inspecting the file’s magic bytes.