File Repairer
Windows 10 & 11 Buy license · $29.95
Photos

How to repair corrupted JPEG photos that are gray, distorted or won't open

JPEG photos gray, distorted or refusing to open? Try the quick fixes first, then learn how damaged photos can be rebuilt, even with a destroyed header.

Updated 5 minute read The File Repairer team

To repair corrupted JPEG photos, first make sure you're working on a copy, then try opening the photo in another program (Photos, Paint or a web browser) and copy it again from the original source, such as the camera's memory card, your phone or cloud backup. Check for an earlier version in OneDrive or Previous Versions. If the photo is still gray, distorted or won't open, a JPEG repair tool can rebuild the damaged parts, and if the file's header is destroyed, it can use a sample photo from the same camera to put it back together.

Corrupted JPEGs show up in a few typical ways: Windows Photos says it doesn't support the format, older Windows Photo Viewer says the file "appears to be damaged, corrupted, or is too large", or the picture opens with a gray block, shifted colors or a smeared lower half. Here is what each means and how to fix it.

Common symptoms and what they mean

What you seeLikely cause
Photo won't open at all, or shows "format not supported"Damaged or missing header, a 0 KB file, or a different format with a .jpg name
Top of the photo fine, bottom grayThe file is cut short, or the data stops partway through
Colors suddenly change partway downA small error in the image data throws off everything after it
Image shifted sideways or broken into blocksMissing or misplaced data in the middle of the file
Thumbnail looks fine but the full photo won't openWindows is showing the small preview embedded in the file, while the main image data is damaged

A JPEG is drawn from top to bottom in small blocks, and each block depends partly on the one before. That's why one damaged spot often ruins everything below it, while the part above looks perfect. For the gray-bottom problem in detail, see how to fix a photo that's half gray.

Quick fixes to try first

  1. Work on a copy. Copy the damaged photos to another folder on your PC before you try anything, and leave the originals alone.
  2. Try another viewer. Open the file in Paint, in the Photos app and by dragging it into Microsoft Edge or another browser. Different programs tolerate damage differently, and one may display what another refuses. If one does, save it again as a new JPEG from that program (in Paint, choose File > Save as > JPEG picture).
  3. Check the size. In the file's Properties, a 0 KB size means the photo is empty. A size much smaller than similar photos from the same camera means data is missing.
  4. Check it really is a JPEG. Phones often save HEIC photos, and some apps rename files. If the photo came from an iPhone, see HEIC photo won't open on Windows.
  5. Copy it again from the source. If the photo is still on the memory card, phone or cloud service, copy it again. A transfer that was interrupted, or a card pulled out too early, is one of the most common causes, and a fresh copy fixes it.
  6. Look for an earlier copy. OneDrive's Version history, the Previous Versions tab in the file's Properties, an old backup drive or a photo you shared by email or messaging may all have a healthy version.

If the photos are still on a memory card

If your camera or card reader is showing errors, stop using the card. Don't take more photos on it and don't format it, because new photos can overwrite the ones you want to save. Copy everything off the card first.

If the photos have disappeared from the card, or the card asks to be formatted, you need data recovery software first. File Repairer repairs damaged files but does not recover deleted photos or read failing cards. Recover the photos onto your PC, then repair any that won't open. Photos rescued this way often come back gray or broken, which is covered in recovered files that won't open.

Repairing JPEGs with File Repairer

File Repairer repairs JPEGs that are gray, half-loaded, distorted or won't open. It also handles PNG, HEIC and camera RAW photos, so a mixed folder from a camera or phone can go through in one go.

  1. Drag the photos, or the whole folder, into File Repairer. It's built for batches, such as a full card's worth of recovered pictures.
  2. Click Repair All. Each photo gets a result such as Repaired, Partly repaired, No damage found or Needs a sample file.
  3. Preview each repaired photo before saving.
  4. Save the repaired copies. Each is saved with " (repaired)" in the name, to a folder you choose or a "Repaired" folder next to the original, which is never changed.

There's an optional setting to crop away the missing gray area, so a photo with a damaged bottom is saved as a clean, slightly shorter picture rather than one with a gray band.

When the photo needs a sample file

Every JPEG starts with a header that describes how the image data is encoded. If that header is destroyed, the picture data may still be intact but no program knows how to read it. File Repairer can rebuild the header using a sample photo: any undamaged JPEG taken with the same camera, ideally at the same size and quality setting. When a photo shows Needs a sample file, add a good photo from that camera and repair again.

Checking, repairing and previewing are free, so you can see your photos before deciding anything. Everything runs on your PC; your pictures are never uploaded.

What can't be fixed

  • Data that was never written. If a transfer stopped halfway, the bottom of the photo isn't in the file. A repair can save the part that's there and tidy the edge, but it can't invent the missing pixels.
  • Overwritten data. If another file was written over part of the photo, that part is gone.
  • Deleted photos. These need data recovery first.

Keep your original damaged files even after repairing. If you later find a better copy on an old card, in a backup or in someone's phone, you'll still have everything to compare against.

For the full list of photo formats and other file types File Repairer supports, see the supported file types.

Frequently asked questions

Why does the thumbnail look fine when the photo won't open?

Many JPEGs contain a small preview image as well as the full picture. Windows can show the preview even when the main image data is damaged.

What is a sample photo and why would I need one?

A sample photo is an undamaged JPEG taken with the same camera. File Repairer uses it to rebuild a destroyed header so the damaged photo's image data can be read again.

Can I repair photos that were deleted from my memory card?

Deleted photos need data recovery software first. Once they're recovered onto your PC, any that won't open or come back gray can be repaired.

Get three guides like this every month, plus software update notices.Subscribe →