How to Repair Corrupted or Unsafe Excel Files
Question details
The user is unable to open a workbook because Excel displays a warning message stating the file is corrupted or unsafe.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to open an existing workbook in Microsoft Excel.
- Observed behavior
- Excel blocks the file from opening, displays an error message about corruption or file safety, and the application may sometimes appear frozen.
Before attempting a repair, duplicate the corrupted file and save the copy in a different folder to prevent accidental permanent data loss during the recovery process.
Use the Excel Open and Repair Feature
The built-in Open and Repair tool is the most direct method to fix minor file corruptions and recover your workbook data.
This native feature attempts to automatically fix structural issues within the workbook. If the repair process fails, it can also attempt to extract just the raw data and formulas.
Launch the Microsoft Excel application directly from your start menu. Do not double-click the corrupted file to open it.
Click on the 'File' tab in the top-left corner, then select 'Open' from the left-hand menu. Choose 'Browse' to locate your file.
Click once on the corrupted workbook to highlight it. Instead of clicking the main 'Open' button, click the small arrow next to it and select 'Open and Repair' from the drop-down list.
Click 'Repair' in the dialog box that appears. If a previous repair attempt failed, repeat the process and choose 'Extract Data' instead to salvage your values and formulas.

Repair or Reinstall Microsoft Office
If Excel fails to open any workbook and displays the unsafe file message continuously, the Office application itself may be corrupted.
Recover Data Using External References
Extract raw data from the corrupted workbook without actually opening it by linking a new spreadsheet to the damaged file.
Try WPS Office to Open Problematic Excel Files
If Microsoft Excel is crashing, freezing, or unable to process your workbooks, WPS Office offers a lightweight, highly compatible, and completely free alternative. WPS Spreadsheet seamlessly opens .xlsx files and can often bypass the minor corruption flags that block MS Excel, allowing you to access and recover your crucial data immediately.
- 1. Download and Install: Get WPS Office for free from the official website and follow the quick installation prompts.
- 2. Open WPS Spreadsheet: Launch the WPS Spreadsheet module from the unified WPS Office dashboard.
- 3. Open the Problematic File: Go to Menu > Open, and select your corrupted Excel file. WPS will automatically attempt to bypass minor errors and display your data.

Frequently Asked Questions
Why does Excel say my file is corrupted or unsafe?
This error usually occurs due to unexpected power outages while saving, network interruptions if saving to a shared drive, bad sectors on your hard drive, or incompatible third-party Excel add-ins disrupting the save process.
Can I recover an unsaved Excel file that crashed?
Yes. Open Excel, go to File > Info > Manage Workbook, and select 'Recover Unsaved Workbooks'. You can also check the AutoRecover pane that typically appears on the left side of the screen when reopening Excel after a crash.
What if the Open and Repair tool completely fails?
If the built-in tool fails, try opening the file in a different spreadsheet program like WPS Office, which processes file structures differently. Alternatively, you can right-click the file in Windows Explorer, select 'Properties', go to the 'Previous Versions' tab, and restore an older, uncorrupted backup.
How can I prevent Excel files from getting corrupted in the future?
Always ensure your computer is plugged into a stable power source, save files locally before transferring them to USB drives or network folders, and turn on the AutoSave feature. Regularly updating your Office software also prevents known bugs that cause corruption.




