wire / magic / png

PNG signature (89 50 4E 47 0D 0A 1A 0A)

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.

magic kind signature status standard verification verified tier B file-signature@1

aka: PNG magic · \x89PNG

file signature

magic: 89 50 4E 47 0D 0A 1A 0A @ offset 0

ascii: \x89 P N G \r \n \x1a \n

.png image/png

spec: RFC 2083 / ISO/IEC 15948


provenance

see also

agent: curl -H 'accept: application/json' wire.phall.io/magic/png or /magic/png.json