A file signature is data used to identify or verify the content of a file. Such signatures are also known as magic numbers or magic bytes and are usually inserted at the beginning of the file. Many file formats are not intended to be read as text. If such a file is accidentally viewed as a text file, its contents will be unintelligible. However, some file signatures can be recognizable when interpreted as text. In the table below, how the file signature appears when interpreted as text in the common ISO/IEC 8859-1 encoding is shown, with unprintable characters represented as the control code abbreviation or symbol, or codepage 1252 character where available, or a box otherwise. In some cases the space character is shown as ␠.
See also List of filename extensions - alternative for file type identification and parsing List of file formats Magic number (programming) Substitute character (for the 1Ah (^Z) "end-of-file" marker used in many signatures) file (command)
References
External links Gary Kessler's list of file signatures Online File Signature Database for Forensic Practitioners, a private compilation free to Law Enforcement Man page for compress, uncompress, and zcat on SCO Open Server Public Database of File Signatures Complete list of magic numbers with sample files the original libmagic data files with thousands of entries as used by file (command)
