How to Recover Deleted Files: A Careful Step-by-Step Guide
Deleted an important file or lost a drive? What to do first, free built-in options, recovery software for Windows and Mac, and when to stop and call a professional.
Losing important files is stressful, but deleted files can often be recovered, especially if you act quickly and avoid a few common mistakes. This guide explains the steps in the right order, from the simplest to the most serious.
First: stop using the drive
When a file is deleted, its space is marked as free, but the data usually stays on the drive until something new is written over it. Every file you save, program you install or even web page you browse can overwrite it. So:
- Stop saving files to the affected drive.
- Do not install recovery software on the drive you want to recover from. Install it on another drive or run it from a USB stick.
- If the drive makes clicking, grinding or beeping noises, switch it off and go straight to the section on professional help.
A note on SSDs: most solid-state drives use a feature called TRIM, which erases deleted data quickly. Recovery from SSDs is therefore often impossible after some time, which makes backups even more important.
Step 1: check the obvious places
- Recycle Bin (Windows) or Trash (Mac). Right-click the file and choose Restore or Put Back.
- Cloud storage. OneDrive, Google Drive, Dropbox and iCloud Drive keep deleted files in their own recycle bin for a limited period, and many keep previous versions of files.
- Previous versions on Windows. If File History was turned on, right-click the folder and choose Restore previous versions.
- Time Machine on Mac. Open the folder, enter Time Machine and go back to a date before the file was deleted.
- Email and messaging. If you ever sent the file to someone, it may still be in your sent items.
Step 2: try recovery software
If the file is not in any of those places, recovery software can scan the drive for traces of deleted files. Some reputable options:
Free options
- Windows File Recovery is a free command-line tool from Microsoft, available in the Microsoft Store. It has no graphical interface, but Microsoft’s support pages explain the commands.
- PhotoRec and TestDisk are free, open-source tools from CGSecurity for Windows, macOS and Linux. PhotoRec recovers many file types, not just photos; TestDisk can repair lost partitions. They are powerful but text-based.
- Recuva is a long-standing Windows tool with a simple wizard and a free version.
Commercial tools with free trials
Products such as Disk Drill, EaseUS Data Recovery Wizard, Stellar Data Recovery and R-Studio offer friendlier interfaces, previews and support for damaged or formatted drives. Most let you scan and preview recoverable files for free and charge to recover more than a limited amount. Check exactly what the free version allows on the official website, and download only from the developer.
How to scan
- Install the tool on a different drive from the one you are recovering.
- Select the drive or folder where the file was.
- Start with a quick scan; run a deep scan if the file is not found.
- Preview files before recovering them to make sure they are intact.
- Save recovered files to a different drive, never to the one you are scanning.
Step 3: know when to call a professional
Software cannot help with physical damage, and using a failing drive can make things worse. Contact a professional data recovery service if:
- the drive clicks, grinds, is not detected, or has been dropped,
- there is water or fire damage,
- the data is extremely valuable and you cannot risk a mistake.
Professional recovery in a clean-room lab can be expensive. Ask for a free diagnosis and a fixed quote first.
Prevention: the best recovery is a backup
Recovery is never guaranteed. A simple backup routine makes most data-loss events a minor inconvenience:
- Turn on Windows Backup/File History or Time Machine with an external drive.
- Use cloud storage with version history for important documents and photos.
- Keep at least one copy disconnected from your computer, to protect it against ransomware.
Our home cybersecurity guide explains the 3-2-1 backup idea in more detail.
Frequently asked questions
Can every deleted file be recovered?
No. Success depends on how much new data has been written since, the type of drive (SSDs are harder) and whether the drive is physically healthy.
Can files be recovered after formatting?
Often yes after a quick format of a hard disk or memory card, as long as little new data has been written. A full format or a long time of use afterwards lowers the chances considerably.
Is free recovery software safe?
The tools mentioned here are well established. The main risk is downloading a fake copy, so always use the developer’s official website or the Microsoft Store.