How File Format Identifier Works
Every file begins with a unique sequence of bytes called a "magic number" or file signature. PDF files start with %PDF (hex: 25 50 44 46), JPEG images begin with FF D8 FF, and ZIP archives start with PK (50 4B). Our tool reads these first bytes to determine the actual file type, regardless of what extension the file has.
Analysis happens entirely in your browser—files are not uploaded to any server. We read just the first 64 bytes needed for identification, making detection instant even for large files. The tool compares these bytes against a database of 50+ known file signatures.
Why Identify File Formats?
File extensions can be changed, removed, or corrupted. A file named "document.pdf" might actually be an image or executable. Email attachments, downloads from unknown sources, and files without extensions all benefit from format verification before opening.
Developers and system administrators use format identification to validate uploads, detect disguised malware, and troubleshoot files that won't open. Knowing the true MIME type helps select the right application or conversion tool.
Supported Formats
| Category | Formats Detected |
|---|---|
| Documents | PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, RTF, ODT |
| Images | JPEG, PNG, GIF, BMP, TIFF, WebP, ICO, SVG |
| Audio | MP3, WAV, FLAC, OGG, AAC, M4A |
| Video | MP4, AVI, MKV, MOV, WebM, FLV |
| Archives | ZIP, RAR, 7Z, TAR, GZIP, BZIP2, XZ |
Key Features
- Instant detection by reading file signature (magic bytes)
- Identifies 50+ common file formats across all categories
- Detects extension mismatches and suggests correct extension
- Shows MIME type for web and programming use
- Browser-based analysis—your files stay on your device
Common Use Cases
Verify downloaded files before opening them. A file claiming to be a PDF document might actually be an executable. Checking the magic bytes reveals the true format regardless of the filename or extension.
Recover files with missing or incorrect extensions. When files lose their extensions or get renamed incorrectly, this tool identifies them so you can restore the proper extension and open them with the right application.
Developers validate file uploads by checking magic bytes server-side. This tool helps test and understand the signatures used for validation. System administrators investigate suspicious files without executing them.
Related Tools
- Image DPI Checker — analyze image resolution for printing
- Image EXIF Viewer — view photo metadata and camera settings
- Archive Converter — convert between archive formats
- Extract ZIP — unpack ZIP archives online