filerepair
All Tools ▾
40+ Formats · Private & Free

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.

Drop your Identify & Fix Ext file here
Drag & drop anywhere or press⌘V·100% on-device · never leaves your browser
Try a sample:

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

  1. Reads binary magic bytes and container internals (ZIP/OOXML, ISO BMFF ftyp, RIFF, EBML, OLE2) directly in your browser.
  2. Detects over 40 formats including PDF, DOCX, XLSX, PNG, JPEG, HEIC, WebP, MP4, MOV, MKV, WAV, MP3, 7Z, RAR, SQLite, EPUB, and Garmin FIT.
  3. Generates a bit-for-bit download with the corrected extension — zero re-encoding and zero upload.

Exact Error Codes & System Messages Fixed

Windows 10 / 11
How do you want to open this file? (.bin, .dat, .tmp, or extensionless download)
macOS Finder
There is no application set to open the document "download" (Unix Executable / Document)
Data Recovery (PhotoRec / Recuva)
Hundreds of recovered files named f001234.bin with missing or mismatched file extensions
Email / Messaging Apps
Attachment saved as "image.jpg" fails to open because the real binary format is PNG or WebP

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