Repair Corrupt Files After Recovery: Step-by-Step
In this article
Recovered files often come back corrupted because the data was partially overwritten or the recovery process couldn't reassemble every sector. You can repair many of these files using built-in tools, dedicated repair software, or by re-downloading the original. Start by checking if the file opens at all, then use the appropriate method below based on the file type. You'll need a computer with the original software that created the file (e.g., Word for .docx), a stable internet connection for re-downloads, and possibly a third-party repair tool for complex cases.
What You'll Need
- The original software that created the file (e.g., Microsoft Word for .docx, Adobe Photoshop for .psd)
- A backup or the original source (email, cloud storage, download link) to re-fetch the file
- Optional: a dedicated file repair tool like Stellar Repair for Word, or online services for specific formats
- For disk-level corruption: a working external drive to copy files to
Step-by-Step
- Identify the file type and corruption level. Try opening the file with its native program. If you get an error like "file is corrupt" or "cannot open," note the exact message. If the file opens but looks garbled, the corruption is partial.
- Try the built-in repair feature in Microsoft Office. Open Word, Excel, or PowerPoint, go to File > Open, select the corrupt file, click the dropdown arrow next to the Open button, and choose "Open and Repair." This works for .docx, .xlsx, .pptx files. If that fails, try opening with a different Office version or Google Docs (upload to Google Drive and open with Google Docs) which sometimes recovers text.
- For images (JPEG, PNG, RAW): Use a free online repair service like jpeg-repair or Stellar Phoenix JPEG Repair (trial version). Upload the file, let it scan, and download the repaired version. For RAW files, use the camera manufacturer's software (e.g., Canon DPP, Nikon Capture NX-D) if available.
- For videos (MP4, MOV, AVI): Use a tool like VLC Media Player (free) to repair the index. Open VLC, go to Tools > Preferences, click "Input/Codecs," and under "Damaged or incomplete AVI file," select "Always fix." Then try playing the file. For MP4, use a dedicated tool like Grau GmbH Video Repair (free trial) or Restore.Media (online).
- For PDFs: Open the PDF in Adobe Acrobat (not just Reader). Go to File > Open, select the file, and if Acrobat prompts "Adobe Acrobat can repair the file," click Yes. If not, use the online tool iLovePDF Repair PDF or Smallpdf Repair PDF (free for basic use).
- For ZIP/RAR archives: Use WinRAR (free trial) or 7-Zip (free). Open the archive, select the corrupt file, and choose "Repair archive" (WinRAR) or use the "Test" command first. WinRAR will create a repaired archive with a .recovered extension. For ZIP, try DiskInternals ZIP Repair (free trial).
- If the file is a text document (TXT, RTF, CSV): Open it in Notepad or a text editor. Sometimes the text is recoverable even if formatting is lost. Copy the content and paste into a new file.
- Re-download or re-obtain the file. If the corruption is severe and no repair tool works, go back to the source. Check your email attachments, cloud storage (Google Drive, Dropbox, OneDrive) version history, or the original download link. If you have a backup (Time Machine, File History, or manual), restore from that instead.
- For disk-level corruption (bad sectors): Copy the file to a different drive first. Use a tool like ddrescue (Linux) or HDD Regenerator (Windows) to clone the drive and recover as much data as possible. Then attempt the repair methods above on the copied file.
Common Mistakes
- Opening the file repeatedly with the original program – each failed open attempt can overwrite more data, worsening corruption.
- Using a repair tool on the original drive – always copy the file to another drive first to avoid further damage.
- Ignoring the file extension – if the extension is wrong (e.g., .docx saved as .txt), the program won't recognize it. Rename it to the correct extension before trying repair.
- Deleting the original recovered file before attempting repair – always keep the original as a fallback.
Tips
- Work on a copy: Never repair the only copy. Duplicate the file and work on the duplicate.
- Use file carving tools for severe cases: Tools like PhotoRec (free, open-source) can scan raw disk sectors and extract file fragments, but they don't reassemble them perfectly – you'll get partial files.
- Check the file size: If the recovered file is significantly smaller than the original (e.g., a 10 MB photo comes back as 2 KB), it's likely just a header or empty – repair tools may not help; re-download is better.
- Keep backups: The best repair is prevention. Use cloud syncing or external drives with versioning.
Troubleshooting
If the repair fails, try these in order:
- Restart your computer – sometimes the file is locked by another process.
- Update the repair tool or software – newer versions support more file structures.
- Try a different repair tool – each tool uses different algorithms; one may succeed where another fails.
- Use an online service – services like Online File Repair (for Word, Excel, PDF) can sometimes handle what desktop tools can't.
- Check the drive health – if the drive has bad sectors, run
chkdsk /fon Windows (in Command Prompt as Administrator) orfsckon macOS/Linux. This may fix underlying issues but will not repair the file itself. - If all else fails, accept the loss – some corruption is irreversible. Recreate the file from memory, or use a previous version from cloud storage (e.g., Google Drive's version history).
Frequently Asked Questions
Can I repair a corrupt file without any software?
Yes, for text-based files (TXT, CSV, RTF) you can open them in a text editor and copy the readable content. For Office files, the built-in "Open and Repair" is free. For others, you need third-party tools.
Why does my recovered file open but show garbage?
This usually means the file's structure (headers, metadata) is intact but the content data is partially overwritten. Text and some formatting may be recoverable, but complex elements like images or formulas may be lost.
Is it safe to use free online repair tools?
Only upload non-sensitive files. Online tools transmit your file to their servers, so never upload confidential or personal data. For privacy, use offline tools.
Can I repair a corrupted file on my phone?
Some mobile apps offer basic repair for images and videos, but desktop tools are more reliable. For Office files, Google Docs can sometimes open corrupted .docx files.
Will repairing a file ever make it worse?
Repair tools work on a copy if you follow the steps. If you work on the original, you risk overwriting remaining data. Always keep the original untouched.
How can I prevent file corruption in the future?
Use reliable storage (SSD over HDD), safely eject drives, avoid interrupting transfers, and maintain regular backups with versioning.