Tooleux

File Signature Identifier

MIME (2)

Identify a file's format from its first bytes. Drop a file or paste hex.

Runs in your browser. Nothing leaves your device.
Identify a file's format from its magic bytes. Drop a file or paste hex to detect PNG, JPEG, PDF, ZIP, MP4, executables, and 40+ formats. Runs in your browser. Read more Show less

What is a file signature?

A file signature (also called a magic number or magic bytes) is the first few bytes of a file that identify its format. Every major file format has a unique signature: PNG files always start with 89 50 4E 47, PDF files with 25 50 44 46, ZIP archives with 50 4B 03 04.

Signatures are more reliable than file extensions. A file named photo.jpg might be a PNG, a ZIP, or a JavaScript file with a misleading name. Browsers, servers, and antivirus software routinely check signatures to catch renamed files.

How to use

Two ways to provide data:

  • Drop a file - the tool reads the first bytes of the file and identifies the format. Files are read locally; nothing is uploaded.
  • Paste hex - if you have a hex dump from xxd, hexdump, or a network capture, paste it into the input box.

The tool reports all matching signatures, the MIME type when known, and a preview of the raw bytes as both hex and ASCII.

What this tool can and cannot identify

This tool recognizes around 40 file formats by their signature. It is not exhaustive. Some common limitations:

  • Plain text files have no signature. A .txt, .md, .csv, or .js file is just bytes. No magic number distinguishes them. The tool reports "no signature match" and shows the raw bytes.
  • Office documents look like ZIP files. Modern .docx, .xlsx, and .pptx files start with the ZIP signature 50 4B 03 04. Distinguishing them from a plain .zip requires inspecting the ZIP's internal file list, which this tool does not do.
  • Some formats share signatures. ZIP, JAR, APK, and EPUB all start with 50 4B 03 04. The tool reports all of them as candidates.
  • MP4-family containers vary. MP4, MOV, M4A, and 3GP all use the ftyp box. The tool reads the brand identifier inside the box to distinguish them.

Bytes read

When you drop a file, the tool reads only the first N bytes (default 32, configurable up to 256). This is enough to identify any format with a signature in the first few bytes, and it means the tool can process a 10 GB file instantly.

FAQ

Why does the tool say "no signature match" for my .txt file?

Plain text has no signature. Every byte pattern is valid text. The tool cannot tell "this is a .txt file" because there is no distinguishing marker - a .txt, .md, .csv, and .log file are indistinguishable from their bytes alone.

Can I trust the identification?

Signatures are strong evidence, not proof. A malicious file can fake a signature. If you are inspecting an untrusted file, use a dedicated analysis tool that also checks internal structure. This tool answers "what does this file claim to be" from its first bytes, not "what is this file actually."

Why does .docx show as ZIP?

Because .docx is a ZIP archive. That is the file format. If you open a .docx with a ZIP tool, you will see the internal XML files. The tool reports the signature, which for a .docx is the ZIP signature.

Does this tool upload my files?

No. The file is read in your browser using the File API. Only the first N bytes are read, and they never leave your device. This is why the tool works with a 10 GB file: it never loads the whole file into memory.

How do I identify a file without running this tool?

On Linux or macOS: file photo.jpg. On Windows: PowerShell's Get-Content -Encoding Byte -TotalCount 32. Or use xxd to see the first bytes directly.

Command line equivalent
# file (Linux / macOS)
file photo.jpg
file --mime-type photo.jpg

# xxd (Linux / macOS)
xxd -l 32 photo.jpg

# hexdump (Linux / macOS)
hexdump -C -n 32 photo.jpg

# PowerShell (Windows)
Get-Content -Encoding Byte -TotalCount 32 photo.jpg |
  ForEach-Object { '{0:x2}' -f $_ }

# Node.js
node -e "const fs=require('fs');const b=fs.readFileSync('photo.jpg').slice(0,32);console.log(b.toString('hex'))"
Loads a test value into the form

Drop a file here

or click to browse. Only the first few bytes are read. Nothing leaves your device.

Hex bytes
Analysis