How to find duplicate files on Windows

Photos copied from a phone twice, the same download saved three times, a backup folder inside a backup folder. Windows has no tool for finding them, but you do not need to pay for one either.

For Windows 11 and 10 · 6 minute read · Updated 23 November 2026

What counts as a duplicate

Two files are duplicates when their contents are identical, byte for byte. The name does not matter: IMG_0412.jpg and beach (1).jpg can be the same photo, and two files both called report.docx can be different drafts.

That is why matching on name and size alone is risky. A proper check compares what is inside the files, and anything that deletes on a weaker match deserves suspicion.

1. By eye, in File Explorer

  1. Open the folder and switch to View › Details.
  2. Sort by Size. Files with the same size land next to each other.
  3. Search for the leftovers Windows names itself: type (1) or - Copy in the search box.

Good for: one folder with a few dozen files. Weak at: everything else. It does not look across folders, and the same size is a hint, not proof.

2. With PowerShell, by content hash

PowerShell can compute a fingerprint (a hash) of each file. Files with the same hash have the same contents. This script only hashes files that share a size with another file, which saves most of the work:

Get-ChildItem "$HOME\Pictures" -Recurse -File -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; '' }

It prints each set of identical files followed by a blank line, and deletes nothing. Change the folder in the first line to search somewhere else.

Good for: a trustworthy answer with nothing to install. Weak at: large folders, since every candidate is read in full, and at the next step: you still have to decide which copy to keep and remove the others by hand.

3. With a free duplicate finder

SpaceSharp is a free, open source disk space analyzer for Windows with a duplicate finder built in. It compares contents in three passes, by size, then by samples from the file, then by the full contents, so large files that differ are ruled out without being read to the end.

  1. Download SpaceSharp and scan the drive or folder.
  2. Press Ctrl+D, or open Insights and choose Duplicate files.
  3. Pick a set on the left. Its copies are listed on the right with their full folder and date.
  4. Choose Keep the newest or Keep the oldest, or tick the copies to remove yourself, leaving one of each set.
  5. Delete. The copies go to the Recycle Bin, so a mistake can be undone.
The SpaceSharp duplicate finder listing sets of identical files and the space each set wastes
Sets of identical files, with the space you get back by keeping one of each.

Copies inside Windows, program and game folders are marked and can be hidden with one switch. They are usually there on purpose.

Before you delete

  • Leave program folders alone. The same DLL in two program folders is not waste; each program expects its own.
  • Check which copy other things point to. A photo library, a music player or a shortcut may refer to one particular path.
  • Mind cloud folders. Deleting a copy inside OneDrive or Dropbox deletes it on your other devices too.
  • Use the Recycle Bin, and empty it only after a few days without surprises.

Questions

Short answers

Does Windows 11 have a built-in duplicate file finder?

No. Neither Windows 11 nor Windows 10 includes one. You can sort by size in File Explorer, compare file hashes with PowerShell, or use a free tool such as SpaceSharp.

What is the safest way to find duplicate files?

Compare contents, not names. A file hash or a byte-by-byte comparison proves two files are identical. Then delete to the Recycle Bin and keep at least one copy of every set.

Is it safe to delete duplicate files?

For your own documents, photos, music and downloads, yes, once you have confirmed the contents match. Do not remove duplicates inside Windows, Program Files, ProgramData or game folders; programs rely on their own copies.

Are two files with the same name and size duplicates?

Not necessarily. Two different photos from the same camera can have the same size, and two drafts can share a name. Only identical contents make a duplicate.

How do I find duplicate photos on Windows?

The same way as any file: compare contents. That finds exact copies. Photos that were resized, edited or saved in another format are different files and need a tool built for similar images.

Try it on your own drive.

A duplicate finder that compares contents, built into a free disk space analyzer.

v2.10.0 · Windows 10 and 11 · MIT · code-signed · no telemetry