A corrupted file usually shows up at the worst possible time: a document won’t open, Windows throws an error, or a folder suddenly looks empty. Knowing how to fix corrupted files comes down to the type of damage: run DISM followed by System File Checker (sfc /scannow) for Windows system files, use an app’s built-in repair command for documents like Word or Excel, and turn to a dedicated file repair tool or data recovery software when the original copy is damaged or missing. Which path applies depends on whether the problem is one file, a Windows component, or the drive itself.

We’ve walked plenty of readers through file corruption over the years, and the pattern is almost always the same. People try to fix the file first and only think about backups after making things worse. A few minutes of caution up front saves hours of frustration later, especially when the corruption points to a failing drive rather than a simple software glitch.
What Should You Do Before Trying to Repair a File?
Protect what you have before attempting any repair. File corruption can come from a sudden power loss, a bad shutdown, malware, or physical damage like bad sectors on the drive, and the right first move depends on which of those caused the damage.
Make a Copy and Check for an Earlier Version

Copy the damaged file to a different drive before doing anything else. Repair attempts sometimes make a file worse, so working on a duplicate protects the original.
Check File History next. If it’s turned on, right-click the folder that used to hold the file in File Explorer and select Restore previous versions to pull an undamaged copy from before the corruption happened.
Is the Problem One File, Windows, or the Drive?
Figure out the scope before picking a fix. A single damaged document calls for a different tool than a Windows system error or a drive full of bad sectors.
Test a few clues:
- Does only one file misbehave, or do several unrelated files fail the same way?
- Does Windows itself feel unstable, with freezing or error messages?
- Does File Explorer show odd folder sizes or missing files across a whole drive?
When Should You Stop Using the Drive?
Stop using a drive immediately if Windows shows a critical storage warning or the drive turns read-only. These warnings point to degraded reliability, low spare capacity, or a drive set to read-only, and continued use raises the risk of permanent data loss. Back up anything important right away and avoid writing new files to that drive until you’ve checked it with disk tools.
How Do You Repair Corrupted Windows System Files?
Windows includes two built-in tools, DISM and System File Checker (SFC), that handle most corrupted system files on Windows 10 and Windows 11 without needing a full reinstall. Running them in the right order matters, and knowing what to do if they can’t fix everything saves a lot of guesswork.
Run DISM Before System File Checker
Run DISM first so SFC has good files to work with. Open Command Prompt as administrator and type:
DISM.exe /Online /Cleanup-image /Restorehealth
DISM pulls replacement files from Windows Update, so it needs a working internet connection. This step can take several minutes to complete, and interrupting it isn’t recommended.
Run sfc /scannow and Check the Result
Type sfc /scannow and press Enter once DISM finishes. This command scans every protected system file and swaps in a clean cached copy wherever it finds damage.
Let the scan reach 100% before closing the window. When it’s done, you’ll see one of a few messages: no integrity violations found, corrupted files found and repaired, or corrupted files found that couldn’t all be fixed.
What If SFC Cannot Repair Everything?
Check the CBS.log file to identify which files SFC couldn’t fix. Running this command copies the relevant details to your desktop:
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"
From there, you can manually replace a stubborn file with a known good copy using takeown and icacls to grant yourself access, then copy the replacement file into place. If that’s too deep in the weeds, Windows 11 offers a Reinstall now option under Settings > System > Recovery that repairs system files and components while keeping your apps and personal files intact.
How Can You Repair a Corrupted Document or Other File?
Most document formats, including Word, Excel, and PowerPoint files, have a built-in repair command worth trying before any third-party tool. For formats without native repair options, like PSD, PST, or ZIP archives, a dedicated file repair tool matched to that format works better.
Try the App’s Built-In Repair Options First
Open the file through the app’s Open and Repair command rather than double-clicking it. In Word, Excel, or PowerPoint, go to File > Open > Browse, select the damaged file, then click the arrow next to the Open button and choose Open and Repair.
For Excel workbooks specifically, if Open and Repair doesn’t recover everything, try Extract Data instead to pull out formulas and values. Switching Excel’s calculation setting to manual before opening a stubborn workbook can also let it load without recalculating formulas that trigger the corruption error.
Choose a File Repair Tool That Supports the Format
Match the repair tool to the exact file type. A tool built for DOCX repair won’t necessarily handle a damaged PSD, AI, or EXE file, so check that the software explicitly supports your format, whether that’s DOC, XLS, PPT, PDF, RAR, TXT, or KEY, before relying on it.
File repair software generally works by rebuilding the file’s internal structure rather than editing its visible content, which is why format-specific support matters so much.
Should You Upload the File to an Online Repair Service?
Think carefully before uploading anything sensitive to a free online file repair tool. Online file repair can be convenient for a quick, non-sensitive file, but uploading something that contains personal or financial information carries real privacy risk. The Federal Trade Commission advises businesses to limit how much sensitive data they collect and to protect whatever they do keep, and the same caution applies to reader on the other end of an upload button. For anything containing personal records, financial details, or business secrets, a desktop file repair tool that never leaves your computer is the safer choice.
What If the File Is Missing or the Drive Has Errors?

A missing file calls for recovery rather than repair, and the right method depends on whether you have a backup, whether the drive itself has errors, or whether the file is simply gone. Each situation points to a different tool.
Recover an Earlier Copy From a Backup
Check File History first if it was turned on before the file went missing. Right-click the folder in File Explorer and choose Restore previous versions, then pick a version from before the file disappeared and select Restore.
Keep in mind that restoring replaces the current version on your computer, and that action can’t be undone, so restore to a different location if you want to keep both versions.
Check Drive Errors Without Risking Further Damage
Run chkdsk with care, since fixing errors can change the drive’s data. Typing chkdsk alone just reports problems without changing anything; adding /f fixes logical errors, and /r locates bad sectors and tries to recover readable data from them.
Close open files on that drive first, since chkdsk needs to lock the drive to make repairs. On a drive already showing bad sectors, run chkdsk once to see the full scope before deciding whether repair or replacement makes more sense.
Use Data Recovery Software When the Original Is Gone
Turn to Windows File Recovery when a file has been deleted and isn’t in the Recycle Bin. This command-line app, available from the Microsoft Store, offers a Regular mode for recently deleted files on NTFS drives and an Extensive mode for files deleted a while ago, after formatting, or on a corrupted disk.
Recover to a different drive than the one that lost the file, and avoid using the affected drive in the meantime. Any new file written to that drive can overwrite the space where your lost data still sits.
Choose Repair, Recovery, or Replacement Based on the Cause

Match the fix to the cause: repair a single damaged file with the right software, recover a missing file from backup or recovery tools, and replace a drive that keeps showing errors. Mixing these up wastes time and sometimes makes the damage permanent.
A document that opens with garbled text but still exists is a repair job. A file that’s vanished from a folder but was recently backed up is a recovery job. A drive that keeps throwing read errors, shows a critical storage warning, or has a growing list of bad sectors needs replacing, not repeated repair attempts.
If Windows itself feels unstable after DISM and SFC, Windows 11 offers graduated recovery options, starting with the least disruptive. Try a troubleshooter first, then reinstalling Windows while keeping files and apps, then uninstalling a recent update, and only resetting the PC or using installation media as a last resort. Each step up this ladder risks more disruption, so start at the top.
For drives themselves, a critical storage warning showing degraded reliability or a drive set to read-only means backing up immediately and avoiding further writes. Spare capacity running low or temperature climbing are both signs worth watching on NVMe SSDs specifically, since Windows monitors those drives for exactly this kind of early warning.
Frequently Asked Questions

Can a corrupted file always be repaired?
No, not every corrupted file can be fully repaired. Mild corruption from an interrupted save often responds well to built-in repair tools or file repair software, but severe damage from bad sectors or a failing drive sometimes destroys data beyond recovery. Having a recent backup remains the most reliable safeguard against total loss.
How do I fix corrupted files in Windows 11 or Windows 10?
Run DISM with DISM.exe /Online /Cleanup-image /Restorehealth, then run sfc /scannow from an administrator Command Prompt. This combination repairs most corrupted Windows system files by replacing damaged components with cached healthy copies, and it works the same way on both Windows 10 and Windows 11.
Can I repair a corrupted file online for free?
Yes, several online file repair tools handle common formats like DOCX, PDF, or ZIP at no cost. Think twice before uploading files containing personal, financial, or business-sensitive information, since that data leaves your computer during the upload. A desktop file repair tool keeps sensitive files local.
What causes a file to become corrupted?
File corruption commonly comes from a sudden power loss, an interrupted save, malware, or physical drive damage like bad sectors. Removing a USB drive while a file is still open on it is a frequent and easily avoidable cause. Using the Safely Remove Hardware option before disconnecting a drive prevents much of this damage.
What should I do if SFC finds files it cannot fix?
Check the CBS.log file to find exactly which files SFC couldn’t repair, then replace those files manually with known good copies from a matching Windows installation. If that process feels too technical, Windows 11’s Reinstall now option under Settings > System > Recovery repairs system files while preserving your apps and personal data.

I’m Anirban Saha, Founder & Editor of TechBullish. With a B.Tech in Electronics and Communication Engineering, and 8+ years of experience as a software developer, I have expertise in electronics, software development, gadgets, and computer peripherals. I love sharing my knowledge through informational articles, how-to guides, and troubleshooting tips for Peripherals, Smart TVs, Streaming Solutions, and more here. Check Anirban’s LinkedIn Profile here.