You can recover an overwritten file in Windows only if an older copy still exists somewhere: in Previous Versions or File History, in OneDrive's version history, in the program's own autosave or backup files, or as a deleted copy that has not yet been reused on the drive. Recovery software cannot rebuild data that has been written over in the same place, so start with the version and backup options below, and only scan the drive if you replaced the file by copying or the program saved by creating a new file.
The good news is that "overwritten" often means something less final than it sounds. How the file was replaced decides what is possible.
Overwritten, replaced or saved over: which one happened?
These three situations look the same from your desk, but they are different on the disk:
| What you did | What usually happens on disk | Can the old version come back? |
|---|---|---|
| Saved an edited document in Word, Excel or a similar app | Many apps write a new temporary file, then delete the old one and rename the new one | Sometimes, as a deleted file or from version history |
| Copied a file over another with "Replace the file in the destination" | The old file is deleted and the new one written, often to different space | Often, if you act quickly |
| A program edited the file in place, such as a log, database or some editors | New data written into the same clusters | Only from a backup or version history |
| The drive was wiped or the file securely deleted | Every byte replaced on purpose | Only from a backup |
The one thing no tool can do is read the old content of a cluster that now holds new content. On hard drives, SSDs, USB sticks and SD cards alike, once a block is rewritten the previous data is gone.
Step 1: Check Previous Versions
- In File Explorer, right-click the overwritten file and choose Properties.
- Open the Previous Versions tab.
- If versions are listed, select one from before the overwrite and click Open to check it.
- Use the arrow next to Restore and choose Restore to to save it under a different location, so you keep both copies.
This list only fills up if File History was backing up that folder or System Protection created restore points that included the drive. If you see "There are no previous versions available", read why there are no previous versions for the other places to look.
Step 2: Check OneDrive and cloud version history
If the file lives in a OneDrive folder, OneDrive keeps earlier versions of each file. Right-click the file in File Explorer, choose OneDrive → Version history (in Windows 11, it may be under Show more options), then restore or download an older version. You can also do this on the OneDrive website. Other sync services have similar version history features, so check whichever one holds the folder.
Step 3: Look for the program's own copies
Many programs keep backup or autosave copies that survive an accidental save:
- Word, Excel and PowerPoint: go to File → Info → Version History for files stored in OneDrive or SharePoint. For local files, check File → Info → Manage Document → Recover Unsaved Documents for autosaved copies.
- Word backup copies: if Always create backup copy was turned on in the Advanced options, look for a
.wbkfile next to the document. - Photo editors: many keep the original alongside an edit, or let you revert to the original in their library.
- Code and text editors: some keep local history or
.bakfiles.
Our guide to recovering a deleted Word document covers the Office locations in more detail.
Step 4: Check the copies you forgot about
Email attachments you sent, files shared in a chat app, a copy on a USB stick or a laptop, a version on a colleague's PC, or a photo still on the phone that took it. For many people, the fastest route to the old version is the last place they sent it.
Step 5: Scan for deleted copies of the old file
If the old version was replaced by a copy operation, or the program saved by writing a new file and deleting the old one, the earlier version may still be on the drive as a deleted file. A recovery scan can find it. With Drive Restorer:
- Stop saving to the drive, especially to the same folder. Each new save makes overwriting more likely.
- Scan the drive or the folder the file was in with a quick scan.
- Search for the file name. Also look for temporary names, such as Word's
~WRL0001.tmpfiles, which can be earlier copies of a document. - Sort by date to spot a deleted copy from before the overwrite.
- Preview it. The preview shows whether the content is the old version or the new one, and the recovery chance rating shows whether it has been partly overwritten.
- Restore it to a different drive so it cannot overwrite anything else still waiting to be found.
Be realistic. If a scan finds only the current version, or the older copy is rated as overwritten, the old content is gone and no tool can restore it. On an SSD with TRIM, deleted copies are often cleared within minutes.
How to stop it happening again
- Turn on File History with an external drive, so Previous Versions has something to show. It backs up every hour by default.
- Use OneDrive folder backup for Documents and Desktop to get version history on every file.
- Use Save As with a new name before big edits, for example
Report v2.docx. - Read the replace prompt. When copying, choose Skip or Let me decide instead of replacing everything.
- Keep originals read-only. Right-click an important master file, choose Properties and tick Read-only, so programs must save a new copy.
Most people only discover version history after they need it. A few minutes of setup turns an overwrite from a lost afternoon into a two-click restore. If you have just lost something else, our checklist on what to do after accidentally deleting files helps you avoid making it worse.
Frequently asked questions
Can recovery software recover an overwritten file?
Generally no. When new data is written into the same space, the old data is gone. Recovery software can only find copies that still exist elsewhere on the drive.
I replaced a file when copying. Is the old one gone?
Usually it was deleted and replaced, so the old copy may still be on the drive as a deleted file. Check Previous Versions first, then a recovery scan may find it.
How do I stop this happening again?
Turn on File History or OneDrive folder backup, and use Save As with a new name for important edits.
