How to recover deleted files on Windows and Mac

High-resolution close-up of an arrow key and functional keys on a computer keyboard.

Photo by Kamil Čičila on Pexels

Knowing how to recover deleted files on Windows and Mac is one of those skills you hope you'll never need, but you're very glad to have when something goes wrong. Whether you emptied the Recycle Bin by accident, lost a file after a crash, or just can't find something you know was there, recovery is often possible. The key is to stop using the drive as soon as you realise the file is missing, and work through your options in order from simplest to most involved.

Check the obvious places first

Before reaching for any recovery tools, check the places files go when they're not quite deleted yet.

On Windows, open the Recycle Bin on your desktop. Right-click any file you want back and choose Restore. It returns to its original folder. On Mac, open the Trash from the Dock, right-click the file, and select Put Back. Same result.

If the file isn't there, check whether it was saved to a cloud folder. Files in OneDrive, iCloud Drive, Google Drive, or Dropbox have their own recycle or trash systems, usually accessible through each service's web interface. OneDrive keeps deleted files for 30 days. Google Drive keeps them for 30 days too. iCloud's "Recently Deleted" folder holds items for up to 30 days depending on the app.

Use Windows File History or Previous Versions

Windows has a built-in backup feature called File History that, if enabled, saves copies of files in your libraries, desktop, contacts, and favourites at regular intervals. To use it, navigate to the folder where the file lived, right-click inside it, and choose Restore previous versions. A list of saved snapshots appears. Pick the one from before the file was deleted and restore it.

If File History wasn't set up, Windows may still have a Shadow Copy from a System Restore point. Right-click the parent folder, select Properties, then the Previous Versions tab. It's not guaranteed, but it's worth a look before moving on.

If you haven't set up automatic backups yet, now is a good time. The complete step-by-step guide to backing up your computer walks through File History, Time Machine, and cloud options in one place.

Use Time Machine on Mac

If you use Time Machine with an external drive, file recovery is straightforward. Open the folder where the deleted file was stored, then launch Time Machine from the menu bar or from System Settings. Use the timeline on the right side to scroll back to a point when the file existed, select it, and click Restore.

Time Machine keeps hourly backups for the past 24 hours, daily backups for the past month, and weekly backups until the drive fills up. If the file was deleted within that window, you'll find it. Time Machine won't help you if the backup drive wasn't connected or Time Machine was never configured, in which case you'll need to move to a software-based recovery approach.

Try dedicated file recovery software

When built-in tools come up empty, third-party recovery software can scan your drive for file remnants that the operating system marked as deleted but hasn't yet overwritten. Two tools that work reliably on both platforms are Recuva (Windows) and Disk Drill (Windows and Mac).

The process works like this:

  • Install the recovery software on a different drive than the one you're recovering from. Installing to the same drive risks overwriting the very data you're trying to retrieve.
  • Run a deep scan on the target drive. This can take anywhere from a few minutes to over an hour depending on drive size.
  • Preview recoverable files, select the ones you need, and restore them to a different drive or location.

Success rates vary. Files deleted recently and not yet overwritten come back cleanly. Files on a drive that's been in heavy use since deletion may be partially or fully gone. On SSDs specifically, the TRIM command can wipe deleted data almost immediately, which is why fast action matters. For more on what SSD failure and data loss actually means in practice, the breakdown of whether data can be recovered from a damaged or failed SSD covers the technical limits in detail.

What to do when nothing works

If software recovery fails, your remaining option is a professional data recovery service. These services open the drive in a cleanroom environment and attempt to read data directly from the platters (for HDDs) or memory chips (for SSDs). It's expensive, often running from a few hundred to over a thousand dollars, and not always successful. It makes sense for genuinely irreplaceable files: family photos, legal documents, business records.

Before going that route, verify you've actually tried a deep scan with at least one dedicated recovery tool, and confirm the file wasn't moved rather than deleted. Windows Search (Win + S) and Spotlight on Mac (Cmd + Space) can find files anywhere on the system by name or content. It's surprisingly common for a "deleted" file to have simply been dragged to an unexpected folder.

Stopping it from happening again

Recovery is a last resort, not a strategy. The simplest protection is a regular backup to at least two locations: one local (an external drive) and one offsite or cloud-based. Each option has different failure modes, and the tradeoffs are worth understanding before you commit to one. A direct comparison of cloud backup vs external hard drives lays out the risks side by side.

Enable File History on Windows or Time Machine on Mac today. Both run in the background without any day-to-day effort, and both have saved files that software recovery couldn't touch. The setup takes under 10 minutes. A data loss event takes far longer to recover from, if recovery is possible at all.