Recover an overwritten or replaced file

An overwritten file can only come back from a saved older copy. Right-click it and choose Restore previous versions, which uses File History. If it lives in OneDrive, right-click it and pick Version history. Office files may also show an earlier version under File, Info. Scanning tools rarely help here, because the new data took the place of the old.

Checked November 10, 2026 against the manufacturer's own pages.

The short version

What to install and where it comes from. Every link goes to the manufacturer or Microsoft, never to a copy.

Best sourceAn older copy made before you saved over it
Windows featureRestore previous versions, fed by File History
OneDrive version historyKept 30 days, one file restored at a time
Do scans help?Rarely; the old content was replaced in place
Microsoft: File History, Restore previous versionssupport.microsoft.comMicrosoft: restore a previous version in OneDrivesupport.microsoft.comMicrosoft: recover an earlier version of a Word filesupport.microsoft.com

Official files only, nothing bundled

Step by step

  1. Do not save the file again

    Each new save can push out an AutoRecover copy or a sync version. Close the file without saving while you look for an older one.

  2. Use Restore previous versions

    Right-click the file itself, or the folder if the file was replaced, and choose Restore previous versions. Pick a date from before the mistake. Use Open in File History to preview, then Restore to so the current copy stays untouched.

  3. Check OneDrive version history

    In File Explorer, right-click a OneDrive file and select Version history, or do the same on onedrive.com. Select the three dots next to the version you want and choose Restore. The newer copy stays in the list.

  4. Check the app itself

    In Word, open the file and look under File, Info, Manage Document for an entry marked when I closed without saving. Restore replaces the saved file and Compare shows the changes.

  5. Look for stray copies

    Search This PC for the file name with a wildcard, and check email attachments, USB sticks and the Downloads folder. An older copy sent to someone else is a common rescue.

  6. Scan only as a last attempt

    A recovery program that reads the drive directly sometimes finds an older temporary copy that an app wrote while saving. Do not count on it, and save any result to another drive.

If the free methods found nothing

Deleted files usually stay on the drive until new data overwrites them. A recovery program reads the drive directly, lists what can still be saved and lets you preview it before restoring. Save recovered files to a different drive.

Find and preview your deleted files

Scans hard drives, USB sticks and memory cards, including quick-formatted ones, and shows what can be recovered.

Auslogics File Recovery 12 · Free scan and preview · NTFS, FAT, exFAT · Windows 11, 10, 8, 7

Why overwritten is different from deleted

A deleted file leaves its data behind in free space. An overwritten file does not, because the same name now points at new content, and the disk area that held the old content is usually reused by the save. That is why this page puts version features first and scanning last. Your real chance depends on whether Windows, OneDrive or the app kept an extra copy before you saved. If none did, the honest answer is that the old version is gone.

Where older versions come from

File History copies your libraries and the Desktop to an external drive or network location on a schedule, so the Previous Versions tab shows one entry per backup that caught a change. OneDrive keeps a version each time a synced file changes, for 30 days, and it covers every file type, not just Office documents. Word, Excel and PowerPoint keep AutoRecover copies while you work, which is how the closed without saving entry appears. Microsoft warns that restoring a previous version in place replaces the current one and cannot be undone, so Restore to is the safer button.

Set up versions before you need them

Turn on File History in Control Panel, under System and Security, with an external drive. Keep active work in a OneDrive folder so version history runs in the background. In Office apps, check that AutoRecover is on under File, Options, Save. And before big edits, use Save As with a new name. It is the simplest way to never overwrite the one copy that matters.

Questions

Why can recovery tools not get my overwritten file back?

Most apps write the new content over the old file or replace it under the same name. The previous bytes are usually reused, so there is nothing left to find.

Restore previous versions shows no versions. Why?

That list needs File History or another backup that ran before the change. If File History was never turned on with an external or network drive, the list stays empty.

I replaced a file when copying. Can I undo it?

Press Ctrl+Z in File Explorer right away to undo the copy. If too much time has passed, use Restore previous versions or OneDrive version history.

How long does OneDrive keep old versions?

Microsoft says file version history is kept for 30 days. A work or school administrator may have turned versioning off.