How do I find out the file type without an extension?

45

31

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.

echolab

Posted 2012-06-11T11:34:39.507

Reputation: 645

Question was closed 2013-10-24T00:32:52.053

Answers

52

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.

Journeyman Geek

Posted 2012-06-11T11:34:39.507

Reputation: 119 122

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 – 2016-05-20T07:16:03.173

1learned something better while trying to help. wonderful and thank you! – johnshen64 – 2012-06-11T14:37:44.563

1Its a really neat bit of software. I've just been waiting for a chance to use it properly ;p – Journeyman Geek – 2012-06-11T14:46:21.843

2

For amateur users like me ( cause took me some time to figure out ) , there is a window version ( I mean visual one ) TrIDNet which require TrIDLib 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 – 2012-06-11T21:08:27.057

2A bit late but, actually, TrIDNet (a .NET application) don't require TrIDLib (a Win32 DLL). – Mark0 – 2013-01-09T14:04:23.610

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

Posted 2012-06-11T11:34:39.507

Reputation: 371

8

You can try the file command for Windows

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

johnshen64

Posted 2012-06-11T11:34:39.507

Reputation: 4 399

it shows this , what that mean data , what kind of data C:\Program Files (x86)\GnuWin32\bin>file file01929.bin file01929.bin; data , is there any more advance tool ? – echolab – 2012-06-11T11:49:45.807

1"Data" means it makes no sense to the file command. – David Schwartz – 2012-06-11T12:02:03.170

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

Posted 2012-06-11T11:34:39.507

Reputation: 151