
Few moments in computing inspire as much dread as realizing you just saved over the wrong version of a file. The original — hours of work, precious photos, an important document — seemingly replaced in one keystroke. Take a breath: on a Mac, an overwritten file is very often recoverable. What you do in the next few minutes matters more than anything else.
Work through these recovery methods in order, from the quickest to the last resort — then set up a safety net so it never happens again.
1. Stop using the drive — immediately
This is the single most important step, so do it first: stop writing anything to the disk. When a file is overwritten, macOS marks the old data blocks as free space — the original data is still physically there until something new writes over it. Every download, new file, or app you open risks destroying it. So stop editing, stop saving, and finish reading this guide on another device if you can.
2. Restore from Time Machine
If Time Machine backups were enabled, recovery takes a minute. Open the file’s folder in Finder, then enter Time Machine (menu bar icon → Browse Time Machine Backups, or via System Settings). Scroll the timeline back to before the overwrite, select the file, and click Restore. If a file with the same name exists, choose “Keep Both” — you can compare versions afterward. Apple Support documents the full Time Machine restore process.
3. Use the app’s built-in version history
Edited in Pages, Numbers, Keynote, or Word? These apps keep their own version history, independent of Time Machine. With the document open, choose File > Revert To > Browse All Versions: a Time-Machine-style view lets you scroll through saved versions and restore the one from before the overwrite. MacRumors has covered this handy but little-known macOS feature.
4. Try recovery software (no backup)
No backup and no version history? Data recovery tools like Disk Drill or EaseUS Data Recovery scan the drive for orphaned data blocks. Critical: install the recovery software on a different drive (or run it from an external disk), and save recovered files somewhere other than the scanned drive — installing onto the same disk can overwrite exactly what you’re trying to rescue. Scans take a while; let them finish.
5. Make sure this never happens again
Once your file is back, set up the safety net: connect an external drive, open System Settings → General → Time Machine, and switch backups on. Future overwrites become a one-minute restore instead of a crisis. And if you ever need to wipe data for good rather than recover it, our guide to permanently deleting text messages on iPhone and iCloud covers the other direction.
If it still doesn’t work
If there’s no backup, no version history, and recovery software finds nothing, the old data blocks were likely overwritten — at that point only a professional data-recovery lab has any chance, and it’s expensive. 9to5Mac covers backup best practices regularly, precisely because this moment is so painful. Take the lesson: enable Time Machine today.
FAQ
Can I recover an overwritten file without Time Machine?
Sometimes. First check the app’s version history (File > Revert To > Browse All Versions) — it works without any backup. Failing that, recovery software can find orphaned data if you stopped writing to the drive quickly enough.
Does “Keep Both” really keep my new version safe?
Yes. When Time Machine restores a file that already exists, “Keep Both” keeps your current version and saves the restored one under a modified name. Nothing is overwritten — you compare the two and keep the winner.
Conclusion
An overwritten file on a Mac is recoverable more often than not — but only if you stop writing to the drive immediately. Time Machine or version history will usually save the day; recovery software is the last resort. And the real fix takes five minutes: plug in a drive and turn on Time Machine. For keeping your other Apple data safe and synced, see our guide to setting up message sync between iPhone and Mac.
