A binary file is a computer file which may contain any type of data, encoded in binary form for computer storage and processing purposes; for example, computer document files containing formatted text. Many binary file formats contain parts that can be interpreted as text; binary files that contain only textual data - without, for example, any formatting information - are called plain text files. In ordinary usage they are typically contrasted with binary files, so that binary files are all files which do not contain merely plain text.
Some binary files contain headers, blocks of metadata used by a computer program to interpret the data in the file. For example, a GIF file can contain multiple images, and headers are used to identify and describe each block of image data. If a binary file does not contain any headers, it may be called a flat binary file.
Microsoft Windows allows the programmer to specify a system call parameter indicating if a file is text or binary; Unix does not, and treats all files as binary. This reflects the fact that the distinction between the two types of files is to a certain extent arbitrary.
A hex editor may be used to view hexadecimal (and possibly also decimal, binary or ASCII character) values for corresponding bytes of a binary file. The bytes may then be manipulated by changing the hexadecimal value in the hex editor.
Computer file formats | Computer data
Archivo binario | Fichier binaire | Binair bestand | Binárny súbor
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Binary file".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world