Recover Deleted Files on Windows and Mac
Yes, you can often recover deleted files on both Windows and Mac, but success depends on acting quickly and using the right method. This guide explains the built-in tools, third-party software options, and the steps you should take immediately after deletion to maximize your chances of getting your files back.
Why Deleted Files Aren’t Gone Forever
When you delete a file, the operating system doesn’t immediately erase the data from your hard drive or SSD. Instead, it marks the space as available for new data. The file’s content remains physically on the storage device until overwritten by new files. This is why recovery is possible—but it’s also why you should stop using the drive as soon as you realize you’ve deleted something important. Every new file you save, download, or even open that creates temporary data could overwrite the deleted file’s remnants.
First Steps After Deletion
Before trying any recovery tool, take these immediate actions:
- Stop using the device where the file was stored. If the file was on an external drive, unplug it.
- Check the Recycle Bin (Windows) or Trash (Mac) first. Double-click the icon on your desktop and look for the file. If found, right-click and choose “Restore” (Windows) or drag it back to the desktop (Mac).
- Check cloud storage if you use OneDrive, Google Drive, or iCloud—deleted files often go to a cloud trash folder for 30 days.
- Check backup services like File History (Windows) or Time Machine (Mac) if you had them enabled.
If the file isn’t in the Recycle Bin or Trash, it may have been permanently deleted (Shift+Delete on Windows, or Option+Command+Delete on Mac), or the Recycle Bin may have been emptied. In that case, you need recovery software.
Built-in Recovery Tools on Windows
Windows offers a few native options, though they’re limited:
- File History: If you set it up before deletion, go to Settings > Update & Security > Backup, or search “Restore your files with File History.” You can browse through versions of folders and restore the file.
- Previous Versions: Right-click the folder where the file was, select “Properties,” then the “Previous Versions” tab. Windows may have saved shadow copies if System Protection is enabled. You can restore or copy an older version of the folder.
- Windows File Recovery: This is a command-line tool available for free from the Microsoft Store. It works on NTFS, FAT, exFAT, and ReFS drives. The basic command is:
winfr C: D: -n \Users\YourName\Documents\filename.docx(replace C: with the source drive and D: with the destination drive where recovered files will be saved). It’s not user-friendly, but it’s free and can work when other options fail.
Built-in Recovery Tools on Mac
Macs have similar built-in options:
- Time Machine: If you had it configured, connect your backup drive, go to the folder where the file was, and enter Time Machine (click the Time Machine icon in the menu bar or open it from Launchpad). Scroll back in time to find the file and click “Restore.”
- Local Snapshots: If Time Machine is on but you don’t have a backup drive connected, your Mac may have local snapshots stored on the internal drive. You can access them the same way as Time Machine backups—just open Time Machine and browse.
Using Third-Party Recovery Software
When built-in tools fail, third-party software is your next step. These programs scan the raw storage for traces of deleted files. Popular options include Recuva (Windows), TestDisk (Windows/Mac), PhotoRec (Windows/Mac), and Disk Drill (Windows/Mac). Most offer a free trial that lets you see what can be recovered, but you often need to pay to actually save files.
How to use recovery software effectively:
- Install the software on a different drive than the one you’re recovering from. If you install it on the same drive, you might overwrite the deleted file.
- Run a deep scan (not just a quick scan) for the best results. This can take hours for large drives.
- Preview the found files to confirm they’re the right ones and that they’re not corrupted.
- Recover to a different drive to avoid overwriting.
When Recovery Fails: Why It Happens and What to Do
Recovery isn’t always possible. The most common reasons:
- Overwritten data: If you continued using the drive after deletion, the file’s data may have been partially or fully overwritten. This is especially true on SSDs, which use wear-leveling that constantly moves data around.
- TRIM on SSDs: Modern SSDs automatically erase deleted data blocks in the background (TRIM command). This makes recovery nearly impossible on many SSDs, even immediately after deletion.
- Encryption: If you use full-disk encryption (like BitLocker or FileVault), recovery software may not be able to read the raw data without the encryption key.
If recovery software can’t find the file, you may need to consider professional data recovery services. These are expensive (often hundreds of dollars) and not guaranteed, but they can sometimes recover data from physically damaged drives.
Prevention: Better Than Recovery
The best way to “recover” deleted files is to never lose them in the first place. Set up a reliable backup system:
- Windows: Enable File History (Settings > Update & Security > Backup) and point it to an external drive or network location.
- Mac: Turn on Time Machine (System Settings > General > Time Machine) and choose a backup disk.
- Cloud backup: Services like iCloud, OneDrive, Google Drive, or third-party options like Backblaze continuously sync your files to the cloud, so you can recover from any device.
- Use versioning: Some cloud services keep older versions of files, letting you roll back changes.
Frequently Asked Questions
Can I recover files after emptying the Recycle Bin or Trash?
Yes, but it’s harder. The file’s data is still on the drive until overwritten. Use recovery software immediately and avoid using the drive. On Macs, the “Put Back” feature in Trash won’t work after emptying, but third-party tools can still scan.
How long do deleted files stay recoverable?
There’s no fixed time. It depends on how much new data you write to the drive. On a hard drive, files can remain recoverable for weeks or months if you don’t use it. On an SSD with TRIM, it can be minutes or even seconds.
Is it safe to use free recovery software?
Generally yes, but only download from official websites. Free versions often have limitations (like file size caps), but they’re safe to use. Avoid sketchy “registry cleaner” or “file recovery” ads that may bundle malware.
Can I recover overwritten files?
Usually not. Once a file’s data is overwritten, it’s gone. Some advanced forensic tools claim to recover fragments, but for most users, it’s not feasible.
Does recovering files from an SSD work?
It’s much harder than on a hard drive due to TRIM. Some SSDs don’t support TRIM, or it may be disabled in BIOS, but you can’t count on it. Your best bet is to use a backup.
What should I do if the file was on an external drive?
Unplug the drive immediately. Then connect it to a computer and run recovery software. Do not format the drive or run disk repair tools—they can make things worse.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.