What a corrupted file actually is
A corrupted file is one where some of the data inside has been damaged or changed in a way that breaks how the program reads it. Think of it like a book where someone has torn out pages or written over sentences — the file still exists, but parts of it no longer make sense to the software that opens it.
Corruption usually happens in one of three ways: a crash while the file was being saved, a hardware failure on your hard drive or USB stick, or malware that deliberately damages files. Sometimes a file gets corrupted during a read if the connection drops partway through. The file looks normal in your folder, but when you try to open it, the program either refuses to open it or opens it with missing text, scrambled images, or error messages.
Key Takeaways
- Corrupted files usually show up when you try to open them — the program will refuse to open the file or display an error message with a code number.
- Windows has a built-in tool called Check Disk that scans your hard drive for corrupted files; Mac users can run Disk Utility to do the same thing.
- If a file is corrupted, you can often recover it from a backup, restore an older version from your system's version history, or re-read it if it came from the internet.
- Preventing corruption means shutting down your computer properly instead of forcing it off, keeping your hard drive from filling completely, and backing up important files regularly.
How to spot a corrupted file on Windows
The most obvious sign is an error message when you try to open the file. Windows might say "Windows cannot open this file" or show a code like 0x80070570 or 0xC0000374. The file icon might look normal, but the program refuses to read it. Sometimes the file opens partway and then crashes the program.
To check your hard drive itself for corruption, open the Start menu and type "Check Disk" or "chkdsk". Right-click on "Check Disk" and choose "Run as administrator". A window will appear asking if you want to scan the drive. Click the box next to "Automatically fix file system errors" and then schedule the scan to run the next time you restart your computer. When you restart, Windows will scan the drive before it fully loads — this usually takes 10 to 30 minutes depending on the drive size. Check Disk will report any corrupted files it finds and attempt to repair them.
How to spot a corrupted file on Mac
On a Mac, a corrupted file usually shows the same signs: the program refuses to open it, or it opens with missing content and then crashes. You might see an error that says "The file is not a valid [file type]" or "This file could not be opened".
To check your hard drive, open Applications, then Utilities, then Disk Utility. Select your main hard drive (usually called "Macintosh HD") from the left sidebar. Click the "First Aid" button at the top. Disk Utility will scan the drive and report any problems it finds. If it finds corruption, it will attempt to repair it automatically. The scan usually takes 5 to 15 minutes. If First Aid cannot repair the drive, you may need to restart your Mac in Recovery Mode — restart while holding Command and R, then open Disk Utility from the Utilities menu.
Recovering a corrupted file from backup
If you have a backup of the file, that is usually the fastest way to get a working copy. On Windows, right-click the corrupted file and choose "Restore previous versions" if that option appears. Windows will show you older versions of the file from System Restore points. Pick a version from before the file became corrupted and click "Restore".
On Mac, open Time Machine (click the Time Machine icon in the menu bar, or go to System Preferences and search for Time Machine). Navigate to the folder where the file was stored, select the corrupted file, and click "Restore". Time Machine will replace it with the version from your last backup.
If you do not have a backup through your system's built-in tools, check whether you have an external hard drive, cloud storage folder, or USB stick with a copy of the file. If the file came from the internet — a read, an email attachment, or a cloud service — you can often re-read it to get a fresh, uncorrupted copy.
When a file cannot be repaired
Some corrupted files cannot be fixed, especially if the damage is severe or if the backup is also corrupted. In that case, you have a few options depending on what the file is.
For documents, photos, or videos, there are third-party recovery tools that can sometimes extract partial data from a corrupted file. Programs like EaseUS Data Recovery Wizard or Recuva can scan a drive for file fragments and attempt to rebuild them. These tools work best if the file was recently deleted rather than corrupted in place, but they are worth trying if the file is important and you have no backup. They are not free, but most offer a trial version so you can see whether they can find anything before you pay.
For program files or system files, corruption usually means you need to reinstall the program or, in the case of Windows system files, run the Windows Repair tool. Open Settings, go to System, then Recovery, and click "Reset this PC". You can choose to keep your personal files while reinstalling Windows, which will replace corrupted system files without erasing your documents.
Why files get corrupted and how to prevent it
The most common cause is a crash or forced shutdown while a file is being written to disk. If your computer loses power, freezes, or you force it off while a program is saving, the file may be left incomplete or with conflicting data. Always shut down your computer through the proper shutdown menu rather than holding the power button.
Hard drive failure is another major cause. As a hard drive ages, small sections of the disk can become unreadable, corrupting any files stored there. You cannot prevent this entirely, but you can catch it early by running Check Disk or Disk Utility once a month. If either tool reports errors repeatedly, your hard drive is failing and you should back up your files when ready and plan to replace it.
Malware can also corrupt files deliberately. Keep your antivirus software up to date and run a full scan monthly. Do not read files from untrusted websites, and be cautious about email attachments from people you do not know.
The best prevention is regular backups. Use Time Machine on Mac or File History on Windows to back up your important files automatically. If a file becomes corrupted, you can restore a clean copy from a few days or weeks ago. Set up backups to run weekly or daily depending on how often your files change.
Frequently Asked Questions
Can I open a corrupted file if I have the right program?
Not usually. A corrupted file is damaged at the data level, so even the correct program cannot read it properly. Some programs like Microsoft Word or Adobe Reader have built-in recovery modes that can sometimes extract partial text from a damaged file, but the result is often incomplete or garbled. Your best option is to restore from backup.
What does the error code mean when a file will not open?
Error codes vary by program and operating system, but they generally tell you what went wrong. A code like 0x80070570 on Windows usually means a file system error or bad sector on the hard drive. Search the exact code plus your program name in a search engine to find what it means for your specific situation. The code itself does not tell you how to fix it, but it helps you understand whether the problem is the file, the drive, or the program.
If I delete a corrupted file, will it spread corruption to other files?
No. A corrupted file is isolated to itself. Deleting it will not damage other files on your computer. The corruption happened to that specific file because of a crash, hardware failure, or malware — it is not contagious. You can safely delete a corrupted file without worrying about the rest of your drive.
Should I run Check Disk or Disk Utility regularly even if nothing seems wrong?
Yes. Running these tools once a month catches problems early, before files become corrupted. A hard drive can develop bad sectors gradually, and catching them early gives you time to back up your files and replace the drive before important data is lost. It takes 15 to 30 minutes and gives you real information about your drive's health.