Duplicate Files in Windows 11: How to Find and Remove Them Safely, With and Without Software

Last reviewed: November 22, 2026. Steps for finding duplicate files in Windows 11 were compared with Microsoft documentation; none was run on a real PC.

Duplicate files in Windows 11 build up quietly: a photo copied twice, a download saved again, a backup folder that was never cleaned. Removing them can free some space, but only if you remove the right ones. This guide shows how to find real duplicates with tools Windows already has, what duplicate finder software can and cannot do, and how to delete copies without damaging anything.
Quick answer
The short version
- A true duplicate has identical content, not just the same name. Check content before you delete.
- Only work inside your own folders (Documents, Pictures, Downloads). Never touch Windows, Program Files, ProgramData, AppData or game folders.
- Back up first, then delete to the Recycle Bin, and empty it later.
- The Microsoft pages checked for this guide describe no built-in duplicate finder. File Explorer sorting can find suspects, and a read-only PowerShell command can confirm exact copies.
- Duplicate finder software is optional. Pick one that previews files and never deletes automatically.
In this guide
What counts as a duplicate file in Windows 11
Not every file with the same name is a copy, and not every copy has the same name. Use this table before you delete anything.
| Type | What it is | Safe to remove? |
|---|---|---|
| Exact copy | Identical content, any name or folder | Usually yes, after you keep one and back up |
| Same name, different content | Two versions of a document | No. Compare them first |
| Similar photos | Burst shots or edits of one picture | Only after you look at them yourself |
| Sync conflict copy | A file a sync service renamed after a clash | Check which version is newer first |
| System or app files | Files that look repeated inside Windows or an app | No. Never delete these |
The Windows folders only look duplicated
Microsoft warns that deleting files from the WinSxS folder may severely damage your system, so that your PC might not boot and make it impossible to update. Microsoft also notes that the folder's real size can differ from what you see, and DISM can report it. See the WinSxS folder explained and leave those folders alone.
Decide if it is really a duplicate
- Is the file inside your own Documents, Pictures, Music, Videos or Downloads?
- No (Windows, Program Files, AppData, a game or app folder): stop. Do not delete.
- Yes: do the two files have the same size and the same content check?
- Yes, identical: keep one, back up, delete the other to the Recycle Bin.
- Only similar: open both and decide yourself. Do not bulk delete.
How much space it can free
It depends on your habits. Our general advice: photo and video libraries, old installers and repeated downloads are where copies often collect, and a tidy PC may have almost none. Treat any promised number from a tool as an estimate and check the real free space afterwards: open File Explorer, select This PC, and read the figure under Devices and drives. Microsoft's free-up-space page gives the same steps for Windows 10. Temporary files and caches are a different job from duplicates; see computer disk cleanup on Windows 11 and how to clear cache in Windows 11. If your drive is full for other reasons, start with how to free up disk space or the C drive full guide.
Safety first
Before you delete a single file
- Back up the folder you plan to clean (see how to back up your PC).
- Work in one folder at a time, never the whole drive.
- Never remove files from Windows, Program Files, ProgramData, AppData or any game, app or library folder.
- Delete to the Recycle Bin first. Empty it only when you are sure.
Microsoft's page on freeing drive space advises that you empty the Recycle Bin after deleting files, to remove them from your device and free up space. If you delete the wrong file, check the Recycle Bin first. Microsoft's Windows File Recovery page describes recovering files deleted from local storage that cannot be restored from the Recycle Bin. It does not cover cloud storage or network shares.
Method 1: Find copies with File Explorer
This is slow, but it needs no software and it shows you each file. It works best for one folder with a few hundred files.
Sort and compare
- Open File Explorer and go to your Downloads, Documents or Pictures folder.
- Select View on the ribbon and choose Details.
- Click the Name column to sort. Copies often end in "(1)" or "- Copy".
- Click the Size column to sort again. Files with exactly the same size are the first suspects.
- Open two suspects and compare them, or compare the Date modified column.
You should see: pairs of files with the same size and a similar name. Same size is not proof, so open them or use Method 2. Column and menu names can vary slightly by Windows version.
If this fails: if no pairs stand out, the folder may simply have no copies. Run Method 2 for an exact check.
Use the search box
Microsoft's File Explorer page says to search from File Explorer Home to find files on your PC and in the cloud. It does not document filter wording, so type a file type such as .jpg in the search box and view the results in Details, then sort by Size. Check the pairs yourself.
Method 2: Compare content with a PowerShell hash check
A hash is a short fingerprint of a file's content. Two files with the same hash are identical, whatever their names. This command only lists matches. It deletes nothing.
Keep it read-only
The command only reads files and lists matches, so do not add a delete step to it. Review the list yourself.
Run it
- Open the Start menu, type PowerShell and open Windows PowerShell normally.
- Paste this command. It checks only your Documents folder.
Get-ChildItem -Path "$env:USERPROFILE\Documents" -Recurse -File | Get-FileHash -ErrorAction SilentlyContinue | Group-Object -Property Hash | Where-Object { $_.Count -gt 1 } | ForEach-Object { $_.Group | Select-Object Hash, Path }
To check another folder, replace Documents with Pictures or Downloads. Large folders can take a while, because every file is read.
How the command works
Microsoft's Get-ChildItem page says the -Force parameter is needed to get hidden or system files, so they are skipped by default. Get-FileHash uses SHA256 unless you choose another algorithm, and accepts files piped in. Group-Object groups objects that share a property value. The Where-Object part keeps only groups with more than one file.
How to read your result
- Nothing prints: no exact copies in that folder. You are done.
- Rows share the same Hash: those files are identical. Keep one and consider removing the others.
- Fewer matches than expected: the command skips errors silently, so locked or unreadable files may be missing from the list. Close other programs and run it again.
You should see: either nothing, or groups of rows that share one Hash value. Output layout may differ slightly.
If this fails: if the command is rejected, check that you typed it exactly and that the folder exists. On a managed work PC, scripts may be limited. In that case use Method 1.
Method 3: Photos and OneDrive copies
Phone backups, cloud sync and manual copies often produce the same photo in several places. Microsoft's OneDrive Files On-Demand page says that changing a file to online-only does not delete it from OneDrive, and that online-only files do not take up space on your device.
- Prefer Free up space (right-click the file in File Explorer) for files you want to keep in OneDrive. It is different from deleting.
- Microsoft says that deleting an online-only file deletes it from your OneDrive on all devices. Check which files are online-only before you delete anything in a synced folder. If a PC cleaner is involved, see how to use one with OneDrive without deleting cloud files.
- Microsoft says deleted OneDrive files can be restored from the OneDrive recycle bin on the web for up to 30 days for a personal account.
- If OneDrive shows conflict copies, see how to fix OneDrive not syncing.
You should see: online-only files marked with a blue cloud icon in File Explorer. Files kept on the device show a green check.
If this fails: if Free up space is not in the menu, the file may not be inside your OneDrive folder. Check its location in File Explorer.
We could not confirm how the Windows Photos app treats duplicates, so this guide does not give steps for it.
Duplicate finder software
The Microsoft pages checked for this guide describe no built-in duplicate finder for Windows 11. Third-party tools fill that gap. This guide names no product, because choosing one needs the maker's own facts and your own checks. It explains the types and what to look for instead. For how these tools compare with Storage Sense and Disk Cleanup, see PC cleaner vs Storage Sense vs Disk Cleanup. To compare cleaners with doing the same work by hand, see PC cleaner vs manual cleanup on Windows 11.
Types of duplicate finders
| Type | How it works | Watch out for |
|---|---|---|
| Hash-based | Compares file content, so matches are exact | Can be slow on large drives |
| Name and size | Matches by name, size or date | Can flag different files as the same |
| Similar-image | Looks for photos that look alike | Needs your own review of every pair |
| Cloud or library tool | Works inside one photo or storage service | Only sees that service's files |
Free or paid
Our general advice: free tools often cover exact-match scans. Paid tools may add similar-image search or scheduled scans. A price does not make a tool safer, and free does not make it risky. What matters is how the tool behaves. For a comparison with Windows' own Disk Cleanup, see PC disk cleaner vs Windows Disk Cleanup. For the free versus paid question for cleaners in general, see free PC cleaner for Windows 11.
What a safe tool does (our general advice)
- Shows a preview of both files before any delete.
- Sends deleted files to the Recycle Bin, not straight to permanent deletion.
- Lets you exclude folders, especially Windows and Program Files.
- Never auto-selects and deletes for you.
- Works offline and does not bundle other software.
Red flags (our general advice)
- A scary "thousands of problems" scan result that asks you to pay.
- A tool that scans and wants to delete system folders.
- Extra programs, toolbars or browser changes in the installer.
- A download from anywhere except the maker's own website.
For a longer safety check, read PC cleaner software: a 10-point safety checklist and unsafe system cleanup software. For tools that clean in general, see system cleanup software for Windows 11.
A safe workflow
- Back up the folder you will clean.
- Pick one folder such as Pictures or Downloads.
- Find exact copies with Method 1, 2 or a tool.
- Review each pair and keep the original.
- Delete the copy to the Recycle Bin, then check that nothing broke.
You should see: the copy gone from its folder, and the original still opening normally. If this fails: if something no longer opens, restore the deleted copy from the Recycle Bin and check again.
Keep the older, original file, or the one in the folder you actually use. Wait a few days before you empty the Recycle Bin. Storage Sense can also empty the Recycle Bin for you; if it is not working, see Storage Sense not working on Windows 11. Our general advice: if you use backup software, the next backup may reflect the cleanup. To repeat this on a schedule, see how to set up a PC cleanup schedule on Windows 11. If the drive keeps filling up, see why the C drive keeps filling up, and for temporary files that will not clear, see temporary files not deleting in Windows 11. If you see disk errors, see how to check hard drive and SSD health.
What not to delete
- Anything in Windows, Program Files, ProgramData, AppData or a game or app folder.
- Files inside a photo library or sync folder that an app manages. Use the app instead.
- Project folders where two copies are two versions.
- Game saves, even if they look repeated.
If you are cleaning leftovers from uninstalled programs, see AppData and ProgramData explained and how to uninstall programs completely. Old Windows files, such as Windows.old, are not duplicates in this sense; see how to delete Windows.old on Windows 11 before you remove anything.
What cleanup software cannot do
Our general advice: a duplicate finder removes copies of files you made. It does not speed up Windows, repair errors or protect you from malware. Clearing duplicates frees space, nothing more, and registry cleaners do not repair Windows either; see registry cleaner for Windows 11. If your PC is slow or has problems, a cleaner is not the cure. See what a PC cleaner really does and PC optimization software. If a program has already caused trouble, see how to remove malware.
FAQ
Basics
Does Windows 11 have a built-in duplicate file finder?
Not that the Microsoft pages checked for this guide describe. You can sort in File Explorer, use a read-only PowerShell command, or use third-party software.
Is it safe to delete duplicate files?
It is safe for identical copies in your own folders, after a backup. It is not safe for system, app or game files.
Will deleting duplicates make my PC faster?
Not by itself. It frees space, which may help if your drive is nearly full.
Can two files with different names be duplicates?
Yes. If the content is identical, the hash is identical, whatever the name.
Tools and cleanup
Is the PowerShell command safe?
It only lists files and reads them. It does not delete or change anything.
Should I pay for duplicate finder software?
Not necessarily. Compare behaviour, not price: previews, Recycle Bin delete, exclusions and no bundled software.
What about duplicate photos in OneDrive?
Check your sync settings first. Deleting an online-only file in a synced folder removes it from your OneDrive on all devices.
What if I deleted the wrong file?
Open the Recycle Bin and restore it. If it is gone, see Microsoft's Windows File Recovery page, which covers local drives only.
More help
For more cleanup and repair guides, see the PC repair guides or try the Repair Assistant.
How this guide was checked
The PowerShell parts were checked against Microsoft Learn pages for Get-ChildItem, Get-FileHash and Group-Object. Recycle Bin and free-space advice follows Microsoft Support's Free up drive space page. OneDrive points follow Microsoft Support's Files On-Demand page, including the Free up space menu name. The File Explorer search advice is general, because Microsoft's page does not document filter wording. Microsoft's pages do not confirm how the Photos app handles duplicates, so those parts are left out. Deletion behaviour is described only for online-only OneDrive files. No third-party product was tested.
Sources
- Microsoft Learn: Get-FileHash
- Microsoft Learn: Group-Object
- Microsoft Learn: Get-ChildItem
- Microsoft Support: File Explorer in Windows
- Microsoft Support: Free up drive space in Windows
- Microsoft Support: OneDrive Files On-Demand
- Microsoft Support: Windows File Recovery
- Microsoft Learn: Clean up the WinSxS folder