How to Recover Deleted Files on Windows
In this article
Accidentally deleting a file on Windows can feel like a disaster, but in many cases the data is still recoverable. This guide walks you through the built-in methods and free tools that can restore files from the Recycle Bin, recover previous versions, and even bring back files after a permanent deletion or formatting. You'll need a Windows PC and, for some methods, a second storage drive or a cloud backup account.
What You'll Need
- A Windows PC (Windows 10 or Windows 11 recommended)
- Administrator access to the computer
- A second storage drive (USB flash drive or external hard drive) for recovery software, if needed
- Optional: cloud backup account (OneDrive, Google Drive, etc.)
Step-by-Step
- Stop using the drive immediately. If the file was permanently deleted (not in the Recycle Bin), the most important step is to avoid writing any new data to the same drive. New files, downloads, or even opening programs can overwrite the deleted file's data, making recovery impossible. If possible, disconnect the drive or use a different computer for recovery.
- Check the Recycle Bin. Double-click the Recycle Bin icon on your desktop. Look for your file. If you find it, right-click it and select Restore. The file will return to its original location.
- If the Recycle Bin was emptied or the file was deleted with Shift+Delete, try the File History feature. Open the folder that contained the file, right-click an empty area, and select Properties. Go to the Previous Versions tab. If there are any versions listed, select one and click Restore or Restore To to recover the file.
- Check your cloud storage. If you use OneDrive, Google Drive, or Dropbox, deleted files often go to a cloud recycle bin. For OneDrive: sign in to onedrive.com, go to Recycle bin in the left sidebar, select the file, and click Restore. For Google Drive: go to drive.google.com, click Trash on the left, right-click the file, and choose Restore.
- Use Windows File Recovery (Windows 10/11). This is a free command-line tool from Microsoft. Install it from the Microsoft Store. After installation, open Command Prompt as administrator. Use the basic command:
winfr C: D: /regularwhere C: is the drive with the deleted file and D: is a different drive where you want to save the recovered files. For more thorough recovery, usewinfr C: D: /extensive. The tool will scan and save recoverable files to a folder on D:. - Try third-party recovery software. If Windows File Recovery doesn't work, there are reputable free tools like Recuva, PhotoRec, and TestDisk. Download one to a different drive (not the one with the deleted file). Install and run it, select the drive that had the file, and scan. The software will list recoverable files; select yours and save them to a different drive.
- Check backups. If you have a system backup (like File History or a system image), restore the file from there. For File History: go to Settings > Update & Security > Backup > More options > Restore files from a current backup. For a system image, you may need to boot from the recovery drive.
Common Mistakes
- Continuing to use the computer after deletion. Every new file written to the drive can overwrite the deleted file's clusters. Even opening a web browser can create temporary files that overwrite your data.
- Installing recovery software on the same drive. The installation process writes new files, potentially overwriting your deleted data. Always install on a different drive.
- Saving recovered files to the same drive. When you recover a file, save it to a different drive. Saving it back to the original drive risks overwriting other deleted files you might want to recover later.
- Using the wrong recovery mode in Windows File Recovery. The /regular mode is faster but only works for recently deleted files on NTFS drives. If the file was deleted a while ago or the drive is exFAT, use /extensive.
- Ignoring the Recycle Bin's size limit. If the Recycle Bin is full, older deleted files are automatically purged. Check its settings by right-clicking the Recycle Bin > Properties.
Tips
- Enable File History in Windows Settings to automatically back up your files. Go to Settings > Update & Security > Backup and turn on Automatically back up my files.
- Use cloud storage for important documents. Even if you delete a file locally, it often remains in the cloud's recycle bin for 30 days.
- Create a system restore point before making major changes. This can help restore previous versions of files if you have System Protection enabled.
- Act quickly. The sooner you attempt recovery, the higher the chance of success. Time allows more overwrites.
- For SSDs, consider enabling TRIM. While TRIM improves performance, it also permanently erases deleted data quickly. Some recovery tools may not work on SSDs after TRIM has run.
Troubleshooting
- Windows File Recovery says "no files found" – Try the /extensive mode. If that fails, the file may have been overwritten. Use third-party software like Recuva, which can sometimes find more.
- Recovery software shows a file but it won't open – The file may be corrupted. This often happens if part of the file was overwritten. You can try a deeper scan or accept that the file is partially damaged.
- You don't have a second drive – You can use a USB flash drive with enough space for the recovery software and recovered files. Or, if you have a network drive, save to that.
- The drive is not recognized – If your external drive isn't showing up, try a different USB port or another computer. If it's an internal drive, check Disk Management to see if it appears there.
- Recovery takes very long – Extensive scans on large drives can take hours. Be patient. You can run it overnight.
Frequently Asked Questions
Can I recover files after emptying the Recycle Bin?
Yes, but it's not guaranteed. The data still exists on the drive until overwritten. Use Windows File Recovery or third-party software as soon as possible.
Are there any free recovery tools?
Yes, Windows File Recovery is free from Microsoft. Recuva, PhotoRec, and TestDisk are also free for personal use.
How long do deleted files stay recoverable?
There's no set time. It depends on how much you use the drive. On an SSD, TRIM may erase data within minutes. On a hard drive, files can remain for months if the drive isn't used much.
Can I recover files from a formatted drive?
Yes, formatting doesn't erase the data immediately. It just marks the space as available. Recovery software can often restore files from a formatted drive, especially if you use the deep scan option.
Does Windows File Recovery work on external drives?
Yes, it works on any drive that Windows can read, including USB drives and SD cards. Just specify the correct drive letters.
What if I have no backup and the recovery tools fail?
If all else fails, you may need to send the drive to a professional data recovery service. This can be expensive, but it's the last resort for critical data.