How to Recover Deleted Photos and Files for Free With PhotoRec
Use free open-source PhotoRec cautiously to recover deleted pictures and documents without overwriting the original drive.
Before you begin
Accidentally deleting photos from an SD card or USB drive can feel final, but some deleted file contents may remain recoverable until the storage space is reused. PhotoRec, from the TestDisk project, is a free open-source utility that looks for known file formats even when the file system is damaged. It does not promise success, and an incorrect recovery procedure can permanently reduce the chances of getting anything back. The single most important precaution is to stop writing to the affected storage.
1Stop using the storage device immediately
As soon as you notice missing data, stop taking photographs on that memory card, downloading files to the drive or installing software onto the affected disk. New data can overwrite deleted file contents. If possible, safely eject a removable SD card or USB drive and connect it to a trusted computer using a compatible reader. Recovery prospects vary with the device, encryption and file system; modern SSDs using TRIM can make deleted data effectively unrecoverable.
2Look for ordinary restore options first
Before scanning raw storage, check the operating system's Recycle Bin or Trash, photo-app Recently Deleted section, backed-up cloud folders and version-history tools. Restoring from an existing backup usually preserves filenames and folder structure better than file carving. Confirm whether the item was truly deleted or simply moved. If files were on a company computer or managed phone, ask the responsible administrator before running third-party recovery tools.
3Download PhotoRec from the real developer
Visit cgsecurity.org, read the PhotoRec documentation and download TestDisk and PhotoRec from the official download page. PhotoRec runs on Windows, macOS and Linux, but interface and permissions vary. The project provides command-line and graphical recovery options depending on package and operating system. Avoid advertisements for similarly named utilities that demand payment after scanning. Never install new recovery software onto the damaged drive itself.
4Select the correct source and a different destination
Connect the affected drive and identify it by capacity, model and connection. Read the program's drive-selection screen carefully; choosing the wrong disk will waste time and may expose data. Select the relevant partition or storage space and choose an output directory on a separate healthy disk with enough free space. According to PhotoRec's official documentation, it uses read-only access for recovery scanning and specifically warns not to write recovered files to their original partition.
5Run the scan and review the recovered results
Start the scan using the options described for your file system and media. PhotoRec recognizes file signatures and may recover JPEG, PDF and other supported formats without retaining original filenames or directory organization. Be prepared for many duplicates, incomplete files or misleading extensions. Review a sample of recovered photographs and documents individually instead of trusting the reported count. Do not delete the source disk once a few files open; you may still need a safer or more complete recovery.
6Know when to stop and seek professional help
If a hard drive clicks, disconnects repeatedly or reports physical damage, repeated scanning may worsen the situation. Professional recovery may be justified for irreplaceable data. Memory cards with controller failure and encrypted modern phones have additional obstacles beyond PhotoRec's ability. After recovery, create a proper backup routine with at least one independent copy. Free recovery tools are useful, but prevention and verified backups remain the most reliable strategy.
Frequently asked questions
Can PhotoRec guarantee recovery of formatted files?
No. It may recover some data after formatting, but overwriting, TRIM, encryption and physical damage can prevent recovery.
Is PhotoRec paid?
No. The official TestDisk and PhotoRec project distributes open-source recovery software for free.
Official sources and further reading
Interface labels, availability and policies may change. Confirm current details with the relevant service before taking action.