What corrupted files are and why they matter
A corrupted file is one whose data has been damaged or altered in a way that makes it unreadable or unusable. This can happen when a file is interrupted while being written to disk, when hardware fails, when malware damages files, or when a program crashes mid-save. The file still exists on your computer, but its contents are scrambled or incomplete.
Corrupted files cause different problems depending on what they are. A corrupted document might refuse to open. A corrupted system file might make your operating system behave strangely or crash. A corrupted media file might play with glitches or not play at all. The sooner you find and deal with them, the less damage they can do to your work or your system.
You can check for corrupted files using built-in tools on Windows or Mac, or by looking for warning signs when you try to use them. Some corruption is easy to spot; some requires running a diagnostic scan.
Key Takeaways
- Windows includes a built-in tool called Check Disk (chkdsk) that scans your hard drive for corrupted files and can repair some of them automatically.
- Mac users can run Disk Utility from the Applications folder to verify and repair disk errors without needing third-party software.
- Files that won't open, open with strange characters, or cause programs to crash are often corrupted and should be checked or replaced.
- You can also check individual files by trying to open them, looking at file properties, or using command-line tools to verify their integrity.
How to run Check Disk on Windows
Windows includes a tool called Check Disk (chkdsk) that scans your drive for errors and corrupted files. To run it, right-click on the drive you want to check (usually C:) in File Explorer, select Properties, then click the Tools tab. Click "Check" under the Error checking section.
Windows will ask whether you want to scan the drive now or schedule a scan for the next time you restart. If you choose to scan now, the process runs immediately and can take anywhere from a few minutes to an hour depending on drive size. If you schedule it for restart, Windows will run the scan before your system fully boots up, which is often more thorough because files are not in use.
When the scan finishes, Check Disk shows you a report listing any errors found and whether they were repaired. If errors are found but not repaired, you may need to run the scan again with administrator privileges or schedule it for the next restart. For a more detailed scan that checks every sector of your drive, you can open Command Prompt as administrator and type chkdsk C: /F /R (replace C: with your drive letter), then restart your computer.
How to check your disk on Mac
Mac users can check for corrupted files using Disk Utility, which is built into macOS. Open Applications, then Utilities, then double-click Disk Utility. In the sidebar, select the drive you want to check, then click the First Aid button at the top.
First Aid scans your drive for errors and attempts to repair them automatically. The process usually takes a few minutes. When it finishes, Disk Utility shows you whether any issues were found and whether they were repaired. If First Aid cannot repair an error, it will tell you that the drive needs service or that you should back up your data and erase the drive.
If your Mac won't start up normally, you can run First Aid from Recovery Mode. Restart your Mac and hold Command + R while it boots. When the Recovery window appears, open Disk Utility and run First Aid on your startup drive. This method is more thorough because the drive is not in use while being scanned.
Signs that a specific file is corrupted
Before running a full disk scan, you can look for corrupted files by trying to use them. If a file won't open, opens with garbled text or strange characters, or causes a program to crash, it is likely corrupted. You can also check a file's properties to see whether its size seems reasonable — a corrupted file sometimes shows an unusually large or very small file size compared to similar files.
Try opening the file in a different program if possible. A corrupted Word document might not open in Microsoft Word but could open in Google Docs or LibreOffice, which sometimes can recover partial data. If a file is important and you have a backup, compare the file sizes — a corrupted file is often noticeably different in size from the backup version.
For image files, you can open them in an image viewer to see whether they display correctly. For video or audio files, try playing them in a different media player. If the file plays or displays in one program but not another, the issue may be with that specific program rather than the file itself.
Using command-line tools to check files
Windows users can use the command line to check individual files for corruption. Open Command Prompt and use the certutil command to verify a file's integrity. Type certutil -hashfile [filepath] SHA256 and press Enter. This generates a unique code (called a hash) for that file. If you have a backup of the same file, generate its hash the same way — if the hashes match, both files are identical and uncorrupted. If they differ, one of them has been altered.
Mac users can open Terminal and use the md5 or shasum command the same way. Type md5 [filepath] to generate a hash of the file. This method is useful if you have a known-good copy of a file and want to verify whether your current version matches it.
These command-line methods do not repair corrupted files — they only tell you whether a file has been altered. They are most useful when you have a backup and want to confirm which version is intact.
What to do after finding corrupted files
Once you have identified a corrupted file, your options depend on how important it is and whether you have a backup. If you have a recent backup, delete the corrupted file and restore the backup version. If the file is not critical, you can simply delete it. If the file is important and you have no backup, you can try recovery software, though success depends on how severely the file was damaged.
For system files that Check Disk or First Aid could not repair, you may need to reinstall your operating system or use a system recovery tool. Windows includes a System File Checker tool that can repair corrupted system files — open Command Prompt as administrator and type sfc /scannow, then restart your computer. Mac users can reinstall macOS from Recovery Mode without losing their files.
To prevent future corruption, keep your system and programs updated, use surge protectors to avoid power interruptions, and back up important files regularly. Corruption often happens during unexpected shutdowns or hardware failures, so a good backup strategy is your best defense.
Frequently Asked Questions
How long does it take to scan a drive for corrupted files?
A quick scan usually takes 5 to 15 minutes. A full scan that checks every sector of your drive can take 1 to 4 hours depending on drive size and speed. Larger drives and older hard drives take longer than smaller or newer drives. You can use your computer while a scan runs in the background, though the scan will be slower.
Can corrupted files spread corruption to other files?
A corrupted file itself does not spread corruption to other files. However, if the corruption was caused by malware, the malware could infect other files. If the corruption was caused by a failing hard drive, other files on that drive may also be at risk. Run a full disk scan and consider backing up your data if you suspect hardware failure.
What if Check Disk or First Aid finds errors but cannot repair them?
If the repair tools cannot fix the errors, the drive may have physical damage or serious logical errors. Back up your data immediately if you have not already done so. You may need to replace the drive or use professional data recovery services if the files are critical. Do not continue using the drive heavily until you have backed up what you need.
Can I check for corrupted files without restarting my computer?
Yes, you can run a scan while your computer is in use, but the results are usually more thorough if you schedule the scan for the next restart. When files are in use, the scanning tool cannot check them as completely. For the most reliable results, schedule the scan for restart or run it from Recovery Mode on Mac.
Is there a difference between a corrupted file and a deleted file?
Yes. A deleted file is removed from your file system but often still exists on the drive until that space is overwritten. A corrupted file still appears in your file system but its contents are damaged. Deleted files can sometimes be recovered with recovery software. Corrupted files cannot be recovered — they must be replaced with a backup or recreated.