File Type Detector

Got a file with no extension, a strange one, or one that will not open? Drop it here and the detector names the real format from the bytes inside, not from the file name. Check one file or a whole batch: each row shows the true type, its MIME type and whether the current extension is right. Only the first 64 KB of each file is read, in your browser, so even large videos are checked in a moment and nothing is uploaded.

What do you want to do?

Drop one or many files

Only the first 64 KB of each file is read

Maximum file size: 16384MB

Reading files runs in your browser. Your files never leave this device.

Features

  • Identifies files from their contents (magic bytes), not their names

  • Drop many files at once and get one table

  • Flags every file whose extension does not match what is inside

  • Names files that have no extension at all

  • Tells Word, Excel, PowerPoint, EPUB, APK and plain ZIP apart

  • Tells HEIC, AVIF, MP4, MOV and M4A apart

  • Shows the MIME type to use when uploading or serving the file

  • Reads only the first 64 KB of each file, so large files are quick

  • Free, no signup. Nothing is uploaded. The file is read by your own browser, and the page keeps no copy once you close it.

When you need to know a file’s real type

Files with no extension

Email attachments, chat downloads and recovered files often arrive as "file" or "download". The detector tells you which extension to add so the right app opens them.

Upload forms that reject a file

Government and exam portals check the real format. A photo saved as .jpg that is really HEIC or WebP gets rejected; see it before you submit.

Sorting a folder of downloads

Drop a batch and see at a glance which are PDFs, which are images and which are archives, whatever they are named.

A first safety check

A file named invoice.pdf that is really a Windows program (.exe) is a classic trick. The detector shows it plainly.

How detection works

Signatures first

Most binary formats start with a fixed signature: JPEG with FF D8 FF, PDF with %PDF-, GIF with GIF89a, 7-Zip with 37 7A BC AF. The detector compares the start of each file with a table of about 80 signatures, and checks a few further in, such as ustar at byte 257 for TAR archives.

Container formats need a second look. Office files, EPUBs and Android apps are all ZIP archives, so the detector reads the names stored inside. Phone photos and videos share the MP4 container, so it reads the brand code that follows the ftyp marker.

Text files

CSV, TXT, JSON, XML, HTML, code and logs have no signature. If a file is valid UTF-8 text the detector looks at how it begins to recognise JSON, XML, SVG and HTML, and otherwise calls it plain text. A .csv or .md file shown as plain text with a match is correct.

What the name check means

  • Extension matches: nothing to fix.
  • Name says .x, contents say .y: rename the file to the shown extension, or convert it if the site needs a particular format.
  • Guessed from the name only: the bytes had no known signature, so treat the extension with care.

Related tools

File Type Detector - FAQ