Deleting a file by accident is a horrible feeling. One wrong click, one empty Recycle Bin, and a document, photo, or video that mattered to you seems to be gone forever. The good news is that in many cases it is not gone at all, and if you act quickly and carefully, you can recover deleted files on Windows and Mac. This guide explains why deleted files can often be recovered, what to do first, and how to use the built-in recovery tools on both systems, plus when to try third-party software and when to call a professional.
Can Deleted Files Really Be Recovered?
Yes, in many cases deleted files can be recovered, and the reason is simple. When you delete a file on Windows or Mac, the operating system usually does not erase the actual data straight away. Instead, it marks the space that the file occupied as free, so that new data can be written over it later. Until that space is reused, the original data is still there on the drive, even though you can no longer see the file. This is why the first rule of file recovery is to stop using the drive as soon as you realise a file is missing. Every new file you save, every app you install, and every update you download could overwrite the very data you are trying to save. The same idea applies to the Recycle Bin on Windows and the Trash on Mac. When you delete a file, it usually goes into the Bin or Trash first, and it stays there until you empty it. If you have not emptied it, recovery is as simple as opening the Bin or Trash, finding the file, and restoring it. Only after the Bin is emptied, or after you use Shift and Delete on Windows, does recovery become more difficult, and that is when the tools in this guide come in.
What to Do First After Deleting a File
Before you try any recovery tool, take a few simple steps. First, stop writing to the affected drive. If the file was on an external drive or a USB stick, unplug it. If it was on your main drive, avoid downloading large files, installing new software, or saving new documents until you have tried to recover it. Second, check the obvious places. Look in the Recycle Bin or Trash, search for the file by name, and check whether a copy exists in a cloud service such as Google Drive, OneDrive, or iCloud, or in an email attachment you sent to someone. Many people find their lost file in one of these places and never need a recovery tool at all. Third, think about when the file was deleted. If it was deleted recently and you have not used the computer much since, your chances are good. If it was deleted weeks ago and you have been using the computer every day, the data may already have been overwritten, and recovery is less likely. Finally, if the file is very important, consider making a full backup or a disk image of the drive before you try recovery, if you can. This protects you from making things worse. Do not install recovery software on the same drive that holds the deleted file, because the installation itself could overwrite it. Install it on a different drive, or use a portable version on a USB stick.
How to Recover Deleted Files on Windows
Windows offers several built-in ways to recover deleted files. The first is the Recycle Bin. Double-click the Recycle Bin on your desktop, find the file, right-click it, and choose Restore. The file will return to the folder it was deleted from. If you have already emptied the Recycle Bin, check File History, which is Windows backup feature. Open Settings, go to System, then Storage, then Advanced storage settings, then Backup options, and look for the option to restore files from a current backup. If File History was turned on before the file was deleted, you can browse to the folder that contained the file and restore an earlier version of it. Another option is to right-click the folder that contained the file in File Explorer, choose Properties, then Previous Versions, and see whether an earlier version of the folder is available. This works if you had File History or System Protection turned on. If none of these work, you can try a third-party recovery program, which scans the drive for data that has been marked as deleted but not yet overwritten. We cover those programs later in this guide. Remember that you should save any recovered files to a different drive from the one you are recovering from, so you do not overwrite other deleted files that you may still want to recover.
How to Recover Deleted Files on Mac
On a Mac, the first place to look is the Trash. Click the Trash icon in the Dock, find the file, right-click it, and choose Put Back. The file will return to its original location. If you have emptied the Trash, your next best option is Time Machine, which is the backup system built into macOS. If you had a Time Machine backup drive connected before the file was deleted, open the folder where the file used to be, click the Time Machine icon in the menu bar, and choose Enter Time Machine. You can then go back in time through your backups and restore the file. If you use iCloud Drive, check iCloud as well. Deleted files in iCloud Drive are kept in the Recently Deleted folder for thirty days, and you can restore them from iCloud.com or from the Files app. The same applies to photos in the Photos app, which keeps deleted photos in a Recently Deleted album for thirty days. If you have no backup, you can try a Mac recovery program, which scans the drive for deleted data. As on Windows, do not install the program on the same drive, and save recovered files to a different drive. If the file was on an external drive, the same advice applies, and you should stop using that drive until recovery is complete.
Using Third-Party Recovery Software
When the built-in tools do not work, third-party recovery software is the next step. These programs scan your drive at a low level, looking for files that have been deleted but not yet overwritten. Many of them offer a free version that can scan your drive and show you which files it can recover, and you only pay if you want to recover a large amount of data. Popular options include Recuva for Windows, Disk Drill for Windows and Mac, and PhotoRec, which is free and open source. The process is usually the same. You download and install the program on a different drive, choose the drive that held the deleted file, and run a scan. A quick scan takes a few minutes and finds recently deleted files, while a deep scan can take several hours and finds older files, but it is more likely to recover damaged or partly overwritten files. Once the scan finishes, you can preview the files it found and choose which ones to recover. Be realistic about the results. Recovery software cannot recover a file that has been completely overwritten, and it may recover a file with a different name, or with some damage, especially if it was a large file. It also cannot help if the drive itself is physically damaged, and in that case you should stop using the drive and contact a professional data recovery service.

Recovering Photos, Videos, and Documents
Different kinds of files have different chances of recovery. Photos and videos are often easier to recover, because they are usually stored as single, large files, and recovery software can recognise them by their structure, even if the file name is lost. If you deleted photos from a memory card in a camera, stop using the card immediately, and use a card reader to scan it with recovery software, because a camera can overwrite the card very quickly. Documents, such as Word files and PDFs, are also recoverable, but they may be recovered with a generic name, and you may need to open each one to find the one you want. If you use Microsoft Office or Google Docs, check whether the program saved an automatic backup or a version history. Word, for example, keeps an AutoRecover folder, and Google Docs keeps a full version history online, so you can restore an earlier version of a document without any recovery software at all. The same is true for many cloud services. If you deleted a file from Google Drive, OneDrive, or Dropbox, check the Trash or Recycle Bin in that service, because deleted files are usually kept there for thirty days. The lesson is that cloud services and version history often save you before recovery software is needed, and they are worth setting up in advance, as we explain in our guide on how to back up your whole computer the right way.
When to Call a Professional
There are times when you should not try to recover files yourself. If your hard drive is making clicking, grinding, or beeping sounds, if it is not recognised by your computer at all, if it was dropped, or if it was damaged by water or fire, turn it off and do not keep trying to use it. Continued use can make the damage worse and can destroy data that a professional might have been able to save. Professional data recovery services have clean rooms and specialist equipment that can open a damaged drive safely, and they can often recover data that no software can reach. This service is expensive, often several hundred dollars or more, so it is only worth it for data that is truly irreplaceable, such as family photos, business records, or a thesis. If the drive is working normally and you simply deleted a file, you can usually try software recovery yourself first. If the software cannot find the file, or if the recovered file is damaged, you can still take the drive to a professional, as long as you have not overwritten it in the meantime. The most important thing is to know when to stop. Trying the same scan again and again, or formatting the drive to see if it helps, can do more harm than good.
How to Stop Losing Files in the Future
The best file recovery is the one you never need, and the way to achieve that is to back up your files before you lose them. Set up automatic backups, so that a deleted file is never more than a day old in your backup. On Windows, turn on File History or use a cloud backup service. On Mac, set up Time Machine with an external drive, and turn on iCloud Drive for your important folders. Keep at least one copy of your most important files in a second place, such as an external hard drive or a cloud service, and check your backups regularly to make sure they are actually working. If you want to know whether an external drive is still a good idea, read our guide on what an external hard drive is and whether you still need one in 2026. It is also worth being careful about how you delete files. Take a moment before you empty the Recycle Bin or Trash, and make sure you have not selected the wrong folder. If you are cleaning up a large number of files, do it in small batches, so a mistake is easy to undo. Finally, keep your software updated and your drive healthy, because a failing drive can lose files without any warning, and a backup is the only reliable protection against that.
Conclusion
Recovering deleted files on Windows and Mac is often possible, because deleting a file usually only marks its space as free, and the data remains until it is overwritten. Start by checking the Recycle Bin or Trash, then try File History or Time Machine, and then consider recovery software if those do not work. Stop using the affected drive as soon as you notice a file is missing, save recovered files to a different drive, and call a professional if the drive is physically damaged. Most importantly, set up automatic backups now, so that the next time a file is deleted, you can restore it in seconds instead of spending hours trying to recover it.
Frequently Asked Questions
Can I recover a file after emptying the Recycle Bin?
Yes, often you can. Emptying the Recycle Bin only marks the space as free, so recovery software can often find the file until it is overwritten. Stop using the drive and try a recovery program as soon as possible.
Is file recovery software safe to use?
Reputable recovery software is safe if you download it from the official website. Install it on a different drive from the one you are recovering from, and never save recovered files back onto the same drive.
How long do I have to recover a deleted file?
There is no fixed time limit. It depends on how much you use the drive after the deletion. If you stop using the drive immediately, a file can often be recovered days or weeks later. If you keep using the drive, it may be overwritten within hours.
Can I recover files from a formatted drive?
Sometimes, yes. Formatting usually removes the file list but not the data itself, so recovery software can sometimes find files on a formatted drive. A full format, which overwrites the drive, is much harder to recover from.
What should I do if my hard drive is making clicking noises?
Turn it off immediately and do not keep trying to use it. Clicking noises often mean physical damage, and continued use can destroy the data. Contact a professional data recovery service.
