A corrupted file is one whose data has been damaged or altered so it no longer works the way it should
When a file becomes corrupted, the information inside it gets scrambled, incomplete, or changed in ways the program that opens it cannot understand. A Word document might refuse to open. A photo might display with strange colors or missing sections. A video could freeze or play audio without picture. The file still exists on your computer, but the data inside no longer matches what the program expects to find.
Corruption happens at the level of the actual data — the ones and zeros stored on your hard drive or in the cloud. If those bits get flipped, overwritten, or lost, the file breaks. Unlike a file you delete (which you can sometimes recover), a corrupted file is still there, but it is damaged in a way that makes it unusable.
Key Takeaways
- Corrupted files result from data damage during storage, transfer, or a system crash — not from viruses or user error alone.
- Common causes include sudden power loss, incomplete downloads, hardware failure, and software crashes while saving.
- You can sometimes recover a corrupted file using built-in repair tools or by restoring from a backup.
- Prevention relies on proper shutdowns, safe ejection of external drives, and keeping backups of important files.
- A corrupted file is different from a file you deleted — the file remains but the data inside is damaged.
How files become corrupted
The most common cause is a sudden power loss or system crash while a file is being written to disk. If your computer shuts down unexpectedly while you are saving a document, the data may be only partially written. The program expects a complete file structure, but instead finds incomplete or mismatched information.
Incomplete downloads also corrupt files regularly. If your internet connection drops halfway through downloading a large file, you end up with a partial copy that no program can fully read. The file header might be intact, but the rest is missing or garbled.
Hardware failure is another source. A failing hard drive, solid-state drive, or USB stick may lose the ability to store data correctly. Sectors on the drive become unreadable, and any file stored there gets damaged. Cloud storage services and external drives are not immune — a hardware fault on their end can corrupt files you thought were safely backed up.
Software bugs and crashes during saving can also leave files in an unusable state. If a program crashes while writing changes to disk, it may not finish writing the file structure properly. Malware and viruses can corrupt files too, though this is less common than hardware or power-related causes.
Signs your file is corrupted
The clearest sign is that a file will not open at all, or opens but displays an error message. You might see "file format not recognized" or "file is corrupted and cannot be opened" — different programs phrase this differently, but the meaning is the same.
Sometimes a file opens partially. A photo might load but show only part of the image, with the rest blank or distorted. A video might play audio but no video, or freeze partway through. A spreadsheet might open but show garbled text or missing columns. These partial failures usually mean the file header is intact enough for the program to recognize it, but the data inside is damaged.
Repeated crashes when you try to open a file are another indicator. The program recognizes the file type but cannot process the corrupted data without crashing. This is different from a program crash unrelated to the file — it happens consistently when you try to open that specific file.
What you can do if a file is corrupted
The first step is to check whether you have a backup. If you backed up the file before it became corrupted, restoring from that backup is the simplest solution. Cloud services like Google Drive, OneDrive, and Dropbox often keep version history, so you may be able to restore an earlier, uncorrupted version of the file.
Many programs have built-in repair tools. Microsoft Office (Word, Excel, PowerPoint) can attempt to repair corrupted documents — open the program, go to File, then Open, and look for an "Open and Repair" option. Some other applications have similar features in their File menu.
For image files, specialized repair software exists that can sometimes reconstruct damaged photos or videos. These tools scan the file for recoverable data and rebuild what they can. Results vary depending on how severely the file is damaged.
If the file is on an external drive or USB stick, try connecting it to a different computer. Sometimes the corruption is temporary or related to a specific computer's settings. If it opens on another machine, you can save a fresh copy there.
If none of these work, the file may be unrecoverable. In that case, your best option is to recreate it from scratch if the original content is important, or accept the loss if you have other copies.
How to prevent file corruption
Always shut down your computer properly instead of forcing it off or unplugging it. A proper shutdown ensures all files are closed and written to disk completely. If you lose power unexpectedly, there is not much you can do in that moment, but using a surge protector or uninterruptible power supply (UPS) can help prevent sudden shutdowns.
Eject external drives safely before disconnecting them. On Windows, right-click the drive and select "Eject". On Mac, drag the drive to the Trash or use Eject in Finder. This ensures all data is written to the drive before you remove it.
Keep backups of important files. Use cloud storage, an external hard drive, or both. The 3-2-1 backup rule is a good guideline: keep three copies of important files, on two different types of storage, with one copy stored off-site. If one copy becomes corrupted, you have others.
Avoid working directly on files stored on external drives or network locations if possible. Copy them to your computer first, work on them there, then copy the finished version back. This reduces the chance of corruption during the save process.
Keep your operating system and programs updated. Software updates often include fixes for bugs that can cause corruption. Antivirus software will not prevent all corruption, but it does reduce the risk from malware.
Corrupted files versus deleted files
A deleted file is one you have removed from your computer. The file name and location information are erased, but the actual data may still exist on the drive until it is overwritten by new data. Deleted files can often be recovered using data recovery software, as long as the space has not been reused.
A corrupted file is still there — your computer can see it exists — but the data inside is damaged. You cannot recover a corrupted file the way you recover a deleted one, because the problem is not that the file is missing, but that what remains is unusable. A corrupted file takes up space on your drive just like any other file, but you cannot use it.
In rare cases, a file can be both: deleted and corrupted. If a file becomes corrupted and you then delete it, recovery software might be able to retrieve the file, but it would still be corrupted when recovered.
When to seek help
If a corrupted file is not critical, you can usually move on. Delete it and use a backup or recreate it. If the file is important and you have no backup, a data recovery service might be able to help, though they are expensive and success is not may provide.
If many files on your computer are becoming corrupted, the problem may be hardware failure rather than a one-time accident. In that case, back up everything you can immediately and have the drive checked by a technician. Continuing to use a failing drive risks losing more files.
Frequently Asked Questions
Can I fix a corrupted file myself?
Sometimes. Try the built-in repair tools in your program first — Microsoft Office has an "Open and Repair" option that works for some corrupted documents. For other file types, specialized repair software may help. If you have a backup, restoring from it is usually faster and more reliable than attempting a repair.
Is a corrupted file a sign of a virus?
Not usually. Most file corruption comes from power loss, incomplete downloads, or hardware failure. Viruses can corrupt files, but they typically cause other obvious problems first, like slow performance or unexpected behavior. If only one or two files are corrupted, hardware or power loss is more likely than malware.
Will antivirus software prevent file corruption?
Antivirus software reduces the risk of malware-related corruption, but it cannot prevent corruption from power loss, hardware failure, or incomplete downloads. The best prevention is proper shutdowns, safe drive ejection, and regular backups.
What does "file format not recognized" mean?
It means the program cannot read the file because the data inside does not match what the program expects. This usually indicates corruption, but it can also mean you are trying to open a file with the wrong program. Try opening the file with a different program, or check the file extension to make sure it matches the file type.
Can I recover data from a severely corrupted file?
It depends on how severe the damage is. If only part of the file is corrupted, repair tools or specialized recovery software may retrieve some data. If the file is severely damaged throughout, recovery is unlikely. A professional data recovery service can sometimes help, but costs are high and results are not may provide.