51

After recovering my HDD, I ended up with a lot of files with no extension. Many of them are .bin files.

Is there any way to find out what file format they actually are?

Many of them have no information if I edit them with Notepad++ or Hex Editors.

Jens Erat
  • 17,507
  • 14
  • 61
  • 74
echolab
  • 725
  • 2
  • 11
  • 12

4 Answers4

65

Ahh, the dark arts of file identification.

I rather like trid for this. It identifies files (and renames them, if you choose), has a nice large database, and is totally independent of the file itself, so you have two approaches at your disposal.

enharmonic
  • 309
  • 2
  • 11
Journeyman Geek
  • 127,463
  • 52
  • 260
  • 430
  • 1
    learned something better while trying to help. wonderful and thank you! – johnshen64 Jun 11 '12 at 14:37
  • 1
    Its a *really* neat bit of software. I've just been waiting for a chance to use it properly ;p – Journeyman Geek Jun 11 '12 at 14:46
  • 2
    For amateur users like me ( cause took me some time to figure out ) , there is a window version ( I mean visual one ) [TrIDNet](http://mark0.net/soft-tridnet-e.html) which require [TrIDLib](http://mark0.net/code-tridlib-e.html) also , again Thanks man all of my files are healthy , also after searching i figured out how to use batch mode and replace all extensions to right ones , Thank you – echolab Jun 11 '12 at 21:08
  • 2
    A bit late but, actually, TrIDNet (a .NET application) don't require TrIDLib (a Win32 DLL). – Mark0 Jan 09 '13 at 14:04
  • 1
    Awesome tool. I just used it to figure out that an email attachment I was sent to decipher was a `.gz` file, not a `.tar` file as its extension showed. Once I unzipped the `.gz` file I actually got a `.tar` file, so it was really originally a `.tar.gz` file. I then extracted the `.tar` file to find a SQL script with a `.sql` extension and a JSON file with no extension. Except that the SQL script wasn't actually a SQL script, but another `.gz` file containing the actual `.sql` file. Ha ha. – Adam Goodwin May 20 '16 at 07:16
11

There is also FileID which uses magicdb

http://www.optimasc.com/products/fileid/index.html

Explanation: FileID, TrID and File all work with magic numbers contained in the file which are supposed to be unique for each filetype, so all three programs are more or less equivalent. TrID is the most practical for windows users, while GNU/Linux ones simply use file.

Astyanax
  • 371
  • 2
  • 12
9

You can try the file command for Windows

http://gnuwin32.sourceforge.net/packages/file.htm

hippietrail
  • 4,505
  • 15
  • 53
  • 86
johnshen64
  • 4,593
  • 17
  • 11
6

Another tool that may come useful is ExifTool. Contrary to what the name may suggest, it can identify and extract medatada from more than your usual photos / images filetypes.

Mark0
  • 149
  • 5