MIME Type Detector

Find what a file really is from its first bytes, its MIME type and whether its extension is right. Catch renamed or disguised files.

Runs in your browserNo sign-upWorks offline
↑Drop files here

or

Any file type · Files stay on your device

FileSizeStatus
report-final.pdf1.4 MBReady
photos-june.zip38.2 MBReady
notes.txt4 KBReady
Sample files shown

What the MIME Type Detector does

The MIME Type Detector identifies files by their contents, not their names. Most file types begin with a recognisable signature, a “magic number”, and the tool reads the first few bytes to find it. It shows the real type, its MIME type, what your browser guessed from the name, and whether the extension matches.

How to use it

  1. Drop one or more files onto the page.
  2. Read what each file really is and its MIME type.
  3. Check the last column: a warning means the extension does not match the contents.

Example

A file called photo.jpg that starts with the bytes 25 50 44 46 2D (“%PDF-”) is really a PDF document. The tool shows application/pdf and warns that the name should end in .pdf. A .docx file shows as a ZIP archive, because Word documents are ZIP files inside.

Why it matters

Upload forms, email filters and apps sometimes trust the extension, so a file with the wrong one may be rejected or open in the wrong app. A program disguised with a document extension is a common trick in scam emails: if a “PDF” turns out to be a Windows program, do not open it.

Plain text formats such as CSV, JSON and HTML have no signature, so they are recognised by their content and extension instead. The browser’s own guess, shown under each name, is based only on the extension.

Questions people ask

What is a MIME type?

A standard label for a kind of file, such as image/png or application/pdf, used by browsers and email to decide how to handle it.

Why does it say “Unknown binary file”?

The file does not start with any of the signatures the tool knows. It may be a less common or private format.

Is the whole file read?

No. Only the first 4 KB, and nothing is uploaded.

Related tools