Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Utilities

File Type Detector (Magic Number)

· Last updated:2026-07-04

Identify a file by its magic-number byte signature, not the extension. Reads the uploaded file directly across ~70 types.

Details

What this tool helps you do

Identify the true type of a file by its magic-number byte signature — not the (easily-spoofed) filename extension.

Upload any file and the tool reads its leading bytes, then matches them against a database of ~70 magic-number signatures covering images, documents, audio, video, fonts, archives, executables and more. It reports the detected type, MIME type, recommended extension, and a confidence score reflecting how specific the match is.

How it differs from magic-number-detector — that tool takes a hex string you type by hand and looks it up. This tool reads the actual uploaded file directly, supports offset-based signatures (e.g. ZIP-relative markers at byte 4), applies bitmasks (e.g. the RIFF-size field is ignored), and surfaces confidence + all candidates when multiple signatures match.

What it catches

  • A .png that's actually a JPEG (mismatch warning).
  • An executable renamed .txt.
  • A WebP hidden inside a .jpg.
  • Office .docx / .xlsx (which are really ZIP containers).
  • Mach-O / ELF / PE executables, Java .class, SQLite databases, fonts, etc.

Confidence

  • ≥90%: long, anchored signature (e.g. PNG's 8-byte sequence at offset 0) — near-certain.
  • 70-89%: solid match but shorter signature.
  • 45-69%: ambiguous (e.g. a single leading byte like '{' for JSON).
  • <45%: weak guess.

The hex dump of the first 64 bytes is always shown so you can verify the signature by hand.

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team
Color214
Binary52
HEX40
Mask9
File Type4

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Utilities
Input types
file, checkbox
Output type
html
Sample coverage
4
API ready
Yes

Overview

The File Type Detector identifies the true format of any uploaded file by analyzing its magic-number byte signature rather than relying on its file extension. By reading the first 512 bytes, the tool matches the binary header against a database of approximately 70 signatures—covering images, documents, archives, and executables—to output the correct MIME type, recommended extension, and a match confidence score.

When to use

  • When you suspect a file extension has been altered, spoofed, or stripped entirely.
  • When troubleshooting corrupted files or upload errors where a system rejects a file due to a mismatched MIME type.
  • When verifying the true format of unknown binary files, executables, or archives before opening them.

How it works

  1. 1Upload the target file; the tool safely reads only the first 512 bytes to protect performance and privacy.
  2. 2The tool compares the leading bytes and offset-based signatures against a database of ~70 magic-number signatures.
  3. 3It calculates a confidence score based on signature length and specificity, displaying the detected MIME type and recommended extension.
  4. 4Optionally, view the raw hex dump of the first 64 bytes to manually inspect the binary header.

Use cases

  • Identifying the true format of a file that has lost its extension or has an incorrect extension.
  • Inspecting suspicious files or email attachments to verify if they are disguised executables.
  • Debugging application upload failures by checking if a file's internal MIME type matches the expected format.

Examples

1. Identifying a Disguised Executable

Security Analyst

Background

An analyst receives a suspicious file named 'invoice.txt' via an external submission portal.

Problem

The analyst needs to verify if the file is actually plain text or a disguised executable before opening it.

How to use

Upload the 'invoice.txt' file to the detector and check the detected type and hex dump.

Show hex dump option enabled

Outcome

The tool detects a PE executable (EXE) with 95% confidence, showing the 'MZ' header (4D 5A) in the hex dump.

2. Recovering Lost Image Extensions

Digital Archivist

Background

A batch of legacy images was recovered from a corrupted drive, but all file extensions were lost during recovery.

Problem

The archivist needs to know whether each file is a JPEG, PNG, or WebP to restore the correct extensions.

How to use

Upload one of the extensionless files to the tool to analyze its header bytes.

FAQ

How does this tool determine the file type?

It reads the file's initial bytes (magic numbers) and matches them against a database of known signatures, ignoring the file extension.

Is it safe to upload large files?

Yes, the tool only reads the first 512 bytes of the uploaded file, making the process fast and secure even for large files.

What does the confidence score mean?

A score of 90% or higher indicates a long, specific signature match (like PNG), while lower scores indicate shorter or more ambiguous signatures.

Can it detect files that have been renamed?

Yes, renaming a file's extension does not change its internal byte signature, which this tool reads to identify the true format.

How does this differ from the magic number lookup tool?

This tool analyzes an actual uploaded file directly, whereas the lookup tool requires you to manually type or paste a hex string.

Hub

Backup Archive Restore Drill and Evidence

Plan a bounded backup restore drill, inspect a ZIP copy, recover selected files, compare trusted hashes and record application usability, timing and unresolved failures.

Hub

Binary Encoding, File Forensics, and Integrity Tools

Inspect bytes and signatures, identify file types, measure entropy, and verify hashes or checksums in one safe forensic workflow.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Text Processing

Number & Currency Samples

Text containing various number and currency formats for testing currency extraction

Validation

EU VAT Number Samples

Collection of EU VAT numbers from all member states for validation testing

Validation

Global Phone Number Samples

Collection of phone numbers from various countries for validation testing

Validation

Passport Number Samples

Collection of valid passport number samples from various countries (China, USA, Japan, UK, Germany, etc.) for testing

Media

Codec Artifact Detector

Compare an original master with its lossy encode and flag pre-echo, transient smearing, bandwidth loss and stereo damage, with per-event timestamps.

Media

Podcast RSS Enclosure Checker

Validate podcast episode audio against hosting expectations and cross-check it with your RSS feed: enclosure URL / length / type attributes, itunes:duration, GUID uniqueness, RFC 2822 dates, platform codecs and bitrates — byte-exact enclosure lengths included.

Developer Tools

Formula / Chart Heavy PDF Analyzer

Compare local and hybrid OpenDataLoader extraction to identify PDF pages where formulas, charts, or dense visuals may need AI-assisted parsing

Media

Instrument Identifier AI

Detect which instruments play in a track: onset-split note analysis scores every event against 13 timbre profiles and reports ranked instruments, families and per-note evidence.

Show hex dump option enabled

Outcome

The tool identifies the file as a PNG image with 99% confidence, displaying the signature '89 50 4E 47' in the hex dump.