Affiliate Disclosure: This article may contain affiliate links. If you purchase through these links, we may earn a commission at no extra cost to you.
Deleting the wrong file is one of those mistakes you notice a second too late. The good news: a deleted file is rarely erased right away. Windows and macOS simply mark the space it occupied as available, and until something new is written over that spot, the data usually survives. That window is your opportunity, and what you do in the next few minutes matters far more than which recovery tool you eventually choose to run.
This guide works through recovery in the order that gives you the best odds: the Recycle Bin or Trash first, then the backup tools already built into Windows and macOS, and finally free recovery software for files that were never backed up anywhere. There is also a dedicated section for SD cards, plus the common mistakes that most often turn a recoverable file into a permanent loss.

Step 1: Check the Recycle Bin or Trash
It sounds obvious, but deletions from your main drive land here first, and restoring from the bin is instant and risk-free.
- On Windows, open the Recycle Bin from the desktop, search for the file name, right-click the file and choose Restore to send it back to its original folder.
- On a Mac, open Trash from the Dock, locate the file, then right-click it and choose Put Back.
- Sort by deletion date if the bin is crowded — the file you just lost will sit near the top.
- If the file was deleted from a USB drive or a network folder, move on to the next steps: those deletions usually bypass the Recycle Bin entirely.
Our pick for this guide: Seagate Portable 2TB External Hard Drive
After recovering your files, a dedicated backup drive is the single best way to make sure you never need recovery software again.
Step 2: Restore From File History or Time Machine
If the bin is empty, the built-in backup tools are next. Per Microsoft and Apple documentation, both must have been enabled before the file was lost — they cannot reach back in time otherwise.
- On Windows, search the Start menu for File History, open the restore window, browse to the folder that held your file and use the green restore button to bring back the version you need.
- On a Mac, connect your Time Machine drive, open the folder where the file lived, launch Time Machine from the menu bar and step back through the timeline until the file reappears.
- Check cloud sync services too — OneDrive, Google Drive and Dropbox each keep their own trash folder that typically holds deleted files for 30 days or longer.
If neither tool was ever set up, treat this loss as the push to fix that: our walkthrough on backing up your PC to an external hard drive covers both operating systems step by step.
Step 3: Use Free Recovery Software
No backup? Recovery software scans the drive for data that has been marked deleted but not yet overwritten.
- Stop installing anything to the affected drive. If the lost file was on your system drive, install the recovery tool to a USB stick or a second drive instead.
- On Windows, try Windows File Recovery — Microsoft’s own free tool from the Microsoft Store — or a graphical option such as Recuva.
- On a Mac, or for stubborn cases on any system, use PhotoRec: it is free, open source and scans the raw disk for hundreds of file types.
- Scan the affected drive, preview what the tool finds, and always recover files to a different drive than the one you are scanning.
- If the quick scan finds nothing, run the deep or thorough mode — it takes far longer but reads every sector of the drive.
Recovering Files From an SD Card
Deleted photos and videos on camera or console SD cards follow the same logic, with one twist: small cards fill and overwrite faster.
- Take the card out of the camera or device immediately and stop shooting new photos.
- Connect the card to your computer through a card reader rather than the camera’s USB cable — readers are faster and expose the card as a normal drive.
- Run PhotoRec or Recuva against the card and save everything it recovers to your computer, never back onto the card itself.
- Once your files are safe, reformat the card inside the camera for a clean file system. The same principle from our guide to formatting an external hard drive applies here: formatting wipes the index, so only do it after recovery is finished.

Common Mistakes That Make Data Loss Permanent
- Recovering onto the same drive you are scanning. Every recovered file written back to the source drive can overwrite other deleted files you have not rescued yet.
- Using the computer normally while you decide. Browsers, updates and background apps write to the disk constantly, shrinking your recovery window by the minute.
- Ignoring signs of drive failure. If deletions or corruption keep happening on their own, the drive itself may be dying — follow our guide to checking SSD health before you rely on it again.
- Waiting days to act on an SSD. The TRIM command quietly erases deleted blocks in the background, so on SSDs the recovery window can close within hours.
- Forgetting the flip side. Everything in this guide also works for the next owner of your old drive. Before selling or recycling one, use our guide to wiping a hard drive properly so your deleted files stay deleted. And if you carry the only copy of sensitive documents on a keychain stick, the models in our encrypted USB flash drives roundup at least keep a lost drive from becoming a data breach.
Frequently asked questions
Can I recover files after emptying the Recycle Bin?
Often, yes. Emptying the bin removes the file’s directory entry, not the data itself. Until the operating system reuses that space, recovery software can usually bring the file back. Act quickly and avoid writing anything new to the drive, because every download, update or browser session increases the chance that the space gets overwritten.
Why is recovery so much harder on an SSD?
Modern SSDs use a command called TRIM, which clears deleted data blocks in the background so future writes stay fast. Once TRIM has processed a deleted file, the data is physically gone and no consumer software can retrieve it. Your realistic options on an SSD are the Recycle Bin, File History, Time Machine or a cloud backup.
What is the best free tool to recover deleted photos from an SD card?
PhotoRec is the most reliable free option. It is open source, runs on Windows, macOS and Linux, and recognizes hundreds of image and video formats, including RAW files from most camera brands. The interface is text-based and looks dated, but the recovery engine underneath is excellent. Just remember to save recovered photos to your computer, not back to the card.
Why do some recovered files open corrupted?
A file is stored in blocks, and recovery only succeeds if every block is intact. If part of the file was overwritten after deletion, the recovered copy will be incomplete: a photo may load halfway, a document may refuse to open. This is why you should attempt recovery as soon as possible and always save results to a different drive.