Guide
How to find duplicate files safely (and why name and size are not enough)
Duplicates are an easy way to get space back, and an easy way to lose a file if you go by the wrong clues. The safe rule is simple: delete a file only when you have checked that an identical copy is staying.
By Randeep Singh, who makes Klenso. Written 18 November 2026. You can do all of this by hand; Klenso just does the comparing for you.
Why name and size are not enough
- Same name, different file.
report.docxin two folders can be two different documents. - Same size, different content. Two files can be exactly the same length and still differ, for example a document where only one word was changed.
- Different name, same file.
photo (1).jpgandIMG_2041.jpgmay be identical, and a name search will never connect them. - Same date means little. Copying a file often changes its date, so matching dates do not prove a match.
The only reliable test is the file's content. That is what a checksum (a short fingerprint of the content) measures: if two files have the same fingerprint, they are the same file.
How to check two files yourself
Windows has no built-in tool that finds duplicates by content, but PowerShell can fingerprint files. To compare two files, open PowerShell in their folder and run:
Get-FileHash .\first.zip, .\second.zip
If the Hash column is identical, the files are identical. If it differs by even one character, they are not.
Finding all the duplicates in one folder
This command lists the files that share a fingerprint. It only reads files and deletes nothing. Open PowerShell in the folder you want to search and run:
Get-ChildItem -Recurse -File | 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; "" }
It first groups files by size, which is quick, then fingerprints only the files that share a size, so it does not read every file. Each blank-line-separated block of paths in the result is one set of identical files. On a large folder it can take a while, because it has to read each candidate in full.
One caution: in a OneDrive or other synced folder, reading a file that is "online only" makes Windows download it first. Run this on a folder that is already on your PC, or expect downloads.
Deciding which copy to keep
- Keep the one in a place you chose, such as an organised Documents or Pictures folder, and let go of the ones in Downloads or on the Desktop.
- Check what points at the file. A photo album, a game or a project may refer to one particular path. If you are not sure, leave it.
- Watch for hard links. Two names can point at the very same data on disk. Deleting one of them frees no space, because there was only ever one copy.
- Be careful in synced folders. Deleting a file in a OneDrive, Dropbox or Google Drive folder deletes it everywhere that folder syncs.
Delete in a way you can undo
Delete from File Explorer so the extra copies go to the Recycle Bin, and leave them there for a while before you empty it. Very large files may skip the Recycle Bin and be removed for good, so look at the confirmation before you click.
What Klenso does
Klenso's free scan finds duplicates among files above a size you set. It compares content, not names, and it lists each group so you can see every copy and its size. It removes nothing until you tick items and confirm. The "Tick extra duplicates" button ticks all but one copy in each group and prefers to keep a copy that is not in Downloads or on the Desktop.
Before it removes a copy, Klenso checks again that another copy still exists, has not changed since the scan, is a different file on disk (a hard link does not count) and is identical. It never removes the last remaining copy, and what it removes goes to the Recycle Bin, which Klenso never empties. The full rules are on the what Klenso touches page.
The honest limits
Identical is not the same as unwanted. Two copies of a photo may both be linked from different albums or projects. A scan can tell you the files are the same, but only you know which copy matters. That is why the list is for you to review.