File Type Detector

Click or drag and drop files here

Supports batch upload, automatically detects real file type (Magic Number)

You can also paste an image or an image link with Ctrl/⌘+V

About File Type Detector

Product Introduction

File Type Detector is a powerful pure frontend tool that accurately identifies the real file format by reading binary file header signatures (Magic Number). Unlike tools that rely only on file extensions or browser MIME types, our tool directly analyzes the binary content of files to ensure accurate identification results. All detection processes are completed in your browser without uploading any files to servers, fully protecting your privacy and data security.


Features

  • Accurate identification of 40+ file formats
  • Detection based on file header Magic Number signatures
  • Comparison between browser detection and signature detection
  • Displays hex signatures for advanced analysis
  • Checks if file extension matches actual type
  • Batch file detection support
  • Pure frontend processing, no files uploaded to server
  • Zero-latency detection with instant results
  • Supports images, audio, video, documents, archives, fonts, executables
  • Responsive design for desktop and mobile

How to Use

  1. 1 Click the upload area to select files, or drag and drop files into the upload area
  2. 2 The system automatically reads file header binary data and matches signatures
  3. 3 Detection results are displayed instantly, including file type, MIME type, hex signature
  4. 4 Compare browser detection type with signature detection type to identify mislabeled or spoofed files
  5. 5 To detect other files, continue uploading or click clear button to reset results

Common File Magic Numbers

File Type Hex Signature Extension
PDF 25 50 44 46 .pdf
PNG 89 50 4E 47 0D 0A 1A 0A .png
GIF 47 49 46 38 (GIF8) .gif
JPEG FF D8 FF .jpg
WebP 52 49 46 46 ... 57 45 42 50 .webp
ZIP 50 4B 03 04 .zip
GZIP 1F 8B .gz
7Z 37 7A BC AF 27 1C .7z
RAR v5 52 61 72 21 1A 07 01 00 .rar
MP3 49 44 33 (ID3) / FF FB .mp3
MP4 66 74 79 70 (ftyp) .mp4
WebM/MKV 1A 45 DF A3 .webm
BMP 42 4D (BM) .bmp
TIFF (LE) 49 49 2A 00 .tiff
TIFF (BE) 4D 4D 00 2A .tiff
Office D0 CF 11 E0 A1 B1 1A E1 .doc/.xls/.ppt
EXE 4D 5A (MZ) .exe
ELF 7F 45 4C 46 .elf
Java CA FE BA BE .class
TTF 00 01 00 00 .ttf
WOFF 77 4F 46 46 .woff
WOFF2 77 4F 46 32 .woff2
PSD 38 42 50 53 (8BPS) .psd

FAQ

How many file types?
100+ types covering images, documents, archives, audio/video, executables, etc.
How accurate is detection?
Based on magic numbers (file header hex signatures), accuracy near 100%.
Can it detect renamed extensions?
Yes, based on actual content not extension, accurate even with renamed extensions.
Are files uploaded to server?
No, all detection local in browser, files never leave device.
What file size supported?
Only reads header key bytes, file size does not affect detection speed.

Related Tools