Updated 2026-11-16 · 5 min read
Can You Recover Overwritten Files on Windows and Mac?
Accidentally replaced a file with the same name or saved over an important document? Here are the real chances and step-by-step recovery methods.
Accidentally clicking 'Replace file in destination' or hitting Save over hours of work is a sinking feeling. Conventional wisdom says overwritten files are permanently destroyed, but in modern operating systems, that is often only partially true.
When an application saves a modified document, it frequently writes the new version to brand-new disk clusters before deleting the old version's reference. The previous version often still lingers intact in unallocated space or Volume Shadow Copies.
How Modern Operating Systems Save Files
When you hit Save in Word, Photoshop, or an IDE, the software creates a temporary file (`~$document.tmp`), streams the data to new sectors, and then atomically renames it over the original file.
This means the older version's clusters were freed, not zero-filled. They can be rescued as long as no heavy new writes occur.
Checking Volume Shadow Copies and Snapshots
On Windows, right-click the file's parent folder and select 'Restore previous versions'. On macOS, open Time Machine to view local hourly APFS snapshots.
If system protection was disabled, raw disk sector scanning is your best remaining option.
What DiskMend Can and Cannot Do
DiskMend reads the drive without relying on the current folder entries. When a save or a “Replace” deleted the previous file, its record often survives and DiskMend lists it with its name, date and size. Content search also finds documents, photos and videos in free space by their signatures, but these come back without a name or date, and DiskMend does not search for document revisions or compare versions. If the old data was written over in place, no software can bring it back.
Step by step
- 1
Do not close your editor yet
Some editors (Word, Excel, Photoshop) retain an in-memory undo buffer; try pressing Ctrl+Z / Cmd+Z.
- 2
Check Previous Versions
Right-click the folder in Windows > Restore previous versions.
- 3
Launch DiskMend
Scan the drive the file was on; DiskMend lists deleted files and files found by content in free space.
- 4
Compare dates and sizes
Sort by date and size; deleted files keep their original date, while files found by content have none.
- 5
Save to a separate disk
Export the older revision to another drive to avoid overwriting existing data.
| Scenario | Underlying Mechanism | Recovery Feasibility | Best Tool |
|---|---|---|---|
| Saved over in Office app | New clusters allocated, old freed | Possible (deleted copy in free space) | DiskMend Carving |
| Replaced file in Explorer | File deleted, new one created | Possible (Previous Versions / deleted file) | Previous Versions / DiskMend |
| Zero-fill secure overwrite | Every sector overwritten with 0s | 0% (Impossible) | None (Data erased) |
Frequently asked questions
Is it possible to recover a file that was replaced with another?+
Yes. When you replace a file, Windows deletes the original file entry and creates a new one. The old file data remains in free space until overwritten by new files.
How does DiskMend find overwritten files?+
DiskMend scans raw sectors for valid file headers (such as DOCX, PDF, or JPEG) that are no longer linked to active directory entries.
What should I do right after overwriting an important file?+
Stop using the computer for downloading or streaming. The less data written to disk, the higher the chance of rescuing the older version.