About this tool
Point this at a folder and it walks everything inside, subdirectories included, looking for files that are exact byte-for-byte copies of each other. The trick that makes it fast is refusing to do unnecessary work: files are grouped by size first, and a file whose size is unique across the whole tree cannot be a duplicate of anything, so its contents are never read at all. Only files that share a size get hashed — a streaming SHA-256, computed in chunks, so a 4 GB video never sits in memory. In a typical photo library most files are never hashed; the scan is mostly directory listing.
What counts as a duplicate
Two files are reported as duplicates only when their SHA-256 digests match, which in practice means the contents are identical to the last byte. That is a deliberately narrow definition. This tool does not find photos that are almost the same — the same shot at two resolutions, the same image saved as JPEG and as PNG, two frames taken a second apart. Finding those is perceptual hashing, a different technique with a different failure mode (it guesses), and it is not in this version. Everything reported here is exact, which is what makes it safe to act on mechanically.
Choosing what to keep
Duplicates are shown in groups, with thumbnails for images so you can see what you are deciding about. Within each group you pick the survivor — by hand, or with a rule: keep the oldest, keep the newest, or keep the one with the shortest path, which usually means the copy in its original location rather than the one buried in backup/backup2/misc. Before anything happens you see the exact list of files that will be deleted, and nothing is touched until you confirm it.
Deleted means deleted
Be clear about this before confirming, not after: files deleted here do not go to the recycle bin or the trash. The File System Access API removes them outright, and this tool cannot bring them back — recovery software might salvage something, but that is a gamble, not a plan. The protections are in the flow instead: exact-match-only detection, an explicit review list, per-group keep rules, and a confirmation step. Read the list. It is the last step that can save you.