How to Recover Overwritten Files

Profile Jordan J. Profile Yevgeniy T.
 and 

Last update:

24551

Did you replace a file with one of the same name, save changes over an older document version, or delete a file before its storage space was reused? These situations may look similar, but they are not technically identical.

In Windows 11, replaced files do not always overwrite the same physical sectors. Some applications create a new file and replace the old entry, so the previous data may still exist elsewhere. If the actual sectors were overwritten, however, recovery software cannot restore those bytes.

We’ll explain how to restore an overwritten file with Disk Drill, Previous Versions, OneDrive Version History, Office recovery options, and backups, plus what to do before you attempt recovery.

Can You Recover an Overwritten File?

Yes, an overwritten file may sometimes be recoverable, but only if some form of the old data still exists. The main complication is that “overwritten” can describe several different situations. A file that Windows shows as replaced is not necessarily physically overwritten on the drive.

Your chances are much better if Windows, your application, OneDrive, or a backup contains an older version. Recovery software can also help if the previous file data still exists on the storage device. However, once new data physically replaces the sectors or blocks that held the old data, ordinary recovery software cannot restore those bytes.

Here’s how the most common scenarios compare:

What HappenedWhat May Have Happened to the Old DataBest Recovery OptionRecovery Chances
You edited a document and saved the changesThe application may have updated the file or created a replacementApplication Version History, OneDrive, File HistoryHigh if a previous version exists
You copied a new file over one with the same nameThe old file entry may have been replaced without use of exactly the same sectorsPrevious Versions, backup, recovery softwareMedium to High if old data still exists
A deleted file’s clusters were later reusedSome or all of the original data may have been physically overwrittenRecovery software for surviving dataLow to Medium
Only part of the old file was physically overwrittenSome data may remain, but the file can be incomplete or corruptedRecovery softwareLow to Medium
All sectors that held the old file were physically overwrittenNew data has replaced the previous bytesBackup or version historyEffectively impossible with ordinary recovery software
The file was stored in OneDriveOlder cloud versions may exist independently of the local copyOneDrive Version HistoryHigh if a retained version exists
A Word, Excel, or PowerPoint file has an earlier versionOffice or OneDrive may have retained a previous copyOffice Version History or AutoRecoverHigh if a version exists
A file was replaced on an SSDThe result depends on how the application replaced it and what happened to the old blocksVersion history or backup firstVariable

What Does “Overwritten” Actually Mean?

What “overwritten” means can vary depending on what happened to the original file, and that directly affects whether recovery is possible:

  • A file-level replacement occurs when you save a new version or copy a file over another file with the same name. Windows may show only the new file afterward, but that does not prove that its contents occupy the exact sectors that held the old file. An application can instead create a new file, write the new data to another location, and remove the previous file entry.
  • A physical overwrite is different. It occurs when new data is actually written to sectors or blocks that contained the old file. Once those bytes have been replaced, normal data recovery software cannot retrieve their previous contents.
  • A partial overwrite means that only some of the old file’s clusters were reused. Recovery software may retrieve the portions that remain, but the resulting file can be incomplete or corrupted. The outcome depends on the file format and which parts survived.
  • A deleted file that was later overwritten is a deleted-file recovery case followed by reuse of its freed storage. Recovery may still be possible if some of the original data remains, but any portions physically overwritten by new data cannot be recovered. *
* A new file with the same name does not automatically occupy the old file’s exact physical location.

How Does TRIM Affect Overwritten File Recovery?

TRIM, also called a delete notification or unmap, tells the storage device that specified clusters are no longer needed. Windows enables NTFS delete notifications by default unless an administrator disables them.

TRIM does not mean that Windows immediately writes zeros over the corresponding NAND cells. Instead, the SSD controller can reclaim those blocks later, after which their previous contents may no longer be accessible to recovery software.

This matters when the old file’s blocks become free. For example, an application may create a replacement file elsewhere and then delete the previous file. It does not mean that every normal file edit sends a TRIM command for the file’s previous contents.

How to Recover Overwritten Files on Windows 11

There is no single method that works for every overwritten file because the right approach depends on what happened to the previous copy. If its data still exists on the drive, recovery software may find it. If Windows, OneDrive, Microsoft Office, or a backup saved an earlier version, you can restore that copy instead.

We’ll cover five options for overwritten file recovery:

Method 1: Recover Overwritten Files Using Data Recovery Software (Disk Drill)

If an older copy of the file or some of its data still exists on the drive, data recovery software may be able to retrieve it. However, software cannot reconstruct bytes that new data has physically overwritten. Recoverability depends on what remains intact, including file-system metadata, the file structure and format, and the actual file contents.

For this method, we’ll use Disk Drill, one of the best data recovery tools we’ve tested. It performed well across different data loss scenarios in our tests and offers several features that are particularly useful when you need to search for an older copy of a replaced file. Here’s why we chose it:

  • 🗃️ File-system recovery. Disk Drill can identify deleted file-system records if an older copy still exists as recoverable deleted data. When the associated metadata survives, the recovered file may retain its original name and path.
  • 📑 Signature recovery. If the original metadata is gone, Disk Drill can search for recognizable file signatures and may find surviving file contents. These results typically appear under Reconstructed without the original filename or folder path. Signature recovery cannot recreate portions that were physically overwritten.
  • 🖼️ File preview. You can preview many files before recovery, which helps you check whether a found copy appears intact and contains the data you need.
  • 💽 Disk images. If the affected drive is unstable or contains particularly important data, Disk Drill can create a disk image first. The image preserves the source’s currently readable state so you can perform later recovery attempts without repeatedly scanning the original device. It cannot restore data that was already overwritten or discarded before you created the image.
  • 🔒 Read-only scanning. Disk Drill uses non-destructive scanning methods that do not intentionally write recovered data or file-system changes to the source. Keep in mind that Windows and other applications may still write to a mounted drive.

Before you start, connect another physical storage device for the recovered files. If practical, install Disk Drill on an unaffected physical drive as well. This reduces additional writes to the drive that contains the data you want to recover.

  1. Download Disk Drill, install it on an unaffected physical drive where practical, and launch the application.
  2. Select the physical disk or partition where the older file was stored.
  3. (Optional) If the drive is unstable or has hardware problems, open Byte-to-byte backup section and create a disk image. Save the image to another physical drive, then scan the image instead of repeatedly reading the original device.
  4. For a healthy drive, click Search for lost data.Search for lost data button in Disk Drill
  5. Use Universal Scan if Disk Drill prompts to select the recovery mode.Choosing Universal Scan in Disk Drill
  6. Once Disk Drill finds files, click Review found items.Review found items button in Disk Drill
  7. Search for the original filename, the relevant file extension, and similarly named older copies. Check Deleted or Lost results for files whose original file-system metadata still survives. Also check Reconstructed for files Disk Drill identified by their signatures without the original filename or path.
  8. Preview likely candidates where possible to see whether they contain the data you need. Select the required file and click Recover.Previewing and recovering a file in Disk Drill
  9. Choose another physical drive as the recovery destination. Do not save the recovered file back to the affected drive, as this could overwrite other data that remains recoverable.Choosing a recovery destination in Disk Drill
The current Disk Drill 6 release supports Windows 10 and Windows 11, and its free Windows version allows up to 100 MB of data recovery. This can be useful for a small document or to test whether an older recoverable copy still exists before you purchase the full version.

sd
Pandora Recovery is dedicated to helping you retrieve as much of your data as possible. As part of this effort, we extensively review the various data recovery solutions available to determine their efficacy. You can explore our wide range of Windows and macOS data recovery software reviews, and compare Windows and macOS recovery solutions to identify their strengths and weaknesses. For specific data recovery situations, we also have a software picker that may be useful in helping you find a tool for your needs.

Method 2: Restore an Older File Using Previous Versions

The Previous Versions feature can restore an older copy only if Windows already has one available. On Windows 11, File History is the most relevant source of previous versions for personal files. If File History protected the file before it was overwritten, check for an older copy from before the replacement.

  1. Open File Explorer and go to the folder that contained the overwritten file.
  2. Right-click the file or folder, select Properties, and open the Previous Versions tab.Properties option in the File Explorer context menu
  3. Look for a version dated before the file was overwritten.
  4. Select it and click Open first to confirm that it contains the file you need.
  5. If available, choose Restore to… rather than Restore so you don’t immediately replace the current file.Restore to option in the Previous Versions tab
  6. Save or copy the older file to another location.
If no previous versions appear, Windows does not have an earlier copy available through this feature. Previous Versions cannot create or recover a version that File History or another Windows backup source never saved.

Method 3: Recover an Overwritten File From OneDrive Version History

If the overwritten file was stored in OneDrive, Version History may contain an older copy that exists independently of the current local file. This makes it one of the first options worth checking before you attempt data recovery.

  1. Open OneDrive on the web and sign in to your Microsoft account.
  2. Locate the overwritten file.
  3. Right-click the file and select Version history.Version history option in OneDrive on the web
  4. Review the available versions and find one from before the unwanted replacement or edit.
  5. Open or download the older version first if you want to confirm its contents.
  6. Select Restore when you find the version you need.Restoring a file from Version history in OneDrive

OneDrive will make the selected version current, while the version you replaced remains in Version History. If no older versions appear, OneDrive does not have the copy you need, so you will need to try another recovery method.

Method 4: Recover an Earlier Word, Excel, or PowerPoint Version

Microsoft Office may provide another way to recover an earlier version of a Word, Excel, or PowerPoint file. The available options depend on where the file was stored and whether Office saved an earlier version.

For a file stored in OneDrive or SharePoint:

  1. Open the file in Word, Excel, or PowerPoint.
  2. Go to File > Info > Version History.Version History under File and Info in Word
  3. Review the available versions and select one from before the unwanted changes.
  4. Open it first to confirm that it contains the content you need.
  5. Restore the older version or save it as a separate copy.Restoring an earlier version in Word

For a local Office file, you can also check for available AutoRecover copies:

  1. Open the file and go to File > Info.
  2. Look for Manage Document, Manage Workbook, or Manage Presentation.Manage Document option in Word
  3. Check whether an earlier or unsaved version is available.
  4. Open the version and review its contents.
  5. Use Save As to preserve it as a separate file.

Version History is most useful for files stored in OneDrive or SharePoint. AutoRecover can help in some cases, but it should not be treated as a complete version history or backup.

Method 5: Recover Files Using Backup and Restore

It’s worth checking to see if Backup and Restore is active and contains a working version of the file you wish to restore.

Follow these steps to restore a file using Backup and Restore:

  1. Open Start. Search for and open “Control Panel”.
  2. Click Backup and Restore (Windows 7). You may need to switch your view mode to Small icons or Large icons if you do not see it.
  3. Click Restore my files.Restore my files in Backup and Restore
  4. Click Browse for files and select the files you wish to recover.
  5. Click Next.Browse for files in Backup and Restore
  6. Choose whether you want to restore the files to their original location or a new one. Then, click Restore.Choosing a restore location in Backup and Restore

How to Prevent Files From Being Overwritten

You cannot prevent every accidental replacement or unwanted edit, but you can keep older copies available so one mistake does not permanently remove the version you need.

Option 1: Enable File History for Important Local Files

File History periodically saves copies of files from supported Windows libraries to an external drive or network location. You can then restore an earlier version if you accidentally replace or modify a file.

To enable File History in Windows 11:

  1. Connect an external drive to your computer.
  2. Open Control Panel and select System and Security > File History.
  3. Click Select drive and choose the drive you want to use for File History.Selecting a drive for File History
  4. Click Turn on.Turning on File History
  5. Check which folders File History will protect. If an important folder is not included, add it to a supported library or make sure its contents are stored in a protected location.
  6. Click Advanced settings if you want to change how often File History saves copies and how long it keeps them.Advanced settings in File History

After setup, keep the backup drive connected regularly so File History can save updated versions of your files.

Option 2: Use Application Versioning and Save Copies Before Major Changes

For Word, Excel, and PowerPoint files stored in OneDrive or SharePoint, AutoSave and Version History provide an easy way to return to an earlier document state. For local files, you need to create separate copies yourself, so this method requires more discipline.

For Microsoft 365 cloud files:

  1. Save the file to OneDrive or SharePoint.
  2. Turn on AutoSave.AutoSave turned on in Word

Before major changes to a local file, use Save As or Save a Copy and give the copy a meaningful name, such as Project_v1 or Project_2026-09-20.

Option 3: Keep an Independent Backup

An independent backup provides protection beyond individual applications or cloud version history. It requires extra storage and regular updates, but it gives you another copy if the original file gets replaced, deleted, or damaged.

To create a basic backup:

  1. Connect an external HDD or SSD, or access your NAS.
  2. Create a folder for your backups.
  3. Copy your important files and folders to it.
  4. Update the backup regularly and before major changes.
  5. Keep the backup on a different physical device from the original files.

For files that change frequently, backup software can automate the process and reduce the chance that your backup becomes outdated.

Frequently Asked Questions

What happens when I overwrite an existing file with the same name?

A file replacement with the same name doesn’t always mean the old data gets physically overwritten. Depending on Windows and the application:

  • The application may update the existing file directly.
  • It may create a new or temporary file and delete the old file afterward.
  • If the old sectors remain untouched, recovery software may find the previous copy.
  • If new data reuses those sectors, the overwritten portions cannot be recovered.

For an exact older copy, backups or version history offer the most reliable way to restore it.

Recovery may be possible if the old data has not been physically overwritten. Connect the external hard drive to a Windows 11 computer, avoid unnecessary writes, and scan it with data recovery software. Save any recovered files to another physical device. If new data has overwritten the original sectors, those portions cannot be recovered.

When new data physically overwrites the storage locations that held an old file, the original bytes are replaced, so recovery software has nothing left to read. Partial overwrites can leave some portions intact, but the recovered file may be incomplete or corrupt. SSDs add another complication: TRIM, garbage collection, and the SSD controller’s internal data management can further reduce access to deleted data.

To recover an overwritten Word or Excel file, try these options in order:

  1. Open the file.
  2. Go to File > Info > Version History if the file is stored in OneDrive or SharePoint.
  3. Check Manage Document in Word or Manage Workbook in Excel for available AutoRecover copies.
  4. Check OneDrive Version History separately if you use OneDrive.
  5. Check File History / Previous Versions in Windows.
  6. Restore the file from another backup, if available.
  7. If no previous version or backup exists, scan the local storage with data recovery software for an older deleted copy.

Sometimes. If new data physically replaced the flash cells that held the old file, those bytes cannot be recovered. If the old data still exists in blocks that the SSD has marked as no longer needed, recovery may still be difficult because of TRIM and the SSD controller’s garbage collection. Check version history and backups first, and avoid unnecessary SSD activity if you plan to attempt recovery.

Conclusion

An overwritten file is not necessarily gone for good. A file-level replacement does not always overwrite the same physical sectors, so an older copy may still exist on the drive or in Version History, File History, Office recovery data, or a backup. However, once new data physically replaces the original bytes, recovery software cannot bring those overwritten portions back.

For that reason, check existing versions and backups first. If none are available, stop unnecessary writes to the affected drive and use data recovery software to search for an older copy that may still exist. Going forward, File History, cloud versioning, and an independent backup can give you a much easier way to recover from the same mistake.

Help Us Improve This Article
Was the provided information useful? Your vote is important to use!
16722
Jordan Jamieson-Mane
Author
  • 48 publishings
  • Auckland, New Zealand
  • LinkedIn

Jordan Jamieson-Mane is a content writer with a focus on technology-related content. He has spent much of his life studying and working with all types of technology. During his time as a writer, he has written countless articles in the field of data recovery, breaking down complex topics into articles that are easy to understand.

When he's not writing articles on data recovery, Jordan enjoys traveling the world, reading books, and building websites.

Jordan’s recent reviews
Jordan’s recent publishings
Yevgeniy Tolkunov
Yevgeniy Tolkunov
Approver

Yevgeniy Tolkunov is Hardware Engineer at ACE Data Recovery. Yevgeniy has a Master's Degree in Physics, Information Technology; 15+ years of experience.