Kharabeesh
On-device ع

File Type Detector

Identify any file from its first bytes (150+ formats), not its extension. Check the extension matches, spot disguised programs, and inspect details, hex, entropy and SHA-256.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Drop one or more files (any type).
  2. The table shows the real type and whether the extension matches.
  3. Open any file’s details: size, the browser-reported type, first bytes and entropy.
  4. If the extension is wrong, download a copy with the right one, or compute SHA-256.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

How do you know the type without the extension?

Most formats start with fixed bytes called a signature or magic bytes, such as %PDF for PDF and PK for ZIP. We read the first 256 KB, compare it with a table of 150+ formats, and look inside containers to tell DOCX from XLSX from EPUB, MP4 from HEIC, and WAV from AVI.

What is a “disguised program”?

An executable (EXE, DLL, ELF…) whose extension claims to be a PDF or image, or whose name has a double extension such as invoice.pdf.exe. It is a well-known malware trick, so do not open it.

Is the result 100% certain?

No. Some formats have no signature (TXT, CSV, MP3 without a tag), so they are inferred from the content. This is not a virus scanner; it only tells you what kind of file it is.

What is entropy?

A measure of how random the bytes are, from 0 to 8. Text is usually 4–5; compressed or encrypted files are close to 8. A “.txt” file with entropy 8 is probably not text.

Are my files uploaded?

No. Reading happens in your browser and only the start of each file is read (SHA-256 reads the whole file when you ask for it).

Related tools