On this page
Our verdict
PhotoRec is the best free data recovery tool when the file system is damaged, the drive was formatted or a memory card shows up as RAW. It costs nothing, has no recovery limit and runs on Windows, macOS and Linux.
The price is convenience. It works from a text interface, has no preview, and returns files in numbered folders without their original names, so plan time for sorting.
It ranks #2 in our data recovery, photo recovery and SD card guides.
Key takeaways
- Free and open source (GPL v2+), with no paid edition and no recovery limit.
- Finds files by their signatures, so it works after a format or on a RAW card.
- Does not recover original file names, folders or dates.
- Fragmented files, especially long camera videos, may come back incomplete.
- Best used as the free fallback once tools that read the file system have failed.
- PriceFree
- PlatformsWindows, macOS, Linux, FreeBSD
- Our rankings#2 in Data Recovery Software
Download from cgsecurity.org for PhotoRec Facts checked Nov 29, 2026
PhotoRec at a glance
| Developer | CGSecurity |
|---|---|
| Latest version | 7.2 (February 22, 2024) |
| Price | Free |
| Free version | Free and open source (GPL v2+), no recovery limit |
| Platforms | Windows, macOS, Linux, FreeBSD |
| Interface | Text-based |
| File types | More than 480 file extensions |
| License | GNU GPL v2+ |
| File systems | FAT, exFAT, NTFS, ext2/ext3/ext4, HFS+ |
| Media | Hard disks, memory cards, USB drives, CD-ROMs, DD raw and EnCase E01 disk images |
| Installation | None: portable, unpack and run |
| Preview | No |
| Original file names | Not recovered |
Facts from the developer's own pages, checked November 29, 2026. See sources.
Key features
- Signature search (file carving): recognises more than 480 file extensions in about 300 file families, from JPEG and camera RAW to Office documents, ZIP archives and video.
- Read-only scan: opens the source drive read-only and writes recovered files only to the destination you choose.
- File systems: works on FAT, exFAT, NTFS, ext2/ext3/ext4 and HFS+, and on drives where the file system is missing or corrupted.
- Disk images: scans DD raw and EnCase E01 images, so you can image a failing drive once and recover from the copy.
- File type filter: File Opt limits the scan to the types you need, which cuts noise and saves time.
- Free or Whole scan: scan only unallocated space for deleted files, or the whole partition after a format.
- Paranoid check and brute force: rejects invalid files by default, and an optional brute-force mode tries harder with fragmented JPEGs.
- Portable and cross-platform: nothing to install; builds for Windows, macOS and Linux, and it also runs on FreeBSD.
Our score: 6.4/10
Each tool gets a score out of 10, weighted across five criteria. Scores are researched, not tested: they come from vendor documentation, official product pages and free versions we checked, not from our own lab recovery runs, so they show fit for the job, not a recovery success rate. How we score
-
Recovery coverage25% 7.5
Signature search for 480+ extensions works on damaged or reformatted volumes, but names and folders are lost.
-
Safety for the source drive20% 8.0
Opens the source drive read-only.
-
Preview and file selection20% 3.0
No preview; results land in numbered folders without names.
-
Ease of use20% 4.0
Text interface.
-
Free version and price15% 10.0
Free and open source with no recovery limit.
Pros and cons
Pros
- Free and open source, no recovery limit
- Works on formatted, corrupted and RAW volumes
- Opens the source drive read-only
- Recognises more than 480 file extensions
- Windows, macOS, Linux and FreeBSD; no installation needed
Cons
- Original file names and folders are not recovered
- No preview before recovery
- Text-based interface
- Fragmented files, especially video, may be incomplete
PhotoRec pricing
PhotoRec is free. It is open source under the GNU GPL v2 or later and is distributed together with TestDisk from cgsecurity.org.
There is no paid edition, no trial and no cap on how much data you can recover. Paid tools sell convenience on top: a graphical interface, preview, file names from the file system and support.
How PhotoRec works
Most recovery tools first read the file system: the table that records each file's name, folder and location. PhotoRec skips that step and reads the drive block by block, looking for the headers of known file types such as JPEG or ZIP. This technique is called file carving.
Because it does not depend on the file system, PhotoRec still finds files after a quick format, on a card that Windows calls RAW, or on a partition with a corrupted file table.
The same design explains its main weakness. Names, folders and dates live in the file system, so carved files come back as f0000300.jpg in folders named recup_dir.1, recup_dir.2 and so on.
Carving works best when a file is stored in one continuous piece, which is common on cards and lightly used drives. PhotoRec rejects invalid files by default, and an optional brute-force mode tries harder with fragmented JPEGs at the cost of a much slower scan.
File names show the result: an f prefix for a normal file, b for a broken one and t for a JPEG thumbnail embedded in a larger photo.
PhotoRec ships with TestDisk, a companion tool that repairs partition tables and can undelete files with their names on some file systems. If the partition has simply disappeared, try TestDisk first; use PhotoRec when the file system is beyond repair.
How to recover files with PhotoRec, step by step
The screens below come from a run on a 64 MB test memory card image. The steps are the same on Windows, macOS and Linux.
- Stop using the drive and connect it to a working computer. If the drive is failing, make a disk image first and run PhotoRec on the image.
- Download TestDisk & PhotoRec from cgsecurity.org and unpack the archive. There is nothing to install; on Linux and macOS run
photorecfrom a terminal, with administrator rights. - Select the drive with the arrow keys and press Enter. Check that the size matches the card or disk you want to scan.
- Select the partition, or the whole disk if no partition is listed. Open File Opt if you only need some file types, such as JPEG and camera RAW.
- Choose the file system type: Other for FAT, exFAT, NTFS and HFS+, or ext2/ext3 for Linux drives.
- Choose Free or Whole. Free scans only unallocated space, which is enough for deleted files; Whole scans everything, which you need after a format or corruption.
- Pick a destination on a different drive and press C. Never save recovered files to the drive you are recovering from, and avoid a FAT32 destination if you expect files over 4 GB.
- Wait for the scan, then sort the results. Files land in
recup_dir.Nfolders, 500 per folder, with numbered names. Tools such as ExifTool or photorec_sorter can sort photos by type and EXIF date.
What we saw in a quick check
To show what the output looks like, we copied 12 JPEG photos named IMG_1001.JPG to IMG_1012.JPG onto a 64 MB FAT16 test image. We deleted them and ran PhotoRec 7.1 on the image with the Free option.
PhotoRec found all 12 photos in a few seconds, and every recovered file was byte-for-byte identical to the original.
None kept its name. They came back as f0000300.jpg to f0003080.jpg in a recup_dir.1 folder, next to a report.xml log.
This was a simple demonstration on an unfragmented test image, not a lab test. Real memory cards and hard drives with fragmented or partly overwritten files give weaker results; see what users report below.
How we evaluated PhotoRec
This review is based on research plus one quick hands-on check, not a long-term lab test. We read the developer's documentation on cgsecurity.org on 29 November 2026 and checked every feature claim against it.
Our own check was deliberately small: we ran PhotoRec on a 64 MB test memory card image with 12 deleted photos to show the real screens and output. It confirms how recovery works, but it is not a benchmark of recovery rates on real, damaged drives.
User experience comes from Reddit threads and YouTube walkthroughs. We only repeat a point when at least two independent sources report it, and we mark any source connected to a vendor. The score follows our scoring method.
What users report
We only repeat points that at least two independent users report, on Reddit or in YouTube walkthroughs. None of the sources below is connected to the developer.
-
In hands-on walkthroughs on test drives, PhotoRec recovered hundreds to more than a thousand files, and recovered documents, PDFs and photos opened normally.
Reported in: YouTube: Henry The Computer Guy, How to Recover Deleted Files with PhotoRec YouTube: Dimitri, PhotoRec Review
-
Recovered files come back without names or folders, and sorting thousands of numbered files can take longer than the scan.
Reported in: r/datarecovery: recovering file names from PhotoRec files r/techsupport: experience with PhotoRec YouTube: Henry The Computer Guy, How to Recover Deleted Files with PhotoRec YouTube: Dimitri, PhotoRec Review
-
Photos and documents usually open, but recovered video is hit and miss: fragmented camera clips, including iPhone MOV files, often come back truncated or will not play.
Reported in: r/PhotoRecovery: video recovery with PhotoRec YouTube: BhupinderTube, Recover Deleted Files using PhotoRec YouTube: AJ Reissig, Recover Lost Files using PhotoRec in Linux r/techsupport: experience with PhotoRec r/datarecovery: DDrescue + PhotoRec
-
If the full photo was overwritten, PhotoRec may only find the small preview embedded in it, so you get blurry 20 KB images instead of the originals.
Reported in: r/datarecovery: PhotoRec results are mostly pixelated YouTube: Dimitri, PhotoRec Review r/datarecovery: DDrescue + PhotoRec
-
On a failing card or disk, imaging the drive first and running PhotoRec on the image is the approach experienced users recommend, and it has recovered thousands of photos for people who could not pay for software.
Reported in: r/datarecovery: DDrescue + PhotoRec r/datarecovery: should I use PhotoRec?
-
Experienced users treat file carving as the last step: try a tool that reads the file system first, because it can keep names and folders.
Reported in: r/datarecovery: PhotoRec results are mostly pixelated r/techsupport: experience with PhotoRec
-
Scans take time: about two hours for a 1 TB drive in walkthroughs, and days or weeks for multi-terabyte disks.
Reported in: YouTube: AJ Reissig, Recover Lost Files using PhotoRec in Linux YouTube: Henry The Computer Guy, How to Recover Deleted Files with PhotoRec r/datarecovery: recovering file names from PhotoRec files
When PhotoRec is the wrong tool
- You need original file names and folders. Try TestDisk or a recovery tool that reads the file system first; PhotoRec renames everything.
- You want to preview before you recover. PhotoRec saves first and lets you look later. Tools with a preview save time when you only need a few files.
- The drive clicks, disconnects or is not detected. No software fixes a hardware fault. Stop using the drive and talk to a recovery lab.
- You mainly need long camera videos back. Many cameras write video in fragments, and PhotoRec's own documentation says it expects unfragmented files. Its mov/mdat option can rejoin videos split into two pieces; beyond that, a tool that rebuilds video streams has better odds.
- The files were on an SSD that has been TRIMmed. Once the SSD has erased the blocks, there is nothing left for any tool to carve.
PhotoRec compared with other recovery tools
| Software | Score | Price | Free version | Platforms | Interface |
|---|---|---|---|---|---|
| 6.4/10 | Free | Free and open source (GPL v2+), no recovery limit | Windows, macOS, Linux, FreeBSD | Text-based | |
Disk Drill |
8.7/10 | From $89/yr | Windows: Recover up to 100 MB free (Disk Drill Basic); Mac: Scan and preview free; recovery free only for files protected by Recovery Vault | Windows, macOS | Graphical |
Recuva |
6.6/10 | From $24.95/yr | Free version for home use | Windows 10, 8.1, 7, Vista, XP | Graphical wizard |
R-Photo |
6.5/10 | Free | Free for non-commercial use, no registration | Windows | Wizard |
DiskDigger |
7.2/10 | See vendor site | Free version available; a license unlocks all features | Windows, macOS, Linux | Graphical |
Prices and limits from each developer's site, re-checked monthly.
PhotoRec alternatives
Disk Drill
A point-and-click tool for Windows and Mac with preview and drive imaging. Paid, with a small free allowance on Windows.
Disk Drill in our data recovery guideTestDisk
PhotoRec's free companion from the same developer. Repairs lost partitions and can undelete files with their names on some file systems.
Recuva
A free, simple wizard for recently deleted files on a healthy Windows drive. It reads the file system, so names often survive.
Recuva in our data recovery guide
R-Photo
A free graphical wizard for photos and videos on Windows (free for non-commercial use), if a text interface is a deal breaker.
R-Photo in our photo recovery guide
DiskDigger
A lightweight graphical tool for Windows, Mac and Linux, useful for photos from memory cards. A free version is available; a license unlocks all features.
DiskDigger in our photo recovery guideWhere PhotoRec ranks in our guides
- #2Best Data Recovery Software in 2026Best free option for damaged drives
- #2Best Photo Recovery Software in 2026Best free photo recovery software
- #2Best SD Card Recovery Software in 2026Best free SD card recovery software
Final verdict: is PhotoRec worth it?
PhotoRec is worth trying first if you cannot pay for software and the file system is gone: a formatted card, a RAW partition or a corrupted drive. It is safe for the source drive and has no limits. Budget time for the text interface and for sorting the results.
If you need file names, a preview or long camera videos, start with a tool that reads the file system or rebuilds video, and keep PhotoRec as the free fallback.
Choose it if: the drive was formatted or shows as RAW, the file system is damaged, and you want a free tool with no limits.
Skip it if: you need original file names and folders, a preview, or a point-and-click interface.
PhotoRec FAQ
Is PhotoRec really free?
Yes. PhotoRec is open source under the GNU GPL v2 or later, according to the developer's documentation. There is no paid edition and no limit on how much you can recover.
Is PhotoRec safe to use?
PhotoRec opens the source drive read-only, so the scan itself does not write to it. The risk is saving recovered files to the same drive, which can overwrite what you are trying to recover. Always choose a destination on another drive.
Why does PhotoRec not keep file names?
Names and folders are stored in the file system, and PhotoRec ignores the file system so it can work when it is damaged. Recovered files get numbered names such as f0000300.jpg in recup_dir folders. The developer's guide to sorting recovered files lists tools that help.
Can PhotoRec recover video?
It recovers unfragmented video well, but many cameras store clips in fragments, which PhotoRec cannot reassemble. For MOV files split into two pieces, the mov/mdat option in File Opt saves both parts so you can join them, as the developer's video recovery page explains. Longer fragmented clips need a specialised tool.
Does PhotoRec work on Mac and Windows?
Yes. The same download page has builds for Windows, macOS and Linux, and it also runs on FreeBSD. It is a portable program that runs from a terminal window.
What is the difference between PhotoRec and TestDisk?
They come in one download. TestDisk repairs partition tables and can undelete files with their names on some file systems; PhotoRec carves files by their signatures when the file system cannot be used.
Can PhotoRec recover files from a formatted SD card?
Often, yes, as long as new photos have not overwritten the old ones. Choose Whole when asked which space to scan. Photos usually recover well; long videos may come back incomplete.
Can PhotoRec recover files from an SSD?
Only if the SSD has not yet erased the deleted blocks. With TRIM enabled, which is the default on modern Windows and macOS, deleted data on an SSD is often gone within minutes.
Sources
- PhotoRec (CGSecurity wiki) checked Nov 29, 2026
- TestDisk & PhotoRec download checked Nov 29, 2026
- PhotoRec documentation (CGSecurity) checked Nov 29, 2026
- PhotoRec and video recovery (CGSecurity) checked Nov 29, 2026
- After using PhotoRec: sorting recovered files (CGSecurity wiki) checked Nov 29, 2026
Research by the SafeDataRecovery team. Links to vendors are ordinary links, not affiliate links, and prices are re-checked every month. Spotted an error? Write to [email protected]. How we research.






