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 name | PNG image |
|---|---|
| Hexadecimal magic bytes | 89 50 4E 47 0D 0A 1A 0A |
| ASCII / marker preview | .PNG.... |
| Byte offset | 0 |
| MIME type | image/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.
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?
| Platform | Compatible applications & tools |
|---|---|
| Mac (macOS) | Preview, Photos, Safari, Pixelmator Pro, Adobe Photoshop, Affinity Photo |
| iPhone & iPad | Photos, Files Quick Look, Safari |
| Windows | Photos, Paint, Windows Photo Viewer, browsers |
Free local tools & related guides
- Check whether a file really is PNG
- Convert PNG to JPG
- View EXIF & AI metadata
- Remove image metadata
- Check AI & Content Credentials
- Inspect raw bytes in the Hex Viewer
- Guide: File Signatures & Magic Bytes Guide
- Guide: How to Remove EXIF & GPS Photo Metadata
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.