ThisCalculator

Everyday

How to Find Duplicate Files on Windows 10

Updated · Standard formula, shown below

How to Find Duplicate Files on Windows 10

This guide shows you how to locate duplicate files on Windows 10 without installing extra software. You’ll learn to use built-in tools like File Explorer and PowerShell, plus a few manual checks for photos and documents. By the end, you’ll be able to identify and remove duplicates safely, freeing up disk space and decluttering your folders.

What You’ll Need

  • A Windows 10 PC with administrator access (for some PowerShell commands).
  • Basic familiarity with File Explorer and right-clicking.
  • Optional: a USB drive or external storage to back up files before deleting.

Step-by-Step

  1. Open File Explorer. Press Win + E or click the folder icon in the taskbar.
  2. Navigate to the folder you want to scan. For example, your Pictures or Documents folder. To search an entire drive, select the drive (e.g., C:).
  3. Use the Search box. In the top-right corner, type a common file extension like *.jpg or *.docx. This shows all files of that type in the current folder and subfolders.
  4. Sort by name. Click the “Name” column header to sort alphabetically. Duplicates often appear next to each other, like “IMG_001 (1).jpg” and “IMG_001.jpg”.
  5. Check file size and date. Right-click the column headers and add “Size” and “Date modified” if not visible. Duplicates usually have the same size and date.
  6. Verify duplicates manually. Select two files that look identical, right-click, and choose “Properties”. Compare the “Size” and “Date modified” fields. For images, open both in the Photos app to confirm they are the same.
  7. Use PowerShell for a more thorough scan (optional). Press Win + X and select “Windows PowerShell (Admin)”. Run the following command to list files that share the same name and size in a specific folder (replace C:\YourFolder with your path):
    Get-ChildItem -Path "C:\YourFolder" -Recurse | Group-Object Length | Where-Object { $_.Count -gt 1 } | Select-Object -ExpandProperty Group | Sort-Object FullName
  8. Export the list (optional). To save the results to a text file, add | Out-File -FilePath duplicates.txt to the end of the PowerShell command.
  9. Delete duplicates carefully. Once you’ve confirmed a file is a duplicate, right-click it and select “Delete”. Or select multiple duplicates (hold Ctrl while clicking) and press Delete. Remember to empty the Recycle Bin to actually free space.

Common Mistakes

  • Deleting files that are not truly identical. Two files can have the same name and size but different content (e.g., a photo edited and saved with the same name). Always open or compare file hashes before deleting.
  • Scanning too broad an area. Searching an entire drive with PowerShell can be slow and return many false positives. Start with a specific folder.
  • Ignoring hidden files. Some duplicates might be in hidden folders. In File Explorer, go to “View” > “Options” > “View” and enable “Show hidden files, folders, and drives”.
  • Deleting system files. Never delete files in C:\Windows or Program Files unless you are absolutely certain they are duplicates. These are often essential for Windows to run.

Tips

  • Use the “Date modified” column. If two files have the same name but different dates, the older one is often the original and the newer one a copy.
  • Check the “Path” column. In PowerShell output, duplicates from different folders are easier to spot if you sort by FullName.
  • Back up before deleting. Move duplicates to a temporary folder first, then delete after a week if everything still works.
  • For photos, use the Photos app. It can show similar photos side by side, making it easier to spot duplicates that have different names.
  • Consider a dedicated duplicate finder. If you have thousands of files, a third-party tool can automate the process, but the built-in methods work fine for moderate collections.

Troubleshooting

  • PowerShell command returns nothing. Make sure you typed the path correctly and that it contains files. Also ensure you have permission to read the folder. Run PowerShell as Administrator if needed.
  • Search is too slow. Narrow your search by using a more specific file type (e.g., *.pdf instead of *.*) or scan only a subfolder.
  • Cannot delete a file. The file may be in use by another program. Close all applications and try again. If it’s a system file, do not force delete.
  • Duplicates still appear after deletion. Check if the files are in a different location, like the Recycle Bin or a backup folder. Also, some apps create temporary copies that are not true duplicates.

Frequently Asked Questions

Can I find duplicates without any software?

Yes, you can use File Explorer’s search and sort features, or PowerShell commands, as described above. These are built into Windows 10.

How do I find duplicate photos specifically?

Search for *.jpg, *.png, or *.heic, then sort by name and size. For a visual comparison, open the Photos app and use the “Similar” view (if available) or manually open each pair.

What is the fastest way to find duplicates on an entire drive?

Use PowerShell with the command provided, but be prepared for a long scan time. For even faster results, consider a third-party tool that uses hash comparison.

Is it safe to delete duplicate files?

Generally yes, if you have verified they are identical. Always back up important files first, and never delete system files.

Why do I have so many duplicates?

Common causes include repeated downloads, copying files between folders, syncing services, and software that creates backup copies. Regular cleanups can help.

Can I automate duplicate detection?

Yes, you can create a PowerShell script that runs the grouping command and logs results, but setting up a scheduled task requires some scripting knowledge.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.