Navigation

File Signature / Magic Bytes Identifier

Drag & drop a file to read its magic bytes, identify the true file type and flag mismatched or spoofed extensions. Only the first bytes are read · the file never leaves your device.

File
Click to select or drag & drop a file
Detection
Drop a file to begin.
Related tools
How to use
1
Drop a file

Only the first 64 bytes are read · nothing is uploaded.

2
Read the verdict

The detected type is compared against the file's extension.

3
Inspect the header

View the raw hex and ASCII of the file's leading bytes.

Frequently Asked Questions

A short fixed byte sequence at the start of a file that identifies its format · e.g. PNG starts with 89 50 4E 47, PDF with %PDF. They reveal the true type regardless of file name.

Anyone can rename a file. Attackers disguise executables as .jpg or .pdf. Checking magic bytes exposes the real format.

No. Only the first bytes are read locally via the FileReader API. The file never leaves your device.

Plain text, CSV, code and many formats have no magic number. The tool reports no match and shows the raw hex.

A free tool from mlab, the intelligence platform for IOC, domain and file analysis. Rolling this out across a team? Talk to us.