File Type Detector

Identify any file — even without an extension, or with the wrong one — from its first bytes.

Drop one or more files

they are only read on your device

● Your files are processed locally in your browser and are not uploaded to our servers.

How to identify a file

  1. Drop one or more files. They are only read on your device.
  2. For each file, you get the detected type, the matching extension and MIME type.
  3. If the extension doesn't match the content, you get a warning.

How it works: file signatures

Most file formats start with a fixed sequence of bytes called a signature or magic number. The detector compares the first bytes of your file with about 60 known signatures, tells ZIP-based formats apart (DOCX, XLSX, PPTX, EPUB, APK…) and recognizes text formats like JSON, CSV, HTML and SVG.

FormatSignature (hex)As text
PDF25 50 44 46%PDF
PNG89 50 4E 47.PNG
JPEGFF D8 FF—
ZIP / DOCX / XLSX50 4B 03 04PK
Windows program (EXE, DLL)4D 5AMZ
MP4 / MOV… 66 74 79 70 (bytes 4–7)ftyp

To look at these bytes yourself, open the file in the Binary File Viewer.

When is this useful?

How to fix a wrong extension

Rename the file with the detected extension. On Windows, enable View → Show → File name extensions in File Explorer first; on macOS, use Get Info → Name & Extension. Renaming only changes the label: to change the format itself, use a converter (for example WebP to JPG).

FAQ

Is a file safe if the type matches?

Not necessarily — the type tells you what the file is, not whether it's harmful. Don't open executables or macro-enabled documents you didn't expect.

Can it detect plain text files?

Text files have no signature, but common formats (JSON, CSV, HTML, XML, SVG) are recognized from their content.

What's a MIME type?

The standard name of a format used by browsers and servers, like image/png. See the MIME Type Detector.

Are my files uploaded?

No. Only the first bytes are read, in your browser.