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

How to Repair Corrupted RAW Photos: CR2, NEF, ARW and DNG

RAW file won't open or shows stripes? Find out if it's damaged or just unsupported, try the free fixes, then repair it or rescue the full-size preview.

Updated 6 minute read The File Repairer team

To repair a corrupted RAW file such as a CR2, NEF, ARW or DNG, first make sure it is really damaged and not just unsupported: copy it again from the memory card, and open it in up-to-date software that knows your camera model. If it still fails, a repair tool can rebuild the file's structure or, when the raw image data itself is too damaged, rescue the full-size JPEG preview that almost every camera hides inside the RAW file. That preview is often good enough to save the shot.

Work on copies, keep the memory card untouched until you are done, and expect that some badly damaged files can only be partly saved. The steps below explain why RAW files break, what to try first and how to get the most back.

Damaged or just unsupported? Read the symptom first

A RAW file that "won't open" is not always corrupt. New camera models often produce files that older editing software and Windows simply do not understand yet. Compare what you see with the table below before you try to repair anything.

What you seeLikely causeWhat to do
No RAW from a new camera opens, but older ones doSoftware does not support that camera model yetUpdate your editor, or convert with Adobe's free DNG Converter
Windows shows no thumbnail for any RAW fileMissing codecInstall Microsoft's Raw Image Extension from the Microsoft Store
One file shows "unsupported or damaged" while others from the same shoot openCorruption in that fileRe-copy from the card, then repair
Image opens with colored bands, stripes or a shifted lower halfDamaged raw image dataRepair, or rescue the embedded preview
File size is 0 KB or far smaller than its neighborsFile was never fully written or was copied badlyCopy again from the card; if the card copy is also small, the data may be gone

A quick test: if the thumbnail looks fine in your camera's playback screen but the file fails on the PC, the copy is the most likely problem. If the camera itself shows an error or a gray image, the file on the card is damaged.

Why RAW files get corrupted

RAW formats like CR2, NEF, ARW and DNG are built on a TIFF-style structure: a header and a set of directories point to the raw sensor data, the camera settings and one or more JPEG previews. If any of those pointers are damaged, editing software cannot find the image even though most of the data is still there. Common causes include:

  • Removing the card or switching off the camera too early. RAW files are large, and the camera may still be writing when you pull the card or the battery dies.
  • Interrupted copying. Unplugging a card reader mid-transfer, a flaky USB cable or a laptop going to sleep can leave truncated copies on the PC.
  • Worn or fake memory cards. Counterfeit cards report more capacity than they have and silently overwrite data once full.
  • Data recovery leftovers. Files rescued from a formatted card or failed drive often come back with gaps. See our guide on recovered files that won't open.

For a broader look at the causes, read why files get corrupted.

Try these fixes first

  1. Stop using the card. Do not format it or take new pictures on it. If the files on the card are fine, you can simply copy them again.
  2. Copy again with a different reader or cable. Copy the files to your PC's internal drive, not straight into an editor's import process, and compare the file sizes with the originals on the card.
  3. Open the file in more than one program. Try your usual editor, your camera maker's own free software, and the Windows Photos app with the Raw Image Extension installed. Different programs tolerate different kinds of damage.
  4. Update your software. If every file from a new camera fails, you probably need a newer version of your editor, not a repair.
  5. Check for a backup. If the file was on a PC drive, right-click its folder, choose Properties and open Previous Versions, or look in File History or your cloud backup.

How to repair a corrupted RAW file with File Repairer

File Repairer is Windows software that repairs damaged photos, videos, documents and archives on your own PC. It supports camera RAW files from Canon, Nikon, Sony and other makers, including CR2, NEF, ARW and DNG, as well as JPEG, PNG and HEIC. Nothing is uploaded, and your original files are never changed.

  1. Drag the damaged RAW files, or the whole folder from your card, into File Repairer. You can use Tools > Check Files for Damage first to see which files are actually damaged without changing anything.
  2. Click Repair All. Each file gets a result such as Repaired, Partly repaired or No damage found.
  3. Preview each photo before saving and look at the "what was recovered" panel.
  4. Save the repaired copies. They are saved with " (repaired)" in the name, either to a folder you choose or to a "Repaired" folder next to each original.

Checking, repairing and previewing are free, so you can see what comes back before you decide anything. Saving the repaired copies needs an Installation Key.

When the raw data is too damaged: the embedded preview

Almost every camera stores a full-size JPEG preview inside the RAW file, which is what you see on the camera's screen. If the raw sensor data is too badly damaged to rebuild, File Repairer rescues that preview instead. You lose the editing latitude of the raw data, so recovering blown highlights or changing white balance will be more limited, but you keep the shot at full size. For a wedding, a once-only trip or a client job, that is often the difference between having the picture and not.

What can and cannot be saved

A repair works with what is in the file. Be realistic about these limits:

  • Missing data stays missing. If part of the file was never written to the card or was overwritten later, that part of the picture cannot be brought back. You may get a partial image or just the preview.
  • Deleted files need recovering first. File Repairer repairs files you have. It does not recover deleted photos or read a card the PC cannot see. Use data recovery software first, then repair what it finds.
  • Edits are not part of the RAW file. Adjustments you made in an editor are usually stored in its catalog or a sidecar file, not in the RAW itself, so repairing the RAW does not restore them.

If your RAW files came with matching JPEGs (RAW+JPEG mode), check those too. A damaged JPEG can often be repaired on its own. See how to repair corrupted JPEG photos.

How to protect your RAW files from now on

  • Use genuine cards from a known seller, and format them in the camera, not on the PC.
  • Wait for the card access light to go off before opening the card door or switching off.
  • Carry a spare battery so the camera never dies mid-write.
  • If your camera has two card slots, record to both for important shoots.
  • Copy files to two places before you format the card, and check that they open.

Our guide to preventing file corruption covers backups and safe copying in more detail, and the supported file types list shows everything File Repairer can handle.

Frequently asked questions

Why does Lightroom say my RAW file is unsupported or damaged?

Either your version doesn't support that camera model yet, or the file really is corrupt. If every file from a new camera fails, update the software; if only one file fails, it is likely damaged.

Can I recover the RAW data or only a JPEG?

If the file's structure is damaged but the sensor data is intact, the RAW itself can often be rebuilt. If the raw data is too badly damaged, the embedded full-size JPEG preview is the fallback.

Should I format the memory card after copying the damaged files?

Not yet. Keep the card untouched until you've confirmed the repaired copies are good, in case you need to copy the originals again or run data recovery.

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