Skip to content

VersusSSD

Windows File Recovery vs PhotoRec: Which Free Tool Should You Use?

Windows File Recovery and PhotoRec are both free tools for getting back deleted files, but they work very differently. We compare Microsoft's command-line winfr app with CGSecurity's signature-based PhotoRec on modes, file systems, platforms and ease of use, and explain which to try first after deleting or formatting.

By , Senior Hardware Editor

6 min read

Windows File Recovery vs PhotoRec: Which Free Tool Should You Use?
Samsung Portable SSD T7 Shield 1TB compared with Crucial X10 1TB Portable SSD
Samsung Portable SSD T7 Shield 1TBCrucial X10 1TB Portable SSD
Storage TypeExternal SSDExternal SSD
Capacity1TB1TB
InterfaceUSB 3.2USB 3.2
Read Speed (MB/s)10502100
PortableYesYes
Hardware EncryptionYes—

When you've emptied the Recycle Bin, formatted the wrong memory card or lost files from a corrupted USB stick, two free tools come up again and again. Windows File Recovery is Microsoft's own command-line app, and PhotoRec is the long-running open-source recovery tool from CGSecurity, the makers of TestDisk. Both can bring back deleted files, but they work in different ways and suit different situations. This comparison uses Microsoft's and CGSecurity's documentation as of 29 November 2026.

First, the rule that matters more than the tool

Whichever you use, stop writing to the drive that lost the files. Microsoft explains that when a file is deleted, Windows marks its space as free, so the data can still exist, but any use of the computer can create files that overwrite that free space at any time. CGSecurity says the same: as soon as you notice a missing file, don't save anything more to that drive, and don't recover files onto the same partition they came from. Windows File Recovery goes further and refuses to run if the source and destination are the same partition.

So before you start, have a second drive ready for the recovered files. An external SSD such as the Samsung Portable SSD T7 Shield 1TB or Crucial X10 1TB works, as does any internal drive or USB stick that isn't the one you're recovering from.

At a glance

Windows File Recovery

PhotoRec

Made by

Microsoft

CGSecurity (Christophe Grenier), open source under GPL v2+

Get it from

Microsoft Store

CGSecurity download page (portable, no installer)

Runs on

Windows 11 and Windows 10

Windows, Linux, macOS, BSD, DOS and more

Interface

Command line (winfr command)

Text-mode menus

How it finds files

NTFS modes use the master file table or file record segments; signature mode uses file headers

Ignores the file system and searches for file signatures

File names and folders

Can search by file name, folder path and wildcard with /n

Original names generally lost; files are written to recup_dir folders

Supported file systems

NTFS in Regular mode; FAT, exFAT and others in Extensive mode only

At least FAT, NTFS, exFAT, ext2/3/4 and HFS+

Cloud and network drives

Not supported

Works on local disks, memory cards and disk images

Best for

Recently deleted files on an NTFS drive

Formatted or corrupted media, memory cards, non-Windows drives

How Windows File Recovery works

Windows File Recovery is a command-line app from the Microsoft Store. Microsoft says it's for files deleted from local storage, including internal drives, external drives and USB devices, that can't be restored from the Recycle Bin. Recovery from cloud storage and network file shares isn't supported.

You open it from Start, allow it to make changes to your device, and type commands in the Command Prompt window it opens, in this format:

winfr source-drive: destination-drive: [/mode] [/switches]

There are two basic modes:

  • Regular is the standard option for non-corrupted NTFS drives. Microsoft recommends it for NTFS files deleted recently.

  • Extensive is a thorough mode suitable for all file systems. Microsoft recommends it for NTFS files deleted a while ago, after formatting, on a corrupted disk, and for any FAT or exFAT drive. Recovering from non-NTFS file systems is only supported in this mode.

The /n filter is what makes it practical. Microsoft's examples include recovering your Documents folder with winfr C: E: /regular /n \Users\<username>\Documents\ and recovering PDF and Word files with winfr C: E: /regular /n *.pdf /n *.docx. When recovering from the Windows drive, Microsoft says to use /n filters to target user files, because Windows constantly creates and deletes files of its own. The tool also filters a long list of system and code file types by default, which you can switch off with /e.

Recovered files go into a folder called Recovery_ followed by the date and time on the destination drive. If you're not sure which mode to use, Microsoft says start with Regular, then try Extensive if that fails.

For advanced users there are also NTFS, segment and signature modes, and /y: lets signature mode target specific groups of file types.

Where it falls short: there's no graphical interface, the syntax is fussy (drive letters need colons, folder paths need a trailing backslash), and it only runs on Windows 10 and 11. Source and destination must both be given as drive letters.

How PhotoRec works

PhotoRec takes a different approach. CGSecurity says it ignores the file system and goes after the underlying data, so it still works when the file system has been severely damaged or the media reformatted. It reads the drive block by block and checks each block against a signature database; for example, it recognises a JPEG from the bytes at the start of a block. CGSecurity says it recognises more than 480 file extensions in about 300 file families, including ZIP, Office documents, PDF, HTML and JPEG.

It's built to be safe: PhotoRec uses read-only access to the drive or card you're recovering from. It runs on Windows, Linux, macOS and more, and works with hard drives, SSDs, memory cards (SD, CompactFlash and others), USB drives and disk images.

The process is menu-driven. You run photorec_win.exe as administrator, choose the disk and partition, optionally pick file types in File Opt, choose the file system type (Other unless it's ext2/3/4), then decide whether to search the whole partition or only unallocated space, which recovers only deleted files. Finally, you choose a destination folder. Recovered files land in recup_dir.1, recup_dir.2 and so on, and you can browse them while the scan runs.

Where it falls short: CGSecurity explains that deleting a file loses its metadata, including its name, and suggests trying TestDisk first when you need the original file names, so expect to sort through renamed files afterwards. CGSecurity suggests sorting the results by extension or date, and notes that PhotoRec sets modification times from file metadata when it's available. Heavily fragmented files may not come back whole, and CGSecurity notes it doesn't work well with ReiserFS. It also recommends scanning recovered files for viruses before opening them.

Which should you use?

Choose Windows File Recovery if you've deleted files recently from an NTFS drive in a Windows 10 or 11 PC, such as a Documents folder you emptied from the Recycle Bin. Regular mode with a /n filter lets you target exactly the folders and file types you lost, rather than wading through everything on the disk.

Choose PhotoRec if the drive was formatted, the file system is corrupted, the drive is a camera card or USB stick formatted as FAT or exFAT, or you need to work from Linux or a Mac. Its signature search doesn't depend on the file system being intact.

Try TestDisk first if a whole partition has disappeared or shows as RAW. CGSecurity's own advice is that for lost partitions, or deleted files on FAT or NTFS, TestDisk is usually faster and can recover the original file names.

It's also reasonable to try both: Windows File Recovery's Regular mode first for a targeted search, then PhotoRec for whatever is still missing, always writing to a different drive. Neither can bring back data that has already been overwritten, and Microsoft warns that's more likely on a solid-state drive.

For a wider look at the options, see our best free data recovery software roundup. And once your files are safe, set up Windows Backup or a folder backup with FreeFileSync so you don't need either tool again.

The bottom line

Windows File Recovery is the better first try for recently deleted files on an NTFS drive in Windows 10 or 11, because its Regular mode can target the exact folders and file types you lost; PhotoRec is the better choice for formatted or corrupted drives, memory cards, FAT and exFAT media and non-Windows systems, because it ignores the file system and searches for file signatures, at the cost of losing file names. Whichever you use, stop writing to the affected drive and always recover to a different one.

Sources

  1. 01Microsoft Support, Windows File Recovery (Microsoft Store app, winfr syntax, Regular and Extensive modes, file systems, switches, FAQ)
  2. 02CGSecurity, PhotoRec (how it works, read-only access, file systems, media, operating systems, file formats)
  3. 03CGSecurity, PhotoRec Step By Step (menus, options, recup_dir folders, virus scan advice, TestDisk first for partitions)
  4. 04CGSecurity, TestDisk Download (portable application, no installer)

About the author

Callum Reid

Senior Hardware Editor

Callum leads GPU, CPU and platform architecture coverage at Forge PC. Before joining the editorial desk, he spent nine years specifying, assembling and stress-testing custom gaming and workstation systems in the UK, with a focus on PCIe bandwidth, VRM thermal design, DDR5 memory tuning and 1440p/4K frame-time consistency.

More from Callum Reid

Read next

Best Free Emulators for PC in 2026

Best Picks

Best Free Emulators for PC in 2026

The best free emulators for PC in 2026: RetroArch for retro systems in one app, PCSX2 for PS2, Dolphin for GameCube and Wii, DuckStation for PS1 and PPSSPP for PSP. We compare the systems each covers, licences, BIOS needs, hardware requirements and features from each project's official site, and explain how to stay legal with your own games and BIOS dumps.

Hannah Vance6 min

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

How-To

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

PCSX2 can play much of the PlayStation 2 library on a Windows PC at higher resolutions than the original console. Using PCSX2's official documentation, we explain the hardware you need, how to install it, how to dump the BIOS from your own PS2 and your game discs, which renderer to choose, how to save safely and what to check if games run slowly.

Marcus Thorne8 min

Best Local AI Video Translation and Dubbing Tools in 2026

Best Picks

Best Local AI Video Translation and Dubbing Tools in 2026

Free AI tools can now transcribe a video, translate it and dub it into another language on your own PC. We pick the best: pyVideoTrans, VideoLingo, OpenCreator (formerly KrillinAI) and SoniTranslate, comparing offline use, languages, voices, setup, licences and hardware from each project's official docs.

Hannah Vance5 min

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

Versus

pyVideoTrans vs VideoLingo: Which Local AI Video Translator Should You Use?

pyVideoTrans and VideoLingo are popular open-source tools for translating and dubbing videos with AI on your own PC. Using each project's official docs, we compare installation, speech recognition, translation engines, dubbing voices, offline use, GPU support and licences, and say which suits which job.

Callum Reid4 min