A PNG file begins with an 8-byte signature: 0x89 then the ASCII 'PNG', then a CRLF, a DOS EOF (0x1A), and a final LF. The non-ASCII first byte and the CR/LF/EOF bytes are deliberately chosen to detect transmission over text-mode channels that would corrupt the file.