Photos from a failed SD card

A card that fails rarely fails cleanly. Some photos are perfect, some open with a grey band, some will not open, and some have vanished. Those are different problems with different fixes, and the first job is to tell which one each file has. This page explains what a file can still give back on its own, and where the job moves from the file to the card.

First, stop writing to the card

Every new photo, and every “format” the camera offers, can overwrite data that is still recoverable. Take the card out, put it somewhere safe, and copy whatever files the computer can see onto another drive. Work on the copies. Keep the card as it is until you are sure you have everything you can get.

What a failed write leaves behind

A camera writes a photo as one file, from the first byte to the last. If power is lost, the card is pulled out, or a cell in the card fails during that write, the file is left in one of a few recognisable states. The table sorts the usual symptoms by what is going on inside the file.

Symptoms, causes and what can be done
What you seeWhat is in the fileWhat can be recovered
Top of the photo fine, grey band belowThe file ends early: the write stopped part-wayRecoverable from the file: keep the top rows byte for byte, add the end marker
Photo opens, then a block of wrong colours or a shifted stripeBytes in the middle are wrong or missingThe rows above the fault are recoverable; below it the picture is scrambled
File will not open at all, size is rightOften zeros or FF bytes where the header or picture wasCheck it: if the header is intact the top may still decode; a whole file of zeros holds nothing
File name present, size 0 bytesThe directory entry was written, the data was notNothing in the file to recover; only card-level recovery can look for the data
Photos missing altogether, card asks to be formattedThe card's file table is damagedCard-level recovery, before anything else is written to the card

What this site can do with a file

The file tools here read the bytes of each photo in your browser. For a JPEG they walk the markers to the point where the file breaks, keep every byte before it exactly as the camera wrote it, and add the end marker, so the top of the picture opens again without being re-encoded. They also look for the small preview pictures cameras embed in the file, which are sometimes complete when the main picture is not. For a PNG they check every chunk’s checksum and keep the chunks that survive. Many files can be checked at once, as you would after copying a card.

What they cannot do is find data that is not in the file. A 0-byte file, or a photo the card’s table no longer lists, is a card-level problem.

When the problem is the card, not the file

  • Missing photos, or a card that asks to be formatted: card-level recovery software reads the raw card looking for the start of each photo. Run it on the card (or an image of the card), not on copied files.
  • A card the computer does not see at all, or one that has been physically damaged, needs a data-recovery service with the right equipment. Software cannot reach it.
  • Recovered files from card-level tools often come back with the same cut-off endings described above. Bring those files to the file tools here afterwards.

Where to go next

Photographic visual for Photos From A Failed Sd Card
Photos From A Failed Sd Card