RepairAnyFile
All supported formats
image.png

Repair Corrupted PNG Images & CRC Errors Online

Reconstructs the 8-byte PNG signature (including shifted IHDR headers), recomputes CRC32 checksums for damaged chunks, validates zlib IDAT headers, and appends missing IEND terminators.

Select or drop PNG files

Accepts .png files (or any supported format). Runs 100% locally in your browser.

No PNG file handy? Try a broken sample:
0 bytes uploaded • Zero server storage

PNG Errors You Might See

  • "CRC error" or "PNG file corrupted by ASCII conversion"
  • Truncated downloads fail to open because the final IEND chunk is missing
  • Leading bytes or damaged 8-byte PNG signature prevents previewing

What We Repair Locally

  • Restores damaged or shifted 8-byte PNG file signatures by locating IHDR
  • Recomputes valid CRC32 checksums for IHDR, PLTE, and IDAT chunks
  • Clamps truncated IDAT chunk lengths to available bytes
  • Validates the first IDAT zlib header and appends missing IEND terminators

How PNG Repair Works

1

Restore Signature & IHDR

Verifies the 8-byte PNG magic header and aligns to the IHDR chunk.

2

Rebuild Chunk CRCs

Recalculates CRC32 checksums for every chunk and checks the IDAT zlib header.

3

Append IEND & Verify

Adds the IEND terminator and verifies rendering with the browser decoder.

What Cannot Be Repaired Automatically

Related PNG Error Guides

Other image Formats

Frequently Asked Questions

Why does my PNG say 'CRC error' or fail to open?
Incomplete transfers or storage errors often corrupt chunk CRC32 checksums or cut off the final IEND chunk. RepairAnyFile recalculates valid CRCs and restores IEND locally.
Can it fix a PNG whose header bytes were partially cut off?
Yes. If the IHDR chunk is within the first 32 bytes, the engine realigns to IHDR and restores the full 8-byte PNG signature.
What if the PNG renders partially in preview?
Click 'Save Clean Copy (Re-encode)' above the preview to export the rendered pixels as a spec-compliant PNG.