When you delete a file in Windows, the data usually isn't wiped right away. Windows simply marks that space as free, and the file stays recoverable until something new is written over it. That means the two things that matter most are speed and restraint: act soon, and use the affected drive as little as possible.
Stop saving files, installing apps or downloading anything to the drive you lost data from. If you need to install a recovery tool, put it on a different drive when you can.
Step 1: Check the Recycle Bin
It sounds obvious, but it's the fastest win.
- Open Recycle Bin from the desktop.
- Use the search box in the top-right corner to look for part of the file name.
- Right-click the file and choose Restore. It goes back to its original folder.
If you used Shift+Delete or already emptied the bin, keep going.
Step 2: Look for a copy you already have
Before running any recovery software, check whether a backup quietly saved you. A backup copy is always better than a recovered one.
- OneDrive: sign in at onedrive.com and check the Recycle bin there (it's separate from the one on your PC). For files that were overwritten rather than deleted, open Version history.
- File History: if it was turned on, open Control Panel > File History > Restore personal files and browse by date.
- Previous Versions: right-click the folder that held the file, choose Properties, and open the Previous Versions tab.
- Email and chat apps: if you ever sent the file to someone, an attachment copy may still exist.
Step 3: Use Windows File Recovery (winfr)
Microsoft makes a free command-line tool called Windows File Recovery. Install it from the Microsoft Store, then open it from the Start menu and approve the admin prompt. A Command Prompt window opens.
The general syntax is:
winfr source-drive: destination-drive: [/mode] [/switches]
The source and destination must be different drives. If you lost files on C:, plug in a USB stick or external drive (say, E:) and recover to that. Windows creates a folder named Recovery_<date and time> on the destination automatically.
Pick a mode
| Situation | Mode to try first |
|---|---|
| NTFS drive (normal PC drive), deleted recently | Regular |
| NTFS, deleted a while ago or after formatting | Extensive |
| Corrupted NTFS drive | Extensive |
| SD card or USB stick using FAT/exFAT | Extensive |
Not sure? Start with regular. To check the file system, right-click the drive in File Explorer and choose Properties.
Example commands
Recover your Documents folder from C: to E: (note the backslash at the end of the folder path):
winfr C: E: /regular /n \Users\<username>\Documents\
Search the whole drive for PDF files:
winfr C: E: /extensive /n *.pdf
Replace <username> with your actual user folder name. You can find it by typing C:\Users into the File Explorer address bar. If a path contains spaces, wrap it in quotes. Type Y when asked to continue. Scans can take a long time on large drives, and you can stop with Ctrl+C.
If regular mode finds nothing, run the same command again with extensive.
Step 4: SD cards and USB drives: try PhotoRec
PhotoRec, which ships with TestDisk, is free and open source. It ignores the file system and scans the raw data for known file types, so it often works on reformatted or corrupted memory cards. It also opens the drive read-only, which is a nice safety feature.
The trade-off: original file names are not restored. You'll get files like f12345.jpg sorted into numbered folders, so plan some time for sorting. As always, save the results to a different drive.
If you prefer a graphical app, Recuva has a free version that many people use. Whatever you pick, download it only from the developer's official site; "free recovery" searches attract a lot of bundled junk.
The SSD problem
Most modern laptops use SSDs, and SSDs handle deleted data differently. Windows sends a TRIM command telling the SSD which blocks are no longer in use, and the drive may erase them soon after. In practice, files deleted from an SSD are often unrecoverable, even with good tools. Microsoft's own documentation notes that free space may already be overwritten, especially on SSDs.
So if your lost file was on an SSD, Step 2 (backups and cloud copies) is your best shot. Still try winfr, just keep expectations realistic.
When to stop and call a professional
If a hard drive is clicking, grinding or beeping, power it off now. Every minute it spins can damage the platters further.
Software can't fix hardware. Go to a data recovery lab when:
- The drive was dropped, got wet, or was in a fire
- The drive makes unusual noises or isn't detected at all
- The data is valuable enough that a failed DIY attempt isn't worth the risk
Labs cost real money, so get a quote first. A reputable one will usually evaluate the drive before charging for recovery.
FAQ
Can I install recovery software on the same drive?
Avoid it if you can. Installing anything can overwrite the exact space your file lived in. Windows File Recovery is small, but the safest route is to minimize all activity on that drive.
My recovered file won't open. Why?
Part of it was probably overwritten. You can try extensive mode or a different tool, but a partially overwritten file may not be fully repairable.
Does formatting a drive make files unrecoverable?
Not always. A quick format on a hard drive or memory card often leaves data in place, which is why extensive mode and PhotoRec can help. A full format, or any format on an SSD, usually makes recovery unlikely.
How do I avoid this next time?
Turn on OneDrive folder backup or File History, and keep one extra copy of important files on an external drive. Two copies in two places beats any recovery tool.