How to Look Into a File

When you don't know what a file's type is and have no clues about what program works with a file it can sometimes help to look into the file and perhaps find clues in the file contents. Often all you will see will be binary bytes which translate to random characters in most viewers; but now and again you can find some hints within the file.

How you approach looking into a file will depend on what you are looking for.

ASCII/ANSI/Unicode


Binary files

Many files contain only binary data. For example, if you open a graphics file with a text editor, you will not see any readable text. You need a HEX editor to make any text visible:

If you open a binary file in a HEX editor, you will see both the binary bytes (left column) and the translated ASCII equivalents (right column). If you're lucky, you'll find clues to the creator of the file for an unknown file:

HEX editor

When looking into files, pay particular attention to the first few characters in the file. There are some standard indicators for various common file types...

The Online File Viewer automatically examines a file for such standard indicators to determine the correct file format.


EXE, DLL, and Other Executables

While its unwise to attempt to edit an EXE, DLL or any other executable file many of these are compiled with resources as part of the file. You can use a resource viewer/editor to look at these resources and sometimes either extract them or even change them. (Again, changing anything in an executable file can render the entire program unavailable and if you change a system file your entire operating system could fail. Be careful!)

Here are a few resource viewers/editors: