How to repair corrupted Word and Excel files on Mac
A Word document or Excel spreadsheet that won't open is its own particular dread — these are often the files with no second copy, the report due tomorrow, the spreadsheet a year of work went into. Word may announce the file is corrupt and can't be opened; Excel may say the format is invalid or offer to recover and then fail. The content is usually still in there. What's broken is the container holding it.
Understanding what a modern Office file actually is makes both the problem and the fix clear. This guide explains that, walks through the built-in recovery options to try first, and shows how DataRecover Pro repairs the file when those come up empty.
Word and Excel files are ZIP containers
A .docx or .xlsx file is not a single blob of document data. It's a ZIP archive in disguise. Inside that zip is a structured set of XML files — the OOXML, or Office Open XML, format — that together describe your document: the text and formatting in one part, the styles in another, embedded images in their own folders, and a manifest that ties it all together. Rename a .docx to .zip and you can literally open it and browse the parts.
This design is robust in normal use, but it has a consequence when things go wrong. Because the document lives inside a zip structure, damage to that structure can make the entire file unreadable even when the XML content inside is perfectly intact. The zip's central directory — the index listing every part and where it lives — is a single point of failure. Corrupt it, and an application can't find any of the parts, so the whole document is unreadable despite the text being right there.
How Office files corrupt
The causes are the familiar ones. An interrupted save is common: the Mac crashes or the app quits while writing the file, and the zip never gets its closing directory, leaving the document incomplete. A file stored on a drive with bad sectors can lose blocks from the middle of the archive. And when a deleted Office file is recovered from a damaged drive, parts of the zip may have been overwritten or the file may have been carved with imperfect boundaries, leaving a structurally broken archive.
Cloud sync conflicts and faulty transfers over flaky connections can also truncate or scramble the file. In every case the pattern is the same as it is for other formats — the document content largely survives, but the container structure that makes it readable is damaged.
Try the built-in recovery first
Before reaching for repair software, it's worth trying what Word and Excel offer on their own, because for mildly damaged files it sometimes works and costs nothing.
In Word, open the app first, then choose File, then Open, select the troublesome document, and click the small arrow next to the Open button to pick "Open and Repair." Excel offers the same option from its Open dialog. This invokes the application's own attempt to reconstruct the file, and for minor damage it can succeed.
Also check for autosaved versions. If the file was open when things went wrong, Word and Excel may have an AutoRecover copy — look for a recovery pane when you reopen the app, or check the AutoRecovery folder. And if the document lives in OneDrive or SharePoint, version history may hold an earlier, intact copy you can restore. These cost nothing and should be your first move.
When the file is too badly damaged for the built-in repair — it won't open at all, or "Open and Repair" fails — that's when dedicated repair earns its place.
What DataRecover Pro repair does
Because a .docx or .xlsx is a zip container, repairing one is fundamentally about rebuilding that zip structure — which is exactly what DataRecover Pro's repair engine does. It identifies the file as an OOXML container, then reconstructs the damaged zip framing: rebuilding the central directory that indexes the parts, repairing the local structures around each part, and salvaging the readable XML content so an Office application can open the document and find its pieces again.
This uses the same three-tier model described in the complete file-repair guide, and it's the same machinery that fixes a damaged ZIP archive — because under the hood, an Office file is one. Clean repair fixes minor structural damage and returns the whole document. Structural repair rebuilds the container around intact content parts. When the file is only partly recoverable — some parts overwritten or lost to bad sectors — partial repair salvages what's readable, which often means recovering most of the text or most of the spreadsheet even if some embedded content or later sections are gone.
Repair runs in a sandboxed worker process with no network access and no ability to write elsewhere on your Mac, so parsing a malformed Office file — which, as a zip, can be crafted to exploit careless parsers — can't compromise the system.
Recover the file first if it was deleted
If the Word or Excel file isn't just corrupt but was deleted or lost, you need to recover it before there's anything to repair. Run a deep scan of the drive; DataRecover Pro carves files by signature even after a format or volume corruption, and corrupted results are routed through the repair engine automatically, so you receive a repaired document rather than a broken archive. If the file is already sitting on your Mac but won't open, point DataRecover Pro at it directly.
Either way, preview before you save — DataRecover Pro shows a confidence score indicating a clean rebuild versus a partial salvage. And save the repaired file to a different drive than the source, so you don't overwrite other data you may still need to recover.
Need to repair an Office file right now? Download DataRecover Pro and scan for free with no account, or read the repair overview to see how the engine handles OOXML containers. If your broken files include photos too, the JPEG repair guide covers those.
How to avoid corrupting Office files
The habits that prevent Office corruption are simple. Let saves finish before closing the lid or quitting — don't force-quit Word or Excel mid-save. Keep documents on a healthy drive and watch for early signs of disk trouble. Don't edit important files directly on a flaky network share or an unreliable USB stick; work locally and copy when done. Turn on AutoRecover so the app keeps a fallback. And keep real backups — Time Machine plus an offsite or cloud copy — because the most reliable repair is having a second, intact copy already.
Lost a file? Get it back.
Scan and preview for free. See what's recoverable before you buy.
Coming soon