How to Find and Delete Duplicate Files in Windows 11
Windows 11 has no built-in duplicate file finder. File Explorer can sort by size and name, Storage Sense can clear temporary files, and PowerShell can hash files - but nothing in Windows compares files across folders and drives and tells you which ones are copies.
You can get part of the way with a PowerShell script. For a whole PC, a dedicated duplicate file finder that confirms matches by content and lets you review each group before deleting is the practical route.
This guide covers both. It starts with what Windows itself can do and exactly where each method runs out, then walks through finding and removing duplicates across every drive on a Windows 11 PC with Duplicate File Detective. Everything here applies unchanged to Windows 10.
Does Windows 11 have a duplicate file finder?
No, and the features that sound as though they should help do something narrower:
- File Explorer searches and sorts a folder tree by name, size, and date. It can show you two files with the same name and size, but it cannot tell you whether their contents match, and it only looks at one location at a time.
- Storage Sense and the Cleanup recommendations page under Settings › System › Storage remove temporary files, empty the Recycle Bin, and list large or unused files. They never compare one file with another.
- OneDrive keeps one copy of each file in the cloud, but does nothing about the copies you have made of it on disk, and its Files On-Demand placeholders complicate scanning (see the FAQ below).
- PowerShell ships with everything needed to hash files and group the results. It is the one genuinely useful manual method, and it is covered next.
Finding duplicate files in Windows 11 by hand
File Explorer: quick, but only for the obvious cases
Open the folder, switch to Details view, and sort by Size, then by
Name. Copies made by a careless drag or a repeated download sit next to each other - the same
name with (1) or - Copy appended, the same size. The search box narrows the field:
kind:picture size:>10MB lists only large images, and *.pdf only PDFs.
This finds duplicates that were made in place. It misses the same photo saved under a different name, the same document filed in two folders, and everything on a second drive. And a matching name and size is a hint, not proof, that two files are identical.
PowerShell: exact, and honest about its limits
Windows PowerShell can compute a SHA-256 hash for every file under one or more folders and group files whose hashes match. Grouping by size first means only files that could possibly be duplicates are ever read in full:
Get-ChildItem -Path "$env:USERPROFILE\Pictures", "D:\Backup" -File -Recurse -ErrorAction SilentlyContinue |
Group-Object Length | Where-Object Count -gt 1 |
ForEach-Object { $_.Group } |
Get-FileHash -Algorithm SHA256 |
Group-Object Hash | Where-Object Count -gt 1 |
ForEach-Object { $_.Group.Path; "" }
Change the two paths on the first line to the folders or drives you want compared, run it, and each blank-line separated block of paths is one set of identical files. This is a real duplicate finder, and it is exact: two files with the same SHA-256 hash have the same contents.
What it does not do is the rest of the job:
- It reads every candidate file in full. On a few thousand files this takes a minute; on a photo library or a second drive it takes as long as copying them, and it starts over from scratch each time you run it.
- It shows paths, nothing else. No thumbnails, no dates, no way to see which of five copies of a photo is the full-resolution original.
- It does not choose or delete. Removing the copies means editing the output into
Remove-Itemcommands by hand, with no Recycle Bin unless you script that too, and no undo. - It only matches exact copies. A resized photo, a re-saved document, or the same song ripped at a different bit rate all have different bytes and different hashes.
- It forces cloud-only OneDrive files to download, because hashing a placeholder means reading it.
For a single folder pair, the script is enough. For the situations most people are actually in - years of photo imports across two drives and a phone backup folder, a Documents library copied to an external drive "just in case", a music collection ripped twice - the manual method runs out at exactly the point where the volume makes a tool worth having.
How to find and delete duplicate files in Windows 11 with Duplicate File Detective
Duplicate File Detective does what the script does - confirms duplicates by content checksum, with byte-for-byte verification available - and then the part the script leaves to you: it scans every drive and folder you name in one pass, groups the matches, shows you each group with previews, applies your keep rule across all of them at once, and deletes to the Recycle Bin. Hashes are cached, so a repeat scan next month only reads files that have changed.
- Start the Project Wizard and choose how to match. Open Duplicate File Detective and click Project Wizard on the Home tab. Choose the Checksum template, which matches on name, size, and a content checksum, or Strong Checksum if copies may have been renamed - it matches on size and content alone.
- Add every drive and folder you want compared. Add your user folders, a second internal drive, an external drive, a NAS share - as many search paths as you like. Copies scattered across them are all compared against each other in a single pass, which is the step manual methods cannot do.
- Accept the file type filter and run the search. The wizard proposes a file type filter based on the template. Accept it, or narrow it to documents or pictures for a first pass, then click Finish. Files are grouped by size first, so only files that could possibly match are ever hashed.
- Review the duplicate groups. Each group in the results report holds files with identical content. Sort by size and start at the top - a few large groups usually account for most of the recoverable space. Select any photo and the Compare Images pane shows the whole group as thumbnails.
- Mark the copies to remove. Tick files by hand, or let SmartMark apply one rule to every group at once: keep the newest, keep the oldest, keep the copy in a chosen folder, or mark everything outside a master path. SmartMark always leaves at least one copy unmarked in each group.
- Delete to the Recycle Bin, or move or zip instead. Choose Delete with the Recycle Bin option on, or move the marked files to a holding folder or zip them if you would rather keep a way back. The Duplicate File Manager lists exactly which files will be affected before anything happens.
The Quick Start topic in the online help walks through the same first scan screen by screen, and the product tour shows each step of the process.
Deleting duplicate files in Windows 11 safely
Windows is unforgiving about a few locations, and a duplicate file finder will faithfully act on whatever you point it at. Three habits cover almost all of the risk:
- Scan your own data. Pictures, Documents, Music, Videos, Downloads, and your backup and external drives. Leave
Windows,Program Files, andProgramDataout - applications routinely keep the same file at several paths and expect to find it at each one. Every new project starts with these exclusions in place, and a protected file types list keeps executables out of the results. - Delete to the Recycle Bin. It is the default, and it is the one safeguard that reverses a mistake. It is not available on network shares or some removable media, where deletions are permanent, and it is finite, so empty it deliberately rather than letting it overflow.
- On the first pass, zip or move instead of deleting. The space is recovered either way. Delete the archive or the holding folder a few weeks later, once nothing has turned out to be missing.
Which copy to keep, and what to do when something else depends on the path you removed, are covered in Is It Safe to Delete Duplicate Files?
A note on editions. The Personal Edition, for home use, has no limit on the number of drives and folders in a project, so a whole-PC scan across internal, external, and network storage is a single search. Scheduling, the command line, and replacing removed duplicates with links to the original are Pro features, and Personal licenses do not cover server operating systems or organizations. The 15-day trial includes everything.
Windows 10, and older versions
Nothing above is specific to Windows 11. File Explorer sorting, Storage Sense, and the PowerShell script behave the same way on Windows 10, and Duplicate File Detective supports Windows 11, 10, 8, and 7 SP1 as well as Windows Server 2012 R2 through 2025. If you are cleaning up a file server rather than a PC, the network shares and file servers guide covers ownership reporting and scheduled scans.
Duplicate Files in Windows 11 FAQ
Does Windows 11 have a built-in duplicate file finder?
No. Windows 11 has no feature that finds duplicate files. File Explorer can sort and search by name and size, Storage Sense and Cleanup recommendations remove temporary files and flag large or unused ones, and PowerShell can compute file hashes - but none of them compares files across folders and drives and tells you which are copies. Finding duplicates on Windows 11 means either a PowerShell script or a dedicated duplicate file finder.
How do I find duplicate files in Windows 11 without installing software?
Use PowerShell. A short pipeline lists every file under the folders you name, groups files by size, hashes the ones that share a size, and prints the groups whose hashes match. It works, and it is exact, but it reads every candidate file in full, offers no preview, no way to choose which copy to keep, and no undo - so it suits a few thousand files in a couple of folders rather than a whole PC. The script is in this guide.
How do I delete all duplicate files in Windows 11 at once?
Mark them first, then process them in one operation. In Duplicate File Detective, SmartMark applies a keep rule to every duplicate group in the report - keep the newest copy, keep the copy in a chosen folder, and so on - and always leaves one file per group unmarked. Deleting the marked files then removes every redundant copy in one pass, to the Recycle Bin, while every original stays where it was.
Is it safe to delete duplicate files in Windows 11?
It is safe for files you put there yourself - photos, documents, music, video, downloads. It is not safe inside Windows, Program Files, or ProgramData, where software depends on a file existing at a particular path even though an identical copy exists elsewhere. Scan your own data, review each group, delete to the Recycle Bin, and consider zipping or moving duplicates the first time through. Is It Safe to Delete Duplicate Files? covers the judgment calls in detail.
Do the same steps work on Windows 10?
Yes. Everything in this guide applies unchanged to Windows 10, and the manual methods behave the same way there. Duplicate File Detective runs on Windows 11, 10, 8, and 7 SP1, and on Windows Server 2012 R2 through 2025.
What about duplicate photos that are not identical files?
Content checksums only match exact copies. A photo that was resized, re-saved, or converted from HEIC to JPEG has entirely different bytes even though the picture is the same, so neither PowerShell nor a checksum scan will pair them. Duplicate File Detective has a separate Duplicate Photos project type that compares the decoded image instead - see the duplicate photo finder guide. Duplicate songs and documents have the same problem and their own matching methods.
Can I scan OneDrive folders for duplicates?
Yes, with one caution. With Files On-Demand enabled, files marked cloud-only exist locally as placeholders, and anything that reads their contents - a hash, a PowerShell script, a duplicate scan - makes OneDrive download them first. Before scanning a OneDrive folder, either mark it Always keep on this device so the files are already local, or leave it out of the search paths until you have dealt with the rest of the PC.