You ran recovery software. The JPEGs came back. And they won't open. The files are there but broken, mixed, or half grey. The culprit is how most recovery tools work. They bypass the file system and carve files by scanning for headers, assuming each photo sits in one unbroken run on the disk. When that assumption fails, recovered photos corrupt beyond recognition. Here is why that happens, which files you can still salvage, and exactly what to do next.

Why File Carving Produces Broken JPEGs

Recovery tools that carve files scan the raw disk for known headers, such as the JPEG start marker. They then read data until they hit a footer or a size limit. This works if the original photo was stored in a single continuous run. If the file was fragmented, the tool stitches pieces from different files together. The image changes content partway down. The top half looks correct. The bottom is scrambled or grey. That is the signature of a carved file built from mismatched fragments.

Which Recovered Files Are Beyond Repair

Not every recovered file can be fixed. Some contain no usable data. Stop here for these three cases.

  • Files showing 0 KB. A zero-byte file holds nothing. There is no data to repair. The file is lost.
  • Files from SSDs with TRIM enabled. TRIM erases deleted data at the drive level. If a recovery tool returns a file, it is likely filled with zeros or random noise. The original content is gone.
  • Files with no recognizable image data. If the file is garbage from the first byte, there is no starting point for reconstruction. Move on.

Which Recovered Photos Can Still Be Salvaged

Some recovered files keep enough structure to repair. A file that displays the top of the image correctly can be re-encoded into a clean, valid JPEG. The key is a valid JPEG header plus a usable portion of image data. The JPEG format lets a decoder stop before the corruption point, so the undamaged top section can be extracted and saved as a new file. The bottom stays lost, but the top becomes a usable photo.

How to Spot a Salvageable File

Check for these signs:

  • The file size is larger than zero and roughly matches the expected size for the image resolution.
  • Opening the file in a viewer shows at least the top part of the photo correctly.
  • The file has a valid JPEG header, starting with FF D8.

Recovered JPEGs lose their original file names. Exif metadata inside the file, including date, camera, and settings, can still identify them. Use that metadata to decide which files are worth keeping.

How to Repair a Partially Recovered JPEG

If the recovered file shows the top of the image correctly, re-encode the usable portion. Follow these steps.

  1. Open the damaged JPEG in a photo viewer that displays partial images. If the top appears correctly, proceed.
  2. Run a JPEG repair tool that reads the valid header and extracts clean data up to the first corruption point.
  3. Save the repaired version as a new file. It will contain only the undamaged portion.
  4. Always recover to a different drive from the one being scanned. Writing back to the source drive overwrites the missing fragments.

This method does not restore the lost bottom of the photo. It gives you a usable image from the intact top section.

Preventing Further Damage During Recovery

Bad recovery hygiene makes the problem worse. Follow these rules from the start.

  • Recover files to a different drive. Writing recovered data back to the source drive overwrites the sectors that hold your missing fragments.
  • Do not open or edit recovered files on the source drive. Copy them elsewhere first.
  • If your recovery tool offers a preview, use it to check whether a file is worth saving before committing to a full recovery.

These steps keep the remaining recoverable data intact.

When to Accept That a File is Lost

Some scenarios leave no room for recovery. If recovered photos show grey or a completely blank canvas, the data is gone. A zero-byte file is gone. If the drive is an SSD that had TRIM enabled before deletion, the chance of retrieving a usable JPEG is near zero. Stop chasing those files. Focus on the ones that still show recognizable image structure. Damaged photos with no underlying data cannot be fixed by any tool, because the data no longer exists on the drive.