Images · Updated · All file signatures

PNG File Signature & Magic Bytes (.png)

Portable Network Graphics (PNG) is a lossless raster image format standardised under ISO/IEC 15948 and W3C. Its 8-byte header was engineered to catch classic transfer bugs immediately: byte 0 (0x89) has the high bit set to detect 7-bit ASCII stripping, bytes 1–3 spell PNG in ASCII, bytes 4–5 (CR LF) and byte 7 (LF) catch newline mangling, and byte 6 (0x1A) stops DOS type listings cleanly.

Signature & identification summary

Detected format namePNG image
Hexadecimal magic bytes89 50 4E 47 0D 0A 1A 0A
ASCII / marker preview.PNG....
Byte offset0
MIME typeimage/png
Common extensions & aliases.png

Check whether your file really is PNG.

Drop any file into File Sniff’s free local browser checker to verify its 89 50 4E 47 0D 0A 1A 0A signature and spot misleading extensions—without uploading a single byte.

Check a file’s real type ↗︎

Container & byte-layout notes

Following the 8-byte signature, a PNG stream is a sequence of length-prefixed, CRC-checked chunks: IHDR (dimensions, bit depth, colour type) must come first, IDAT holds zlib-compressed scanlines, optional eXIf, iCCP, cICP, tEXt/iTXt and caBX (C2PA) chunks store metadata, and IEND closes the file.

Extension mismatches & common pitfalls

Web servers and AI image tools frequently export uncompressed PNGs that users or CMS scripts rename to .jpg without re-encoding. Stable Diffusion and ComfyUI workflows also embed generation prompts inside PNG tEXt chunks.

Which apps open PNG files?

PlatformCompatible applications & tools
Mac (macOS)Preview, Photos, Safari, Pixelmator Pro, Adobe Photoshop, Affinity Photo
iPhone & iPadPhotos, Files Quick Look, Safari
WindowsPhotos, Paint, Windows Photo Viewer, browsers

Free local tools & related guides

Inspect files & folders natively
on Mac, iPhone & iPad.

The native File Sniff app scans entire folders, spots extension mismatches, repairs extensions with Undo on Mac, and exports CSV or JSON reports locally.

Download on the App Store ↗︎