What you can do when a file won't open

A corrupted file is one that has been damaged during storage, transfer, or a program crash — the data inside is scrambled or incomplete enough that the program designed to open it cannot read it. You cannot repair the file itself, but you can often recover the data inside it using built-in tools, third-party recovery software, or by opening it in a different program that is more forgiving of damage.

The method that works depends on what kind of file it is, how it was corrupted, and whether you have a backup. Start with the simplest option first: trying to open the file in a different program. If that fails, move to recovery tools designed for that file type.

Key Takeaways

  • Try opening the corrupted file in a different program first — Microsoft Word can sometimes open damaged Excel files, and VLC media player can play video files that other players reject.
  • Windows and Mac both include built-in repair tools: Windows has the Check Disk utility, and Mac has Disk Utility and First Aid.
  • Third-party recovery software like Recuva (Windows) or Data Rescue (Mac) can rebuild files from fragments if the file itself is too damaged to open.
  • If you have a backup from before the corruption occurred, restoring from that backup is faster and more reliable than any recovery method.

Try opening it in a different program

Many file formats can be opened by more than one program, and some programs are more tolerant of damage than others. If a Word document will not open in Microsoft Word, try opening it in Google Docs, LibreOffice Writer, or even Notepad — you may lose formatting, but you can often see the text underneath.

For spreadsheets, try opening an Excel file in Google Sheets or LibreOffice Calc. For images, try Windows Photo Viewer, Preview on Mac, or VLC media player. For video or audio files, VLC is particularly good at playing files that other media players reject because it skips over damaged sections instead of stopping.

This method works best when only part of the file is corrupted. You will likely lose some formatting or quality, but you can often save the usable data in a new file.

Use Windows Check Disk to repair the storage drive

Corruption sometimes happens because the storage drive itself has errors. Windows includes a tool called Check Disk that scans the drive and repairs problems. This will not fix the file directly, but it can fix the drive errors that caused the corruption in the first place.

Open File Explorer, right-click the drive where the corrupted file is stored, and select Properties. Click the Tools tab, then click Check under Error checking. Windows will ask whether you want to scan and repair the drive. Choose yes, and Windows will schedule the scan to run the next time you restart your computer. The scan can take an hour or more depending on drive size.

After the scan completes, try opening the corrupted file again. If the drive had errors, repairing them may allow the file to open.

Use Mac Disk Utility to check the storage drive

On Mac, the equivalent tool is Disk Utility. Open Applications, go to Utilities, and launch Disk Utility. Select the drive where the corrupted file is stored from the list on the left. Click First Aid, then click Run. Disk Utility will scan the drive and repair any errors it finds.

If you are using an Apple Silicon Mac (M1, M2, M3, or newer), you may see a message that the drive cannot be repaired while the system is running. In that case, restart your Mac and hold down the power button until you see the startup options screen. Select Options, then Utilities, then Disk Utility, and run First Aid from there.

After the scan completes, restart your Mac and try opening the corrupted file again.

Recover data with third-party software

If the file itself is too damaged to open in any program, recovery software can sometimes rebuild it from fragments. These tools scan your drive for file pieces and attempt to reassemble them into a usable file.

Recuva (Windows) is free and works well for recently deleted files and some corrupted files. Download it, run it, select the drive where the corrupted file was stored, and let it scan. It will show you files it found, including partially recovered ones. Select the file and click Recover to save it to a different drive.

Data Rescue (Mac) is paid software but handles more severe corruption. It works similarly: select the drive, run a scan, and recover the files it finds. A trial version lets you preview what it can recover before you pay.

Recovery software works best when the file was recently corrupted and the drive space where it was stored has not been overwritten with new data. The longer you wait or the more you use the drive, the less likely recovery becomes.

Restore from a backup if you have one

If you have been backing up your files regularly, restoring from a backup taken before the corruption occurred is the most reliable option. Check whether you use cloud backup (OneDrive, Google Drive, iCloud), local backup (an external drive or Time Machine on Mac), or both.

For cloud services, go to the web version of your backup service, find the file, and look for a version history or previous versions option. OneDrive and Google Drive both let you restore older versions of files. For local backups on Mac, open Time Machine, navigate to the date before the corruption, and restore the file from there.

A restored backup will not have any changes you made after the backup was taken, but it will be uncorrupted and complete.

Prevent corruption in the future

Corruption usually happens because of sudden power loss, a program crash while saving, or a failing storage drive. You cannot prevent all of it, but you can reduce the risk.

Back up your files regularly — either to cloud storage that backs up automatically, or to an external drive on a schedule. If you work on important files, save them often and consider using cloud-based versions (Google Docs, Office 365) that save automatically as you type. Keep your storage drive healthy by running Check Disk or Disk Utility every few months, and replace any drive that shows signs of failure (clicking sounds, frequent errors, or files disappearing).

Frequently Asked Questions

Can I recover a corrupted file if I do not have a backup?

Yes, but success depends on how badly the file is damaged and how long ago it was corrupted. Try opening it in a different program first, then run Check Disk or Disk Utility to repair drive errors. If those fail, recovery software like Recuva or Data Rescue can sometimes rebuild the file from fragments, though results are not may provide.

Why did my file get corrupted?

The most common causes are a sudden power loss or computer crash while the file was being saved, a failing storage drive, or malware. Less often, a program bug or a failed update can corrupt files. If multiple files are corrupted at once, the storage drive itself is likely failing and should be replaced.

Will recovery software definitely fix my file?

No. Recovery software can rebuild file fragments, but if too much of the file is missing or overwritten, it may not be able to recover anything usable. The sooner you run recovery software after corruption occurs, the better your chances, because the drive space where the file was stored has not yet been overwritten with new data.

Is it safe to keep using my computer if a file is corrupted?

If only one file is corrupted, it is usually safe to keep using your computer. If multiple files are corrupted or you see frequent error messages, stop using the drive immediately and run Check Disk or Disk Utility. A failing drive can corrupt more files the longer you use it, so back up your data and replace the drive if errors continue.

What is the difference between a corrupted file and a deleted file?

A deleted file is still on your drive but marked as recoverable — recovery software can usually restore it completely. A corrupted file is still there but damaged — recovery software can attempt to rebuild it, but some data may be lost. Deleted files are easier to recover than corrupted ones.