To repair corrupted files in Windows 11, start with the free options: restore an earlier copy from Previous Versions, File History or OneDrive version history, then try the repair feature built into the program that opens the file, such as Word's or Excel's Open and Repair. If there is no good earlier copy and the built-in repair fails, a dedicated file repair tool can rebuild the damaged file itself and save a working copy. Before you try anything, make a copy of the damaged file so every attempt starts from the same original.
One thing to clear up first: "repairing corrupted files" means two different things in Windows. The sfc and DISM commands repair damaged Windows system files. They do nothing for your own documents, photos or videos. This guide is about your files.
Step 1: Make a copy and check the obvious
Before you open the damaged file again, right-click it, choose Copy, and paste a copy into a different folder. Some programs try to "fix" a file on open and can make things worse, so keep one untouched copy safe.
Then rule out the simple causes that look like corruption but are not:
- Wrong program or extension. A file renamed from
.docto.docx, or a video your player does not support, can show a "corrupt" error even though nothing is damaged. Try opening it in another program. - File size of 0 KB. Right-click the file and choose Properties. If the size is 0 bytes, there is no data left to repair and only an earlier copy can help.
- Blocked download. For files from email or the web, the Properties window may show an Unblock checkbox. Office files may also open in Protected View; click Enable Editing if you trust the source.
- OneDrive placeholders. A cloud icon next to the file means it is online-only. Right-click and choose Always keep on this device, wait for the download, then try again.
Step 2: Restore an earlier version
If the file was fine yesterday, an earlier copy is the cleanest fix. Windows and OneDrive keep several kinds:
| Where to look | How to find it | When it works |
|---|---|---|
| Previous Versions | Right-click the file or its folder, choose Properties, open the Previous Versions tab | Only if File History or restore points were capturing that folder |
| File History | Search for File History in the Start menu (Control Panel) and choose Restore personal files | Only if you set it up and connected a backup drive |
| OneDrive version history | Right-click the file in a OneDrive folder and choose Version history, or use onedrive.com | Files stored in OneDrive; Office files keep many earlier versions |
| Office AutoRecover | In Word or Excel, File > Info > Manage Document (or Manage Workbook) > Recover Unsaved | Recent unsaved or crashed work only |
| The original source | Re-download it, ask the sender again, copy it from the camera card or another PC | Downloads, email attachments and anything that exists elsewhere |
An earlier version may be missing your latest changes, but it is undamaged. If you find one, open it, check it and save it under a new name.
Step 3: Use the program's own repair feature
Several programs can fix mild damage on their own:
- Word, Excel and PowerPoint: go to File > Open > Browse, select the file, click the small arrow next to Open and choose Open and Repair. See our guides to repairing a Word document and repairing an Excel file for the details.
- Videos: VLC media player often plays videos that other players refuse, and for a damaged AVI it offers to fix the index as it opens. That fix only lasts while VLC is playing, but it at least shows whether the footage is there.
- ZIP files: right-click and choose Extract All. Windows may extract the intact files before it hits the damaged part. If the ZIP came from the internet, re-downloading is usually the quickest fix.
- PDFs and photos: try a different viewer. Some PDF readers and photo apps are more forgiving than others with minor errors.
These tools are worth trying because they are free and already installed. Their limit is that they give up quickly when the damage is more than slight, and they often recover plain content but lose the structure, such as formatting, sheets, images or sound.
Step 4: Repair the file with File Repairer
When there is no good earlier copy and the built-in repair fails, File Repairer rebuilds the damaged file directly. It runs on 64-bit Windows 10 (version 1809 or later) and Windows 11, and everything happens on your PC, so your files are never uploaded.
- Drag the damaged files, or a whole folder of them, into File Repairer.
- Click Repair All. It rebuilds Office files, PDFs, photos, videos and ZIP or RAR archives (see the full list of supported file types).
- Preview each result, including a "what was recovered" panel, before you save anything.
- Save the repaired copies. They get " (repaired)" added to the name, and your originals are never changed or overwritten.
Each file gets a clear result: Repaired, Partly repaired, No damage found, Needs a sample file, Text extracted or Failed. "Needs a sample file" appears for videos cut off when a battery died or a card filled up, and for JPEGs with a destroyed header. Adding a working file from the same camera or phone lets File Repairer rebuild the missing structure. When a document is too damaged to rebuild, Tools > Extract Text & Data pulls every readable piece of text and data into a new file so you can at least get the content back.
Checking, repairing and previewing are free, so you can see exactly what can be recovered before you decide anything. Saving the repaired copies needs an Installation Key.
What file repair can and cannot do
It helps to know the limits before you start, so you pick the right tool:
- Deleted files are a different problem. If the file is gone, or the drive is failing and cannot be read, you need data recovery software first. Recover the files, then repair the ones that will not open. Our guide on recovered files that won't open covers that order.
- Overwritten data cannot come back. If part of a file was overwritten or never written to disk (for example, a save that was interrupted), no tool can recreate it. That is why some repairs are partial.
- Passwords and encryption stay in place. Repair does not remove passwords or break encryption.
- Not every format is covered. File Repairer handles Word, Excel, PowerPoint, PDF, JPEG, PNG, HEIC, camera RAW, MP4, MOV, AVI, MKV, ZIP and RAR. It does not repair databases, Outlook PST files or audio-only files.
Stop it happening again
Most corruption comes from interrupted saves, unplugged drives, power cuts and failing storage. A few habits cut the risk sharply: eject USB drives before you unplug them, keep important folders in OneDrive or under File History, and replace a drive that starts throwing errors. Our guide on why files get corrupted explains each cause and how to avoid it.
Frequently asked questions
Does SFC repair corrupted documents or photos?
No. The sfc /scannow and DISM commands only repair Windows system files. Your own documents, photos and videos need an earlier copy, the program's own repair feature or a file repair tool.
Can a corrupted file be repaired for free?
Often, yes, if you have an earlier version in File History or OneDrive, or if Word's or Excel's Open and Repair works. File Repairer also lets you check, repair and preview files for free before deciding whether to save the repaired copies.
Why is my repaired file missing some content?
If part of the file was overwritten or never saved to disk, that data no longer exists anywhere, so no tool can bring it back. A good repair keeps everything that survived and rebuilds the structure around it.
