Click or drag and drop files here

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

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

Common File Magic Numbers

File TypeHex SignatureExtension
PDF25 50 44 46.pdf
PNG89 50 4E 47 0D 0A 1A 0A.png
GIF47 49 46 38 (GIF8).gif
JPEGFF D8 FF.jpg
WebP52 49 46 46 ... 57 45 42 50.webp
ZIP50 4B 03 04.zip
GZIP1F 8B.gz
7Z37 7A BC AF 27 1C.7z
RAR v552 61 72 21 1A 07 01 00.rar
MP349 44 33 (ID3) / FF FB.mp3
MP466 74 79 70 (ftyp).mp4
WebM/MKV1A 45 DF A3.webm
BMP42 4D (BM).bmp
TIFF (LE)49 49 2A 00.tiff
TIFF (BE)4D 4D 00 2A.tiff
OfficeD0 CF 11 E0 A1 B1 1A E1.doc/.xls/.ppt
EXE4D 5A (MZ).exe
ELF7F 45 4C 46.elf
JavaCA FE BA BE.class
TTF00 01 00 00.ttf
WOFF77 4F 46 46.woff
WOFF277 4F 46 32.woff2
PSD38 42 50 53 (8BPS).psd

FAQ

What is a Magic Number?

A Magic Number is a unique identifier for a file format, usually located in the first few bytes of a file. Each file format has its specific Magic Number used to identify the real format. For example, PNG files always start with 89 50 4E 47 0D 0A 1A 0A. This method is more reliable than relying on file extensions, as extensions can be easily modified or forged.

Why does the browser detection type differ from the signature detection type?

Browsers mainly rely on file extensions and MIME types returned by servers to determine file types. This information can be misconfigured or intentionally spoofed. Signature detection directly reads the binary content of files and can identify the real format. When they differ, the signature detection result is usually more accurate.

Is this tool safe? Will my files be uploaded to a server?

Completely safe. All file detection is done in your browser using the browser's File API and ArrayBuffer. No file content is uploaded to any server. Your file privacy is fully protected.

Which file formats are supported?

Currently supports 40+ file formats, including images (PNG, JPEG, GIF, WebP, BMP, TIFF, SVG, ICO, PSD), audio (MP3, WAV), video (MP4, WebM, AVI, FLV), documents (PDF, DOC, XLS, PPT, DOCX, XLSX, PPTX), archives (ZIP, RAR, 7Z, GZIP, TAR), fonts (TTF, OTF, WOFF, WOFF2), executables (EXE, ELF, Mach-O), and more.

How can I tell if a file is spoofed?

If the file extension doesn't match the Magic Number detection result, it may indicate the file has been renamed or spoofed. For example, a file that's actually an EXE renamed to PDF would show detection type as Windows Executable while the browser type shows application/pdf. This situation requires attention as it could be a malicious file.

Can I detect multiple files at once?

Yes. You can select multiple files at once, and the tool will detect each one and display results for all of them. This is useful for batch verification of file types.


Related Tools