There is a file utility in linux.
The users can get file format information by file.

I'd like to use this program in my application.
Is there a Windows utility? Open source is better.

migrated from stackoverflow.com Jun 22 '11 at 14:22

This question came from our site for professional and enthusiast programmers.


File has been ported to Windows:



trid might be a possibility - its used in computer forensics to identify files. Unlike file, it uses a database, rather than magic numbers


Check sysinternals, it is bound to have one that suits your needs. It's not open source, though.

  • 1
    I don't recall any file identification tools in the sysinternals family – Journeyman Geek Jun 22 '11 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.