Corrupted file repair on Mac: the complete guide
There's a specific kind of disappointment that comes after you think you've won. You ran a recovery tool, it found your file, you saved it — and then Preview shows a broken-image icon, QuickTime throws an error, or Word announces the document is damaged. The file is technically "back." It just doesn't work.
That gap has a cause, and it has a fix. The cause is that finding where a file lived on a disk and reconstructing a file that actually opens are two different jobs, and most recovery tools only do the first. The fix is repair: rebuilding the internal structure of a file so applications can read it again. This guide explains why files corrupt, what repair can and can't do, and exactly how to repair the common formats — photos, RAW images, MP4 and MOV video, JPEGs, PDFs, and Word and Excel documents — on macOS.
Why files corrupt in the first place
A file is corrupt when its bytes no longer form a valid, readable structure for its format. That can happen for a handful of concrete reasons, and knowing which one you're dealing with shapes how recoverable the file is.
Overwriting is the most common. When you delete a file, the operating system marks its space as free but usually leaves the data in place until something writes over it. If new data lands on part of that space before you recover, the file comes back with a chunk replaced by something unrelated — a hole punched straight through it. This is also why the cardinal rule of recovery is to stop using the affected drive immediately.
Bad sectors are a hardware problem. Areas of a disk physically degrade over time, and a file stored across a failing region can lose blocks entirely. The drive may return zeros or read errors where your data used to be. SSDs have their own version of this as cells wear out.
Interrupted writes corrupt files at the moment of creation. A camera writing a video when the battery dies, an app saving a document when the Mac crashes, a card pulled from a reader before the write finishes — the file never got its closing structure written, so it's incomplete by birth. The data that made it to disk is fine; the file just was never finished.
Fragmentation makes recovery harder rather than corrupting files outright. A large file is often split across non-contiguous parts of a disk. When the filesystem's own record of where those pieces live is damaged — after a format or volume corruption — a recovery tool has to guess how to reassemble them, and a wrong guess produces scrambled output.
Recovery finds bytes; integrity makes them usable
This is the distinction that explains nearly every "why won't my recovered file open" question. We cover it in depth in why recovered files won't open, but the short version matters here.
Most recovery tools answer one question: where on this disk does this file's data live? When the filesystem is intact and the file is whole, that's the entire job — copy those bytes out and you're done. But when data has been partially overwritten, hit bad sectors, or been carved from raw disk blocks with no filesystem to guide the reassembly, the recovered bytes can be incomplete, out of order, or wrapped in a broken structure.
A JPEG missing its header. An MP4 whose frame index is gone. A .docx whose zip directory is corrupt. In each case the file is mostly present, but the structural scaffolding that tells an application how to read it is broken. A recovery-only tool — Disk Drill and most of its peers — hands you those bytes and calls the job complete. Whether the file opens is left to chance. That's the gap repair fills, and it's the core difference between DataRecover Pro and recovery-only software.
The three-tier repair model
Repair isn't a single operation — the right approach depends on how much damage a file has taken. DataRecover Pro works in three tiers, escalating only as far as a given file requires.
Clean repair handles minor structural damage with no data loss. The file's actual content is intact, but something in its framing is wrong — a header field, a small index inconsistency, a flag that makes an application refuse to open it. Clean repair corrects the structure and you get the original file back, whole.
Structural repair is the workhorse. When a file's media stream — the actual photo, video, or audio data — survives intact but the container around it is damaged or missing, structural repair rebuilds that container from scratch around the good data. This is what brings back a video whose index was lost, or a RAW photo whose directory was overwritten while the sensor data underneath was fine.
Partial repair is the last resort, and an honest one. When a file is only partly recoverable — the back half was overwritten, a stretch hit bad sectors — there's no way to conjure the missing data back. Partial repair salvages the readable portion and wraps it in a valid structure, so instead of a file that won't open at all, you get one that opens and shows what survived: a photo that's complete down to a certain point, a video that plays the footage that made it to disk. A partial result beats a broken one. We'll come back to the honest limits of this below.
What repair can rebuild
Repair is format-specific work. It identifies what kind of file the bytes are supposed to be, then reconstructs the structures that format depends on. DataRecover Pro repairs the formats people most often lose and most often find broken:
Photos, including RAW. Camera RAW files (Canon CR2 and CR3, Nikon NEF, Sony ARW, Fujifilm RAF, Panasonic RW2, Olympus ORF, and others) are built on a TIFF-like container with index structures called IFDs that point to the thumbnail, the metadata, and the full-resolution sensor data. Repair rebuilds those indexes and the EXIF block, and can even relabel a generic recovered file with the correct camera-specific extension by reading its EXIF "Make" tag. The full walkthrough is in repair corrupted RAW photos on Mac.
JPEGs. A JPEG can lose its start-of-image marker, carry a garbled header, or have damaged scan data that produces the classic half-gray image. Repair rebuilds the JPEG's structure and salvages the decodable portion. Step-by-step instructions are in repair corrupted JPEG photos on Mac.
MP4 and MOV video. These containers store encoded video and audio streams plus an index — the moov atom — that maps where each frame lives. Lose the index and the footage is still there but won't play. Repair reconstructs the moov atom and frame tables, re-stitches the streams, and rewrites a valid container. See repair a corrupted MP4 or MOV video on Mac.
PDFs. PDF files rely on a cross-reference table that indexes every object in the document. When that table is damaged, readers can't navigate the file. Repair rebuilds the cross-reference structure around the surviving content so the document opens again.
Word and Excel documents. A modern .docx or .xlsx is not a single blob — it's a ZIP archive containing XML parts (OOXML). When the zip structure is damaged, the whole document is unreadable even if the text and cells inside are intact. Repair rebuilds the zip container and its parts. Full guide: repair corrupted Word and Excel files on Mac.
ZIP archives. Because Office files are zips, the same machinery repairs ordinary damaged ZIP archives — rebuilding the central directory so the archive's contents can be extracted again.
Repair runs sandboxed, so a bad file can't hurt your Mac
There's a security wrinkle to repairing files that's easy to overlook. To fix a corrupted file, software has to parse it — and a deliberately or accidentally malformed file is exactly the kind of input that can crash or exploit a careless parser. You're feeding untrusted, broken data into code that's trying to make sense of it.
DataRecover Pro runs every repair in a sandboxed worker process. That process has no network access and no ability to write anywhere else on your filesystem. Even a file engineered to be malicious can't reach out, can't modify your other files, and can't compromise the system — the worst it can do is fail to repair. This is a deliberate isolation boundary, not a side effect, and it's why parsing the most damaged file on your drive is safe.
Repair happens during recovery — no second tool, no second purchase
On a lot of platforms, repair is a separate product you buy after recovery disappoints you. DataRecover Pro folds it into the recovery flow. When you recover files, anything that comes back corrupted is routed through the repair engine automatically, on the way out. You receive a repaired file rather than broken bytes — there's no separate repair tool to learn and no second purchase.
The workflow is straightforward. Scan the drive (a quick scan reads the filesystem; a deep scan carves files from raw disk blocks by their signatures, recognizing 47-plus formats). Preview what was found — DataRecover Pro shows thumbnails, macOS Quick Look, and a per-file confidence score telling you what's pristine versus partially recoverable. Then recover what you need; corrupted files are repaired as part of that step, and you can confirm the repaired result before committing.
Ready to try it on your own files? Download DataRecover Pro and scan — scanning and preview are free, with no account, so you can confirm your files are recoverable before paying for anything.
How to repair a file, start to finish
If the file was deleted or lost, recover it first. Run a deep scan of the drive or card; it carves files by signature even after a format or a corrupted volume, and routes corrupted results through repair automatically. If the file is already on your Mac but won't open — a document that was being edited during a crash, say — you can point DataRecover Pro at it directly.
Preview before you save. The confidence score and Quick Look tell you whether you're looking at a clean rebuild, a structural reconstruction, or a partial salvage. This is your chance to decide whether a partial result is worth keeping for a given file.
Save the repaired output to a different drive than the source. This rule is non-negotiable for any recovery or repair work: writing recovered files back onto the disk you pulled them from is the single most reliable way to overwrite the very data you're still trying to rescue. Use an external drive or a separate volume.
When repair can't fully fix a file
It would be dishonest to suggest repair is magic. It rebuilds structure and re-stitches data — it cannot recreate data that no longer exists on the disk. If the second half of a video was overwritten before you recovered it, those bytes are gone, and no tool can bring them back. Partial repair is sometimes the ceiling, not a fallback.
What partial repair guarantees is that you get the most out of what survived. Instead of a file that simply won't open, you get one that opens and presents the recoverable portion — the frames that made it to disk, the pages that weren't overwritten, the readable part of the spreadsheet. For irreplaceable footage or a one-of-a-kind photo, the salvageable fraction is often exactly the part you cared about.
The factors that determine the ceiling are the ones from the start of this guide: how much of the file was overwritten, whether bad sectors ate parts of it, and how badly fragmented it was. The free preview is the honest answer to "how much of this can I get back" — it shows you the result before you pay, so there are no surprises.
Pricing and what's included
Scanning and preview are free and require no account — you can verify your specific files are recoverable and repairable before spending anything. Unlocking recovery and repair costs $59 per year or $89 for a lifetime license, covering up to 3 devices, with a 30-day guarantee. Repair is included; it is not a separate add-on. Everything runs 100% locally on your Mac — no files are uploaded anywhere. Full details are on the pricing page, and the repair overview explains the engine in more depth.
DataRecover Pro runs on macOS 12 and later, on both Apple Silicon and Intel Macs, and is signed and notarized by Apple.
Short FAQ
Is repair a separate purchase? No. Repair runs automatically during recovery and is included with a license — there's no second tool or second fee.
Can repair fix any corrupted file? No. It can rebuild structure and salvage surviving data, but it cannot recreate data that was overwritten or lost to bad sectors. Where a file is only partly intact, you get a partial result rather than a broken one.
Will I know whether a file repaired cleanly before I pay? Yes. The free preview shows thumbnails, Quick Look, and a confidence score indicating a clean rebuild versus a partial salvage, so you can confirm before unlocking.
Is it safe to repair a badly corrupted or suspicious file? Yes. Repair runs in a sandboxed worker process with no network and no filesystem-write access, so even a malformed file can't affect the rest of your Mac.
Do I have to recover a file before repairing it? Only if it's lost or deleted. If a file is already on your Mac but won't open, DataRecover Pro can attempt to repair it directly. Either way, save the result to a different drive than the source.
Lost a file? Get it back.
Scan and preview for free. See what's recoverable before you buy.
Coming soon