How to Recover Overwritten Files – an easy step by step guide

How to recover replaced files on Windows and Mac?

recover overwritten files

How to recover overwritten files?

I have come across many cases where users, who have overwritten their files and folders by mistake, are asking – is there any method to recover file that was overwritten? In this article, I am going to show how to recover overwritten files on Windows and Mac in several ways which would help to recover files replaced accidentally.

Why Do Files Get Overwritten?

Files rarely overwrite themselves. More often than not, a file is replaced due to human error of some kind. Here are some of the most common scenarios that can lead to accidental overwriting:

  • Saving a new file with the same name: You go to save your latest document or photo, and without realizing, you select an existing file and hit “Save,” replacing the old one.
  • Clicking the wrong file: You intend to update a specific file but accidentally pick a different one, overwriting content you didn’t mean to lose.
  • Unintentional edits: Sometimes you open an important file, make a few experimental changes—maybe tweaking a graphic or editing a video—and save it, overwriting the original, only to regret it later.

No matter the reason, the sinking feeling is the same. Fortunately, there are ways to try and recover your overwritten files, whether you’re on Windows or Mac. Let’s explore what’s possible.

What Factors Affect Your Chances of Recovering an Overwritten File?

Whether you can recover a file that’s been overwritten depends on several moving pieces. It’s not entirely a matter of luck, but timing, tools, and tech definitely play big roles. Here’s what really matters:

  • How fast you act: The sooner you notice the mishap, the better. If you immediately stop using the affected drive, there’s a greater chance some of your old data hasn’t yet been completely erased.
  • Type of overwrite: Did you simply save a new version with the same name, or did a program perform a “secure” overwrite? Standard saves sometimes leave recoverable traces; secure erase methods usually do not.
  • Activity after the overwrite: Additional writing or saving on the same drive can wipe out recoverable data more quickly, so avoid copying or downloading new files to that location.
  • Type of storage device: Hard Disk Drives (HDDs) often retain leftover traces of data longer than Solid State Drives (SSDs), which tend to erase overwritten data almost instantly (yay, modern technology).
  • File system involved: Windows’ NTFS, Mac’s APFS or HFS+, and other file systems handle data and deleted files differently. Some make it easier to recover accidentally overwritten files.
  • Recovery tools used: Specialized data recovery software (think Recuva, EaseUS Data Recovery Wizard, or Disk Drill) can sometimes help—if you haven’t acted too late.

Taking all these factors into account helps you judge whether it’s worth digging for your lost file—or if it’s time to reach for that backup after all.

Can you recover file that was overwritten?

It is very much possible to recover file that was overwritten unless the file or data are permanently deleted for reuse of the storage space i.e. if the storage space is overwritten with new data.

When you delete a file, the same is not entirely removed from the hard drive. The file is permanently deleted only when a new file or data is stored in its space. If you don’t have backup copies of the files it is hard to recover permanently deleted files .

Can the File System Journal Help Recover Overwritten Files?

Both Windows and Mac use modern file systems—like NTFS and HFS+—that keep a behind-the-scenes diary called a journal. This journal tracks certain changes made to files and folders, especially during critical operations. But can this hidden log actually help when a file is overwritten?

In some situations, yes—though it’s a bit of a long shot. The file system journal is primarily there to help your computer recover from crashes or sudden power failures by quickly restoring the file system’s integrity. Sometimes, if an overwrite was very recent and you act fast (with the help of specialized forensic tools), fragments of the older version might still linger in this log before the system clears it out.

However, don’t expect to see an “undo overwrite” button in standard utilities like File Explorer or Finder. Unlike backup features or dedicated snapshot tools (such as Windows’ Previous Versions or Apple’s Time Machine), the journal isn’t designed to make accidental file replacements easy to undo for everyday users. Data recovery specialists may be able to dig deep using advanced software, but the chances of success decrease rapidly the more the drive is used after overwriting.

In short, while the file system journal isn’t a guaranteed rescue for overwritten files, it provides a glimmer of hope in some edge cases—especially if you move quickly and avoid writing new data to the disk.

Can the Recycle Bin or Trash Contain Previous Versions of Files?

This is a question I see come up often: if you’ve accidentally overwritten a file, is there any hope that the Recycle Bin on Windows or the Trash on Mac might still have the older version? Generally, if you simply replace an existing file by saving a new one with the same name in the same location, the original gets overwritten and doesn’t move to the Recycle Bin or Trash. In most cases, operating systems don’t treat overwrites the same way as deleting a file, so the overwritten version isn’t preserved in these folders.

However, there are some exceptions. If you moved the original file elsewhere or deleted it before overwriting, that previous version could still reside in the Recycle Bin or Trash—at least until those get emptied. It’s always worth a quick check, but don’t rely on these as your main safety net for recovering overwritten files.

Can you undo replacing a file using undo shortcuts on Windows or Mac?

A common question is whether you can simply hit Undo—like Ctrl+Z on Windows or Cmd+Z on Mac—to reverse a file replacement. Unfortunately, these shortcuts won’t help after you’ve replaced a file in File Explorer or Finder. Unlike other actions, file replacement does not get tracked in the “undo” history of your operating system.

If you’ve accidentally replaced a file, you’ll need to rely on backup and recovery tools already built into your computer, such as File History in Windows or Time Machine on Mac. If these features were enabled before the incident, you may still have a chance to restore the original file from a previous backup or version.

Leveraging Version History Within Applications

Another option you might have at your disposal is version history—many popular programs come with built-in version control. For example, Microsoft Office apps like Word and Excel routinely save previous iterations of your documents behind the scenes. That means if you realize you’ve overwritten something important, you may be able to browse the document’s history and roll back to an earlier version—all without leaving the application.

Similarly, Google Docs and some Adobe software provide access to your file’s revision history. If you were working inside one of these tools, check for a “Version History” or “Revert to Previous” menu. This feature can be a lifesaver, allowing you to restore an older copy without diving into system backups or recovery software. Give it a try before moving on to more complicated solutions.

Searching for Temporary Files

Can a lost file be rescued by digging through your temp folders? In some cases, yes—especially if the application you were working in automatically creates temporary backups or autosave versions.

Many programs, including Microsoft Office, Adobe products, and even some text editors, save temporary copies of your work as you go. If you’ve accidentally overwritten or lost your file, it’s worth navigating to your system’s temporary files folder. On Windows, this is often found in %Temp%, while Mac users might look in /private/var/folders.

Here’s how you can try recovering your data:

  • Open the temp directory for your system.
  • Look for files with similar names, extensions like .tmp, or timestamps matching when you were working.
  • Copy any promising candidates to another location and try opening them in the program you originally used.

While it’s not a guaranteed fix, temporary files have saved the day more than once—especially if you catch the mistake not long after it happens. If your luck holds, you might just retrieve that lost content in time.

How to recover overwritten files on Windows    

Follow the methods below to recover overwritten files or data on Windows, if they are still recoverable i.e if you have a backup of the overwritten files or if some previous versions of the files are available.

Once you detect that a file has been overwritten or replaced by mistake you should try the following methods of how to recover replaced files, as quickly as possible.

Method 1: How to recover an overwritten file using the ‘previous versions’ feature

There is a backup and recovery feature in Windows called – ‘previous versions’. Previous versions are either copies of files and folders created by Windows Backup or copies of files and folders automatically saved as part of a restore point. This feature can be used to recover overwritten, accidentally deleted, formatted, or damaged files and folders. This feature is the first thing you should try for recovering overwritten files on Windows (10/8/7).

Here are the steps to follow on how to restore overwritten files using the ‘previous version’ of the file on Windows:

Step 1. Open Windows Explorer and find the folder where the original file was stored;

Step 2. Right-click anywhere inside this folder and select ‘Properties’;

Step 3. Next, tap the ‘Previous Versions’ tab and you will get a list of all the available versions of the files that come from File History or restore points;

Step 4. Select the latest version of the overwritten file from the list;

Step 5. Click the ‘Restore’ button to recover the last saved version of the file;

Tip: On Windows, you might also have Shadow Copies enabled. To check for these, right-click the file or folder and see if you can revert to a previous version. Shadow Copies work in the background and can provide additional recovery options if File History or restore points are available. This extra avenue can sometimes surface versions you didn’t even realize were saved, so it’s always worth a look.

Method 2: How to restore overwritten files using the ‘Backup and Restore’ feature

Windows comes with a ‘Backup and Restore’ feature which can be used for overwritten file recovery. If Method 1 mentioned above doesn’t work for you to recover file that was overwritten, you can try this one. To do this,

Step 1. Go to ‘start’;

Step 2. In the search bar type ‘Backup’;

Step 3. Select the ‘Backup and Restore’ option from the search results;

(If you are using Windows 10, press the Win + S key to open the search box)

Step 4. Choose the option ‘Select another backup to restore files from’;

Step 5. In the new window, select the file or data to be recovered;

Method 3: How to recover overwritten files using System Restore

Restoring your system to the last system restore point by performing a System Restore, is also an efficient way to recover overwritten files. Here are the steps to follow on how to restore overwritten files:

Step 1. Click Start > Settings > Update & Security > Recovery, and click the ‘Restart now’ button under ‘Advanced start up’;

Step 2. Next, click System Restore in the ‘Advanced options’ window to restart your computer;

Step 3. Select the last system restore point and follow the instructions to perform a system restore of your computer to get back the overwritten file;

How to restore overwritten file Windows 10

While trying to restore overwritten file Windows 10 using the ‘Restore Previous versions’ feature as in method-1 above, an error may appear which says – ‘there are no previous versions available’.

This error occurs because in Windows 10 for overwritten file recovery, the ‘Restore Previous versions’ feature works only if you have configured the ‘File History’ to back up your files. The reason is – that the available versions of the overwritten files in Windows 10 come from ‘File History’ and not from restore points as happens in Windows 7 or 8. Therefore, in Windows 10 you are to configure ‘File History’ to overcome the error. To configure the ‘File History’ in Windows 10, you can follow the instructions in this guide.

 How to restore replaced files on a Mac

The only way to recover overwritten or replaced files is by restoring them from a backup. As mentioned earlier, if you don’t have backup copies of the files it is practically impossible to restore overwritten files or to recover permanently deleted files due to the reuse of the storage space.

Mac OS comes with a built-in free backup feature called ‘Time Machine’ which automatically backs up all of your files. To create backups with Time Machine, all you need is an external storage device. As the external drive will hold your backups, you should be able to recover overwritten files from it.

Follow the steps below on how to restore replaced files  on Mac using ‘Mac Time Machine’:

Step 1. Make sure that your Time Machine backup disk is connected and turned on;

Step 2. Go to Finder on Mac and locate the folder that once contained the file that you want to restore;

Step 3. Choose ‘Enter Time Machine’ from the Time Machine menu;

Step 4. Use the onscreen up and down arrows to find the file you want to restore;

Step 5. Select the file and press Space Bar to preview it and make sure it’s the one you want;

Step 6. Click Restore;

Step 7. The last backup of the overwritten file will be saved to the original location on your Mac;

How to save both the original and recovered file versions on a Mac

If you need to keep both the existing file and the restored version—so you don’t accidentally overwrite anything important—there’s a simple trick you can use with Time Machine. When restoring a file, just hold down the Option key as you click the Restore button. This will let you choose a different destination for the recovered file, ensuring you end up with both versions safely stored on your Mac.

You can name the restored file something distinct or save it in another folder for easy reference. This way, you won’t lose the currently saved version, and you’ll have the recovered copy handy for comparison or use later.

How to recover overwritten files using data recovery software

If the above solutions to recover file that was overwritten don’t work for you, you can resort to data recovery software for help.

EaseUS Data Recovery Wizard is a good software capable of recovering files mistakenly overwritten from Windows or Mac. Here are the steps to follow on how to get back replaced files using EaseUS Data Recovery Wizard:

Step 1. Download EaseUS Data Recovery Wizard (for PC or Mac) and launch the program;

Step 2.  Select the original file location and start scanning;

Step 3.  After the scanning is complete select the file you need to recover;

Step 4.  Click ‘Recover’. Choose a location to save the recovered data and then click ‘OK’. Do not save recovered files in their original locations;

Using File Carving Techniques to Recover Overwritten Files

If standard recovery methods fail, file carving techniques might offer a last glimmer of hope. File carving works by searching your drive for recognizable file patterns—even after the original file has been overwritten or its directory information is lost.

When you use advanced recovery tools (like EaseUS Data Recovery Wizard or similar), they scan your storage sector by sector, looking for file headers and footers—unique identifiers for types of files, such as photos, videos, or documents.

Here’s why this matters:

Partial recovery is possible: Even if the file’s original directory info is gone, undamaged fragments may remain, letting you recover portions of your file.
No reliance on file system structure: File carving bypasses the file system. It extracts whatever intact data it can find rather than depending on missing or outdated file tables.
Good for photos and media: Formats like JPEGs or MP4s often leave behind recoverable remnants, even when text documents or highly fragmented files may not.

Keep in mind, though, that file carving doesn’t always restore files perfectly—especially if the space has been extensively reused. But when all else fails, it’s worth a try for salvaging those bits and pieces you can’t afford to lose.

You may also like to read this related post: How to recover data from formatted hard drive

When to seek professional data recovery services?

If the overwritten files are extremely important—think business documents, irreplaceable project files, or crucial personal data—and none of the self-help options or software solutions have worked, it may be time to look for professional data recovery services. Experts in this field use specialized equipment and advanced methods that go far beyond what’s available to the average user or even to commercial recovery software.

When all other methods fail to recover your overwritten files, professional data recovery specialists can often achieve results that are impossible with DIY tools. These companies have the expertise, cleanroom environments, and sophisticated technology needed to handle even the most challenging data losses—such as severe corruption or physical drive damage.

While the cost can be significant, professional help is often the best route when:

  • The files have immense value and cannot be recreated or restored from other sources.
  • You’ve already tried built-in recovery features (like Windows File History or Mac Time Machine) and reliable software tools (such as EaseUS Data Recovery Wizard) without success.
  • Physical damage to your storage device complicates access or recovery.
  • You are concerned about causing further data loss with do-it-yourself attempts.

Before working with a professional, ensure they’ve got a solid reputation, transparent pricing, and expertise with your specific kind of storage media or file type.

If your attempts have hit a wall and the stakes are high, leaving it to the specialists gives your data the best chance of being recovered.

Frequently asked questions

Before I conclude let me also reply to some queries often made by the users related to overwritten file recovery.

How to recover overwritten Excel files or Word documents?

To recover overwritten Excel files or Word documents follow the steps below:

Step 1. Create a new Excel/Word file with the same name as your lost one;

Step 2. Next, right-click on the Excel /Word file and select ‘Properties’;

Step 3. Go to ‘Previous Versions’ and then select the latest version or the version you want to restore;

Step 4. Click ‘Restore’;

How to recover overwritten video files?

If you’ve accidentally replaced a video file, don’t worry—there are a few methods you can try to restore it, much like you would with documents or spreadsheets.

  • On Windows: If you’ve set up ‘File History’ beforehand, you may be able to find and restore an earlier version of your video file by right-clicking the folder where it was stored, selecting ‘Properties’, and checking under the ‘Previous Versions’ tab.
  • On Mac: If you use Time Machine, connect your backup drive, open the folder where the video was originally located, and enter Time Machine to browse and recover an earlier version of the file.

If you haven’t configured backups in advance, consider using data recovery software—such as EaseUS Data Recovery Wizard—to scan your computer for the lost version of your video file and recover it before it’s overwritten for good. Always remember to save restored files in a different location to avoid further overwriting.

How to restore overwritten files with no previous versions?

When there is no previous version available the original file can be restored by running a system restore. To do this follow the steps shown under Method 3 above to ‘recover overwritten files no previous versions’ by restoring your system to the last backup point.

In Windows, right-click on a file, and go to ‘Properties,’ and you will see the option ‘Previous Versions.’ This option will help you to recover the version of your file before you accidentally replaced it. Look at the list of versions, each with a date, and look for the version you want.

How to carry out Linux file recovery?

Follow the steps below to carry out Linux file recovery with TestDisk:

1. Run TestDisk, the free data recovery software, and select your partition table type;

2. Then select (Advanced) FilesystemUtils;

3. Next choose your partition and select ‘Undelete’;

4. Now you can browse and select deleted files and copy them to another location in your file system;

You may also like to read this post: How to Recover Word document not saved in MS Office – an easy guide

Conclusion

On going through how to recover overwritten files or how to recover replaced files described in the post it would be evident that overwritten file recovery is only possible if you have backup copies of the lost files or by using previous versions of the files. Hence, to recover overwritten files or to recover permanently deleted files as a result of the reuse of the storage space, backup copies of the files are essential.

However, it’s crucial to understand that full overwritten file recovery is not guaranteed. If the original data has been completely replaced by new information or the drive has been used extensively since the overwrite occurred, the chances of successful recovery diminish significantly. In other words, once new data occupies the same space as your original files, even the best recovery methods may not be able to retrieve them.

So, while tools and techniques can help in some cases, prevention is always better than cure—regularly backing up your important files remains the safest strategy.

I have, therefore, given below some suggestions which may be followed to avoid any accidental loss of your important files and data.

> Make a habit of backing up important files;

> Make backup copies before any activities that may result in any changes to the original data;

> Backup your data to the cloud to make sure that previous versions of your files are easily available to you;

> Mac users should take regular backups with the Time Machine feature;

> Do not save recovered files in their original locations i.e. in the locations from where you lost the files;

> Stop using the device after you lose any important file;

As soon as you realize a file has been lost or overwritten, immediately stop using the affected storage device. Every new operation—saving, installing, or even browsing—can decrease the likelihood of a successful recovery by overwriting the very data you’re hoping to restore. Avoid creating, moving, or modifying files on that drive until you’ve attempted recovery.

> Avoid running any built-in CD/DVD recovery tool;

Additional Tips for Reliable File Recovery
Discovering that you’ve overwritten a file and scrambling to recover it can be a stressful experience—one that most people would rather avoid repeating. To make recovery easier and minimize potential headaches in the future, it’s wise to implement a comprehensive backup strategy:

Automate your backups: Schedule regular, automatic backups to an external drive or a secure cloud service. This ensures you always have recent copies of your files, ready to restore when needed.
Store backups offsite or in the cloud: Keeping backups in a different physical location or in reliable cloud storage protects against hardware failure, theft, or natural disasters.
Ensure version history is enabled: Many backup tools and cloud services allow you to keep multiple versions of files. This makes it possible to roll back to previous versions if you accidentally overwrite or modify a document.
Test your backups: Periodically check that your backups are working and that you can actually restore files when needed. A backup is only useful if it can be restored successfully.
Consider backup tools for easy migration: If you plan to move your files to a new device, use backup solutions that make migration straightforward, so you can restore all your files—including older versions—in just a few steps.

Leveraging Cloud Storage Version History for File Recovery

Most popular cloud storage platforms—like Google Drive, Dropbox, and OneDrive—come equipped with version history features. This means that even if you accidentally overwrite or modify a file, you can often browse through previous versions and restore the one you need.

  • Google Drive maintains earlier iterations of files, allowing you to revert or download older versions as necessary.
  • Dropbox’s version history works similarly, making it easy to recover older copies within a set time frame.
  • OneDrive also stores file versions, letting you “roll back” changes or undo unwanted edits with just a few clicks.

Enabling and understanding how to use these versioning tools can be a lifesaver after an accidental file replacement. It’s a good habit to familiarize yourself with the version history options in whichever cloud service you use, so file restoration is always just a step away.

By adopting these habits and utilizing available tools, you can greatly reduce the risk of permanent data loss and ensure that recovering from accidental overwrites or deletions is quick and painless.

You may also like to read: How to recover data from a dead hard drive 


An engineer with passion for writing on Technolo gy. My Blog https://www.the-tech-addict.com mainly covers Tips& How-to-guides relating to Computer, Internet, Smartphones, Apple iDevices, and Green energy.

2 Responses to “How to Recover Overwritten Files – an easy step by step guide”

  1. Angie

    Dec 02. 2021

    Thank you so much for this site and this page – you have no idea how much it has helped!

    I made a stupid mistake and you have just saved me re-writing a year’s worth of work!

    Reply to this comment

Leave a Reply