Identify Unknown Files & Fix Missing Extensions
Drop any extensionless file or .bin / .dat / .tmp attachment to inspect its real binary magic bytes and download it with the correct extension in one click.
Common Issues Handled
- "Downloaded attachment has no file extension (e.g. "download", "IMG_2026")"
- "Windows/macOS asks "How do you want to open this .bin / .dat / .tmp file?""
- "File was renamed with the wrong extension (e.g. PNG saved as .jpg, DOCX saved as .zip)"
How It Works
- Reads binary magic bytes and container internals (ZIP/OOXML, ISO BMFF ftyp, RIFF, EBML, OLE2) directly in your browser.
- Detects over 40 formats including PDF, DOCX, XLSX, PNG, JPEG, HEIC, WebP, MP4, MOV, MKV, WAV, MP3, 7Z, RAR, SQLite, EPUB, and Garmin FIT.
- Generates a bit-for-bit download with the corrected extension — zero re-encoding and zero upload.
Exact Error Codes & System Messages Fixed
How Binary Magic Bytes Reveal Any File's True Format
Operating systems guess file types from the extension after the dot (.pdf, .docx, .png) — which is easily stripped by email gateways, messaging apps, AirDrop, or data-recovery tools. Inside the file, however, almost every format starts with a unique binary signature ("magic bytes"): %PDF- for PDF, 89 50 4E 47 for PNG, ftyp for MP4/HEIC/AVIF, SQLite format 3 for SQLite, and Standard Jet DB for Access.
Container formats like ZIP require deeper inspection: FileRepair peeks inside ZIP entries to distinguish .docx, .xlsx, .pptx, .epub, .odt, .apk, .jar, and standard .zip — and inspects ISO BMFF brands to tell .mp4, .mov, .m4a, .heic, and .avif apart.
What Can Be Repaired
- 40+ formats across documents, databases (SQLite, DBF, Access), images, audio, video, and archives
- Extensionless downloads, .bin / .dat / .tmp files, and misnamed files (e.g. PNG saved as .jpg)
- Instant bit-for-bit local save with the canonical extension
Honest Limitations
- Encrypted files with random ciphertext have no plaintext magic signature
- Plain text files without distinctive headers (such as raw notes) default to .txt
Frequently Asked Questions
Does fixing the extension modify my file contents?
No. The "Fix Extension & Download" button keeps your file bytes 100% identical and simply saves it with the detected canonical extension.
What if the file is both missing an extension AND corrupted?
FileRepair runs full structural diagnostics at the same time — you can fix the extension or run deep structural repair in the same workbench.
Can this detect fake or misnamed files (like an image renamed to .docx)?
Yes! FileRepair ignores the filename extension, inspects the raw binary header, and immediately flags EXTENSION_MISMATCH with the true underlying format.
Related File Tools
Inspect and losslessly strip GPS coordinates, camera EXIF, MP4/MOV device tags, MP3/FLAC ID3 tags, Word/Excel authors, and PDF metadata across 15 formats.
Fix broken OOXML archives, missing ZIP central directories, illegal XML control characters, and truncated Word documents without uploading confidential files.
Repair corrupted SQLite 3 headers, pad truncated pages, extract sqlite_master schema, and carve readable records from active B-tree & freelist pages.
Fix broken image headers, recalculate invalid PNG chunk CRCs, strip malformed JPEG EXIF blocks, and restore missing EOF markers.