Skip to content
Jellykit

File Type Detector

Check whether a file is what its extension claims by reading its signature bytes, and catch files that were renamed.

  • Runs on your device
Loading tool

About File Type Detector

A file called invoice.pdf can be a ZIP, a picture or a program: the extension is only part of the name. This check ignores the name and reads the bytes the format itself writes at the start of the file, then tells you plainly whether the two agree, and what the file really is when they do not.

Use it on an attachment that will not open, a download with no extension, or a file whose type you want to confirm before sending it on. It reads only the start and end of the file, on this device.

How it works

  1. The first 256 KB and the last 64 KB of the file are read with slices, so its size makes no difference to the speed.
  2. The leading bytes are compared with the published signatures of each format. ZIP files are told apart (Word, Excel, EPUB, JAR and others) by the names in their directory; MP4, HEIC and AVIF by their brand.
  3. For common formats the header is decoded further: dimensions of images, channels and sample rate of WAV and FLAC audio, entry count of ZIP archives, version of PDF files, architecture of programs.
  4. If no signature matches, the bytes are checked for valid UTF-8 text, and for JSON, XML, SVG or HTML in it.

Questions

What does "same family, not confirmed" mean?

Some formats are built on a shared container: Word, Excel and EPUB files are ZIP archives, and MP4, MOV and HEIC share one layout. When the extension names another member of the same family and the check cannot see which one it is, it says so instead of calling the file wrong.

The check says text. Is that right for a CSV or JSON file?

Yes. Text formats have no signature bytes, so the check confirms that the content is valid UTF-8 text and recognises JSON, XML, SVG and HTML by their opening. A CSV under a .csv name counts as a match.

Can I check several files at once?

One at a time. Drop the next file to replace the current one; nothing is kept between checks.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.