Skip to main content
Mudry
Guides

How to find and delete duplicate files on Windows without breaking anything

Duplicate files waste real disk space, and deleting the wrong ones breaks programs. Here is how to find them with built-in tools, and the rules that keep the cleanup safe.

Mudry Team4 min read

Duplicate files accumulate quietly: the same photo imported twice, invoice (3).pdf, an installer downloaded whenever you needed it. On a well-used drive they routinely account for tens of gigabytes.

They are also the easiest cleanup to get badly wrong. Windows has no built-in duplicate finder, most third-party ones will happily delete files your programs need, and PowerShell deletion skips the Recycle Bin entirely.

Here is how to do it without causing a problem larger than the one you started with.

Where duplicates actually live

Restrict yourself to folders where you put things:

  • Downloads
  • Pictures
  • Documents
  • Desktop
  • Any archive or backup folder you made yourself

That covers essentially all recoverable space, with essentially none of the risk.

Finding them without installing anything

File Explorer, by size

The fastest no-install approach. Open the folder, View → Details, click Size, and switch on Search → All subfolders.

Identical files have identical sizes. Scanning down the size column, groups of matching numbers are your candidates.

This finds real duplicates but is manual and gives false positives — two different files can happen to be the same size.

PowerShell, by hash

This is the accurate method. A hash is a fingerprint of the file's contents, so it does not care what the file is called.

Get-ChildItem -Path "C:\Users\You\Downloads" -Recurse -File |
  Get-FileHash -Algorithm SHA256 |
  Group-Object -Property Hash |
  Where-Object { $_.Count -gt 1 } |
  ForEach-Object { $_.Group | Select-Object Path, Hash }

This lists duplicates. It deletes nothing, which is deliberate — read the output before acting on it.

The rules for deleting safely

The "keep one" rule sounds obvious and is exactly what goes wrong. Tools that let you select every result in a group make it possible to delete all copies of a file in a single click, and people do it, usually while moving fast through a long list.

Which copy to keep

When you have two identical files in different places, keep the one:

  • In the folder where it logically belongs, not the one in Downloads
  • With the more meaningful name — Invoice-2025-03.pdf over invoice (3).pdf
  • That other things might link to, if either is referenced by a project

Contents are identical by definition, so this is purely about which location and name you would rather live with.

Stopping them accumulating

Most duplicates come from the same source: downloading the same thing repeatedly because the first copy got lost in a folder with four thousand files in it.

Fix the folder and the duplicates largely stop appearing.

Part of a wider system for organizing files on Windows.

Was this useful?

Quick File Organizer

Folders that organize themselves, by your rules. Free, no account.

Get Quick File Organizer from the Microsoft Store (opens in a new tab)

Keep reading

Know when the next app ships

2 more Windows utilities are in development. One short email when each one is ready — nothing else.

Product releases only — roughly once a month. Unsubscribe any time.