Windows 11 · Windows 10 or Windows 11

Find and Remove Duplicate Files Safely on Windows

Source-checked About 10 minutes

Answer

Start in one personal folder such as Downloads or Pictures. Files with the same name or size are only possible duplicates. To confirm two files really contain the same data, compare their SHA256 values with Windows PowerShell's Get-FileHash command. Keep one verified copy, move only the extra copy to the Recycle Bin, and open the retained file before emptying the bin.

Guide steps8 steps
  1. Start with one personal folder
  2. Group possible duplicates
  3. Copy each full file path
  4. Calculate the first file hash
  5. Compare the second file
  6. Choose the copy to keep
  7. Use the Recycle Bin
  8. Legacy sponsored link (not part of this fix)
  9. If it still does not work

Start with one personal folder

Back up irreplaceable files, then open Downloads, Documents, Pictures, or another personal folder. Do not run bulk cleanup inside Windows, Program Files, AppData, a backup, or a cloud-sync system folder.

Group possible duplicates

In File Explorer, sort by Name and then Size. A matching name or size helps you find candidates, but it does not prove that the contents are identical.

Copy each full file path

Hold Shift, right-click the first file, and choose Copy as path. Repeat for the second file. Keep the quotation marks around paths that contain spaces.

Calculate the first file hash

Open Windows PowerShell or Terminal and enter Get-FileHash followed by the first quoted path. PowerShell uses SHA256 by default and shows a long value labelled Hash.

Compare the second file

Run the same command with the second path. Treat the files as identical only when both the Algorithm and the complete Hash values match. Similar photos with different edits should produce different hashes.

Choose the copy to keep

Open both confirmed matches and keep the copy in the intended folder with the useful name and date. Check whether an app, project, or cloud folder expects that location.

Use the Recycle Bin

Move only the confirmed extra copy to the Recycle Bin. Open the retained copy again and keep the bin unchanged until you are certain the file and its backup are usable.

Legacy sponsored link (not part of this fix)

The built-in Windows comparison above does not require a paid duplicate-file program. These sponsor links are kept separately from the instructions; Tech How may earn a commission at no extra cost to you.

Video walkthrough

If it does not work

  • If Get-FileHash says the path does not exist, use Copy as path again and paste the complete quoted path after the command.
  • If the hashes differ, keep both files until you compare their contents; different hashes mean the files are not exact duplicates.
Sources and verification

Checked against official documentation on . Scope: Windows 10 or Windows 11.

The current written steps follow the linked company documentation. The preserved video may show older menus.

Continue with

Browse more Windows 11 tutorials