How to Find and Delete Duplicate Files (Windows & Mac)
Quick answer
To find duplicate files reliably, compare them by content, not by name. On Windows, PowerShell's Get-FileHash compares files by a content hash, and free apps like dupeGuru do it with a friendly interface. On Mac, dupeGuru works too, and the Photos app finds duplicate photos. Always keep one copy, review the list, and delete to the Recycle Bin or Trash so you can undo mistakes.
Duplicate files are sneaky. You download the same PDF twice, copy a folder to a backup drive, let a cloud service resolve a sync conflict, and suddenly you have three copies of the same thing under three different names. They eat storage, bloat your backups, and clutter every search you run.
The trick to cleaning them up safely is knowing that a real duplicate is defined by its content, not its filename. Here is how to find and remove them on both Windows and Mac without deleting something you actually needed.
Why Duplicate Detection Has to Compare Content
Two files named invoice.pdf and invoice (1).pdf might be identical, or completely different. Two files with totally different names might be exact copies. Matching by filename alone misses both cases.
Proper duplicate finders compare the actual bytes inside each file, usually with a hash. As Microsoft's documentation puts it, a hash "assigns a unique value to the contents of a file," and "if the hash values of two files are identical, the contents of the files are also identical." That is the reliable way to know two files are true duplicates regardless of what they are called.
Find Duplicate Files on Windows
Option 1: PowerShell (built in, free)
Windows has no dedicated duplicate finder app, but it can compare files by content using Get-FileHash. Open PowerShell, then run a command like this to list files in a folder grouped by their hash, showing only the groups that repeat:
Get-ChildItem -Recurse -File | Get-FileHash | Group-Object Hash | Where-Object Count -gt 1
Any group with a count above one contains duplicates. This is exact and free, but it is a manual process and better for a specific folder than your whole drive.
Option 2: dupeGuru (free app)
For a friendlier approach, dupeGuru is a free, open-source duplicate finder for Windows. You point it at folders, it scans by content, and it shows matches you can review and delete in bulk. It has a dedicated picture mode that can even catch similar images, not just exact copies.
Option 3: Clean up as you go
Windows Storage settings can help you spot large and temporary files, which is a good companion step. It will not deduplicate documents for you, but clearing temporary files first means you scan fewer files for duplicates.
Find Duplicate Files on Mac
Option 1: dupeGuru (free app)
dupeGuru is cross-platform, so the same free tool works on macOS. It scans folders by content and groups exact duplicates for review. It is the most reliable free option for general files on a Mac, since Finder has no built-in duplicate finder.
Option 2: The Photos app (for photos)
If your duplicates are mostly images, the Photos app on Mac detects duplicates and offers to merge them, which keeps the highest quality version. This only covers your Photos library, not loose image files elsewhere on the drive.
Option 3: Finder Smart Folders (limited)
Finder Smart Folders can group files by kind, size, or date, which helps you eyeball likely duplicates. They do not compare content, so treat this as a way to narrow things down before deleting, not as a true duplicate finder.
Duplicates hiding under different names?
Filect finds files by what is inside them, so you can track down every scattered copy and version of a document, then clean up with confidence.
Try Filect Free →Delete Duplicates Safely
Whatever tool you use, follow the same simple rules so you never lose something important:
- Keep one copy of each. Good tools let you auto-select all but one file in every group.
- Match by content, not name. This avoids deleting a file that only looks like a duplicate.
- Review before you delete. Scan the list for anything that is actually a different version.
- Delete to Recycle Bin or Trash first. That way you can restore anything removed by mistake before emptying it.
- Back up first if you are cleaning an important drive.
The Deeper Fix: Stop Losing Track of Files
Duplicates are often a symptom of a bigger problem: you could not find the original, so you made or saved another copy. If you can always find a file by describing it, you make far fewer redundant copies in the first place.
That is where Filect helps. It reads the content of your documents and lets you find any file by what it is about, even scans and screenshots through OCR. When you can pull up "the signed lease from March" in seconds, you stop re-downloading and re-saving, and you can also spot the scattered copies and versions of a document to tidy them up. It is not a bulk duplicate remover, but it removes the reason duplicates pile up. For more on keeping files tidy, see our guide to cleaning up a messy desktop.
Comparison of Methods
| Method | Matches by content | Platform | Cost |
|---|---|---|---|
| PowerShell Get-FileHash | Yes | Windows | Free, built in |
| dupeGuru | Yes | Windows and Mac | Free |
| Photos app | Yes, photos only | Mac | Free, built in |
| Finder Smart Folders | No, by attributes | Mac | Free, built in |
The Bottom Line
To clear out duplicate files, use a tool that compares content, not names: Get-FileHash or dupeGuru on Windows, dupeGuru or the Photos app on Mac. Keep one copy, review before deleting, and delete to the Recycle Bin or Trash so mistakes are recoverable. And to stop the pile from rebuilding, make your files easy to find in the first place, so you never save a fourth copy just because you could not locate the first three.
FAQ
How do I find duplicate files for free?
On Windows, use PowerShell's Get-FileHash to compare files by content, or the free app dupeGuru. On Mac, dupeGuru works too, and the Photos app finds duplicate photos. These compare file content, so they catch copies even when names differ.
Does Windows have a built-in duplicate file finder?
Windows has no dedicated duplicate finder app, but you can compare files by content with the built-in Get-FileHash command in PowerShell. If two files return the same hash, their contents are identical. For a friendlier interface, most people use dupeGuru.
Is it safe to delete duplicate files?
Yes, as long as you keep one copy and confirm each is a true duplicate. Match by content hash rather than name, review the list first, and delete to the Recycle Bin or Trash so anything removed by mistake can be restored.
Why do I have so many duplicate files?
They build up from downloading the same file twice, copying folders between drives, cloud sync conflicts, saving versions, and re-importing photos. Copies often get different names, so they are hard to spot by eye, which is why a content-based finder helps.
Filect