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
- Drop one or more files. They are only read on your device.
- For each file, you get the detected type, the matching extension and MIME type.
- 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.
| Format | Signature (hex) | As text |
|---|---|---|
| 25 50 44 46 | ||
| PNG | 89 50 4E 47 | .PNG |
| JPEG | FF D8 FF | — |
| ZIP / DOCX / XLSX | 50 4B 03 04 | PK |
| Windows program (EXE, DLL) | 4D 5A | MZ |
| 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?
- A file has no extension — common with downloads, email attachments or files recovered from a disk.
- A file won't open — it may simply have the wrong extension (a WebP image saved as .jpg, a ZIP saved as .dat).
- A suspicious attachment — an “invoice.pdf” that is actually a program is a classic trick in phishing emails.
- Upload rejected by a website that checks the real type, not just the name.
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.