Windows 11 does not include a duplicate file finder, so you have three options: spot obvious copies by hand in File Explorer, use PowerShell to compare file hashes (a reliable content check that takes some typing), or use a dedicated duplicate finder that compares content, groups the copies and helps you remove them safely. Whichever you choose, the rule is the same: compare what is inside the files, not just their names.
Below are all three methods step by step, followed by how to decide which copy to keep and which duplicates you should never remove.
Why file names are not enough
It is tempting to look for files called "report (1).docx" or "IMG_2041 - Copy.jpg" and delete them. That catches a few copies, but it misses most and can mislead you:
- Copies often have different names. A photo imported twice from a phone may be IMG_2041.jpg in one folder and 2025-07-14 09.12.33.jpg in another.
- Different files often share a name. Every camera produces an IMG_0001.jpg eventually. Two files with the same name can be completely different photos.
- Same size is not proof either. Lots of unrelated files happen to share a size, especially small documents.
The only dependable test is comparing content. In practice that means calculating a hash, a short fingerprint of the file's bytes. Identical files always produce identical hashes.
Method 1: Spot duplicates in File Explorer
This works for a single folder where you already suspect copies, such as Downloads or a photo import folder.
- Open the folder in File Explorer.
- Click View > Details so you can see the Size and Date modified columns.
- Click the Size column header to sort by size. Files that are exact copies will sit next to each other with identical sizes.
- Open or preview neighbors with the same size to confirm they really are the same.
- To search a whole folder tree, type
*in the search box first, so Explorer lists files from every subfolder, then sort by size.
File Explorer is fine for a quick tidy, but it does not compare content and gets slow and error-prone across thousands of files.
Method 2: Find true duplicates with PowerShell
PowerShell can hash every file in a folder and show the ones that match. It is built into Windows 11 and only reads files, it does not delete anything.
- Right-click Start and choose Terminal.
- Paste the command below, changing the folder path to the one you want to check:
Get-ChildItem -Path "D:\Photos" -File -Recurse -ErrorAction SilentlyContinue | Group-Object Length | Where-Object Count -gt 1 | ForEach-Object { $_.Group } | Get-FileHash | Group-Object Hash | Where-Object Count -gt 1 | ForEach-Object { $_.Group.Path; "" }
The command groups files by size first, so it only hashes files that could possibly be duplicates, then prints each set of identical files separated by a blank line.
To save the result for review, replace the last part with ForEach-Object { $_.Group } | Select-Object Hash, Path | Export-Csv "$env:USERPROFILE\Desktop\duplicates.csv" -NoTypeInformation and open the CSV in Excel.
Start with one folder, not your whole C drive. Scanning a full drive can take a long time, and system and program folders contain many intentional duplicates that you should leave alone.
PowerShell gives accurate results, but you still have to read the list, decide which copy to keep and delete the others by hand. On a large library that can mean hours of work.
Method 3: Use a duplicate finder
A dedicated tool does the hashing, grouping and selection for you. Drive Sweeper scans one drive or all of them, compares files by content and lists each set of copies with the total space you would recover. It keeps the best copy and picks the rest for removal, with options to keep the newest or oldest copy, and nothing is removed until you approve it.
Two features matter most for duplicates:
- Replace with links. If the same file needs to appear in several folders, Drive Sweeper can replace the extra copies with links, so every folder still works while the data is stored once.
- Undo. Removed files go to a restore area for 30 days, so a wrong choice is a one-click fix rather than a disaster.
It also scans external drives, USB sticks and network folders, which helps if your copies are spread across several disks. See our guide to finding duplicates across multiple drives for that situation.
Comparing the three methods
| File Explorer | PowerShell | Duplicate finder | |
|---|---|---|---|
| Compares content | No | Yes (hash) | Yes |
| Finds renamed copies | Rarely | Yes | Yes |
| Selects copies for you | No | No | Yes |
| Undo after removal | Recycle Bin only | Recycle Bin only | Depends on the tool |
| Best for | One small folder | Checking a folder accurately | Whole drives and large libraries |
Which copy should you keep?
Pick a rule and apply it consistently, otherwise you end up with a library scattered across random folders.
- Keep the copy in your organized location. A photo in Pictures\2025\Holiday is more useful than the same file in Downloads or on the desktop.
- Keep the oldest copy when it is the original import and the others are copies made later.
- Keep the newest copy when files have been edited and saved over time, but check that the contents really are identical first. A content-based scan only matches files that are exactly the same.
- Keep copies that are intentional backups. A duplicate on your backup drive is not waste, it is protection.
Duplicates you should leave alone
Not every duplicate is clutter. Do not remove copies from:
- C:\Windows and Program Files. Programs ship identical DLLs and resources in several folders on purpose.
- AppData, where apps keep their own settings and caches.
- Sync folders such as OneDrive, if the copy is the one being synced.
- Backups, as above.
Focus on your own files: Documents, Pictures, Videos, Music, Downloads, Desktop and any data drives. That is where real duplicates build up, and where removing them is safe. Our article on whether it is safe to delete duplicate files covers the edge cases in more detail.
Do not forget duplicate photos
Photo libraries are the biggest source of duplicates for most people, but many of those "duplicates" are not exact copies. A photo resized for email, a JPEG exported from a HEIC original or three near-identical burst shots all have different content, so a hash comparison will not match them. For those you need a tool that compares how the images look. Our guide to finding duplicate photos on Windows explains how, and Drive Sweeper's photo finder shows similar shots side by side so you can keep the sharpest one.
Start with your largest folders, review each group, and you will often recover more space from duplicates than from every other cleanup step combined.
Frequently asked questions
Does Windows 11 have a built-in duplicate file finder?
No. File Explorer can sort by name and size, and PowerShell can compare file hashes, but Windows has no tool that finds and removes duplicates for you.
Are files with the same name always duplicates?
No. Two files can share a name but have different content, such as two different photos called IMG_0001.jpg. The only reliable test is to compare the content of the files.
Which copy of a duplicate should I keep?
Keep the copy in the folder where you actually look for it, usually the organized library rather than Downloads or the desktop. If dates matter, keep the oldest original or the newest edit consistently.
