filerepair
PNG CRC Fixer · Private & Free

Fix Corrupted & Broken PNG Files Online

Repair invalid PNG headers, recalculate corrupted chunk CRC32 checksums, and restore missing IEND trailers for screenshots, exports, and downloads — 100% locally.

Drop your broken or corrupted .png file here
Drag & drop anywhere or pressCtrl/⌘ V·100% on-device · never leaves your browser
Try a sample:

Common Issues Handled

  • "libpng error: Not a PNG file / damaged 8-byte PNG header signature (89 50 4E 47)"
  • "CRC error in IHDR, PLTE, or IDAT chunk — browser or Photoshop rejects the image"
  • "Unexpected end of file (missing IEND chunk) after truncated download or failed export"

How It Works

  1. Verifies and restores the canonical 8-byte PNG signature (89 50 4E 47 0D 0A 1A 0A).
  2. Walks every PNG chunk (IHDR, PLTE, IDAT, tRNS), recalculates IEEE CRC32 checksums, and skips malformed ancillary chunks.
  3. Appends a valid 12-byte IEND trailer and renders the recovered PNG instantly in your browser.

Exact Error Codes & System Messages Fixed

libpng / Python Pillow / ImageMagick
libpng error: Not a PNG file / Read Error / CRC error in chunk IHDR or IDAT
Adobe Photoshop / Figma
Could not complete your request because the file-format module cannot parse the PNG file
Chrome / Safari / Firefox
The image cannot be displayed because it contains errors (truncated PNG / missing IEND)
pngcheck / Asset Pipelines
EOF while reading chunk data / invalid chunk length or bad IEEE CRC32 checksum

PNG Binary Anatomy: 8-Byte Signature, Chunk CRC32s & IEND

Every PNG file begins with a strict 8-byte magic header (89 50 4E 47 0D 0A 1A 0A) specifically designed to catch newline corruption during text-mode file transfers. After the header, the file consists of self-contained chunks — IHDR (image dimensions), optional PLTE/tRNS/iCCP/tEXt chunks, one or more compressed IDAT pixel chunks, and a closing 12-byte IEND chunk — each guarded by an IEEE CRC32 checksum.

Because PNG decoders enforce strict CRC validation on every single chunk, even one flipped bit in a metadata chunk or a download truncated right before IEND makes the whole image unreadable. FileRepair restores the 8-byte PNG signature, validates and recomputes chunk CRC32 checksums, drops broken non-critical chunks, appends IEND, and previews the recovered PNG locally.

What Can Be Repaired

  • Corrupted 8-byte PNG header signatures (including CRLF/LF mangling)
  • Invalid CRC32 checksums on IHDR, PLTE, IDAT, and ancillary chunks
  • Truncated PNG screenshots or downloads missing the final 12-byte IEND chunk
  • Misnamed files (such as JPEG or WebP saved with a .png extension)

Honest Limitations

  • PNG files whose compressed zlib IDAT stream was completely overwritten with zero bytes
  • Truncated IDAT streams recover only the scanlines written prior to the cut-off point

Frequently Asked Questions

Why does a PNG fail to open when only 1 byte changed?

Every PNG chunk ends with a strict 4-byte CRC32 checksum. Even a single flipped bit in metadata or an interrupted trailing IEND chunk causes strict decoders like libpng, Chrome, and Photoshop to reject the file.

Are my PNG screenshots or design assets uploaded to a server?

Never. Our PNG fixer runs 100% locally via WebAssembly inside your browser tab — zero bytes ever leave your device.

How can I fix a broken PNG with a CRC error online without uploading it?

Drop the .png into FileRepair above. Our browser-side Rust/WASM PNG fixer recalculates every chunk's IEEE CRC32 checksum and appends any missing IEND trailer directly in local memory with zero server uploads.

Related File Tools