File Signature Verifier
Check a file's real type from its magic bytes (PNG 89 50 4E 47, PDF %PDF-, ZIP PK) and spot extension mismatches. Reads 64 bytes in-browser, no upload.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
File Signature Verifier
Compare a local file's leading magic bytes with its extension and browser-reported MIME type without uploading the file.
A file's real type is set by its signature (magic bytes), not its extension: a genuine PDF begins %PDF-, a PNG begins 89 50 4E 47 0D 0A 1A 0A and a Windows executable begins MZ. This checker reads a file's first 64 bytes in your browser, matches 22 signature families and flags any extension mismatch.
How to use File Signature Verifier
Press Choose file under Local file and pick any file on your machine; the complete file is never uploaded or opened.
Press Run local inspection — only the leading 64 bytes are read and matched against the signature table.
Read the verdict with the Extension check, MIME check and Bytes read rows plus the Leading signature bytes in hex, then press Download report to save file-signature-review.json.
Why use File Signature Verifier
Checks three sources against each other
Signature, filename extension and browser MIME are compared pairwise, so it can flag a known extension whose expected header is missing, not just a header it recognises.
Reads a bounded slice, never the whole file
Only the leading 64 bytes are examined, so a multi-gigabyte file is inspected as fast as a small one and the body is never opened.
Shows the raw evidence
You get the first 16 bytes printed as uppercase hex alongside the verdict, so you can confirm the call yourself or paste it into a ticket.
Common file signatures (magic bytes)
| Format | Signature | Extensions |
|---|---|---|
| PNG image | 89 50 4E 47 0D 0A 1A 0A | png |
| JPEG image | FF D8 FF | jpg, jpeg |
| GIF image | GIF87a / GIF89a | gif |
| PDF document | %PDF- (25 50 44 46 2D) | |
| ZIP container | 50 4B 03 04 (PK) | zip, docx, xlsx, pptx, jar, apk, epub |
| GZIP archive | 1F 8B 08 | gz, tgz |
| 7-Zip archive | 37 7A BC AF 27 1C | 7z |
| RAR archive | 52 61 72 21 1A 07 (Rar!) | rar |
| OLE compound file | D0 CF 11 E0 A1 B1 1A E1 | doc, xls, ppt, msi |
| Windows executable | 4D 5A (MZ) | exe, dll |
| ELF executable | 7F 45 4C 46 | so, o, elf |
| SQLite database | SQLite format 3 | sqlite, db |
| WebAssembly | 00 61 73 6D | wasm |
| MP4 / MOV / HEIC | ftyp at byte 4 | mp4, mov, m4a, heic, avif |
Common use cases
- Someone emailed you an invoice.pdf and you want to check the header actually starts with %PDF- rather than MZ or PK before you double-click it
- A download saved as .jpg will not open in your image editor, and you want to see whether the bytes say GIF, WebP or something else entirely
- You are sorting a folder of files with no extensions or a generic .bin suffix and need to know which are SQLite databases, which are ZIP containers and which are executables
Frequently asked questions
How can I check a file's real type without opening it?
Look at its first few bytes. Choose the file here and press Run local inspection: the tool reads 64 bytes, names the format the signature belongs to and tells you whether the extension agrees. The file is not uploaded, opened or run.
Link to answerWhat is a file signature or magic number?
It is a fixed byte pattern, usually at the very start of a file, that a format uses to identify itself — for example FF D8 FF for JPEG or 7F 45 4C 46 (a 0x7F byte, then ELF) for Linux executables. Programs read it to recognise a file regardless of its name.
Link to answerHow many bytes does it actually read from my file?
The first 64 bytes, and no more. Every signature in the table lives inside that window — the furthest marker checked is the WEBP or WAVE tag at byte 8 of a RIFF header, ending at byte 12 — so a bounded read is enough to identify the type without touching the rest of the file.
Link to answerDoes a matching signature mean the file is safe?
No. A matching header only tells you the leading bytes are what the extension implies; it says nothing about whether the rest of the file is valid, unmodified or free of malware. This is an informational triage check, not an antivirus scan — run a proper security tool before opening anything you did not expect.
Link to answerWhy does my .docx report as a ZIP container?
Because it is one. DOCX, XLSX, PPTX, JAR, APK and EPUB are all ZIP archives and all begin with the same PK signature (50 4B 03 04), so the tool groups them under one entry and treats any of those extensions as a match. To tell them apart you have to read the archive's internal directory, which this bounded check does not do.
Link to answerWhat does it mean when the browser MIME check says mismatch?
It means the MIME string the browser attached to the file belongs to a different signature family than the bytes suggest. Browser MIME is derived largely from the extension and is often absent or wrong, so treat it as a weaker signal than the magic bytes; generic values such as application/octet-stream are ignored rather than counted as a conflict.
Link to answer