FILE TOOL // 044

Magic Number Identifier

Compare a file's leading byte signature with common format patterns, then flag disagreements with its extension or browser-reported MIME type.

Processed locally in your browser

Choose files to identify

Common signatures checked locally
FileSizeType
No files selected.
Choose files to begin.0 files
Advertisement

How to use Magic Number Identifier

  1. Select files whose real leading bytes you want to compare with known magic-number patterns.
  2. Adjust the options for the report you need.
  3. Select “Identify Formats,” review the result, and download the generated file.

What this file tool does

Compare a file's leading byte signature with common format patterns, then flag disagreements with its extension or browser-reported MIME type.

The tool reads the leading bytes and checks exact signatures for common formats including PDF, PNG, JPEG, GIF, ZIP-family, GZIP, 7z, RAR, ELF, WebAssembly, OGG, FLAC, MP3, TIFF, BMP, and SQLite.

Processing stays on this device. Signature coverage is intentionally finite. ZIP-based formats share a container signature and may require deeper package inspection.

Supported inputs and limits

Signature coverage is intentionally finite. ZIP-based formats share a container signature and may require deeper package inspection.

SignalMagic bytes, extension, browser MIME
CoverageCommon binary formats
Unknown filesReported without guessing
OutputJSON or CSV

Example and practical tips

Practical example

A file named report.pdf that begins with PNG bytes will be identified as PNG and marked as an extension mismatch.

Tips

  • Treat 'unknown' as no matched signature, not as an invalid file.
  • ZIP signatures also appear in DOCX, XLSX, PPTX, APK, and other containers.
  • Use a dedicated parser when the exact subtype matters.

Frequently asked questions

How do I identify a file by its magic number?

Choose the file and run the scan; the tool compares its leading bytes with known binary signatures.

Why does a DOCX file appear as ZIP?

DOCX is a ZIP-based container, so its outer magic bytes match ZIP.

Can a renamed executable be detected by its header?

Known executable signatures such as PE, ELF, and Mach-O can be recognized even when the extension changes.

What does unknown magic number mean?

It means none of this tool's supported patterns matched; it does not prove the file is corrupt.

Can file signatures be forged?

Yes. Magic bytes are useful evidence but can be imitated, so they are not a security guarantee.

Magic Number Identifier details

Tool number044
CategoryFile Inspection & Analysis
ProcessingLocal browser operation
DownloadGenerated report or verification bundle

Browse more file tools

Callfile categories
File Organization & Naming

Rename, clean, sequence, and validate file names.

View all
Archive & Compression

Create, inspect, compress, and extract archives.

View all
Integrity & Verification

Generate checksums, manifests, and signatures.

View all
File Inspection & Analysis

Inspect bytes, headers, MIME types, and entropy.

View all
Folder & Storage Analysis

Analyze folder size, contents, age, and distribution.

View all
File Splitting & Assembly

Split, join, extract, patch, and verify chunks.

View all
File Security & Privacy

Encrypt files and inspect privacy or safety signals.

View all
Backup & Change Tracking

Compare backup sets and detect file changes.

View all