duplicates

Find Duplicate Files in Two Folders

You have two folders and a nagging suspicion they overlap. Photos and Photos_backup. The project folder on your desktop and the copy you left on the shared drive. An old archive you’re scared to delete and the current one you actually use. Before you merge them or wipe one, you want a straight answer to one question: what’s the same in both folders? This guide shows two ways to compare two folders and see exactly what repeats — one by content, one by eye — without risking a file in the process.

The reliable way: let content matching line them up#

The trustworthy answer comes from comparing content, not names, and Elegant File Explorer’s Find duplicates can look in more than one folder at once. That’s the trick for a two-folder comparison: point it at both.

Open Find duplicates, click + Add folder and pick the first folder, then + Add folder again for the second. Leave Include subfolders (recursive) on so nested files count too, and run the scan. The tool reads the content of everything in both folders, fingerprints it, and groups files that are byte-for-byte identical — so a file that lives once in folder A and again in folder B lands in the same group even if the two copies have different names. Each copy in a group shows its full path, so you can see at a glance which one is in A and which is in B.

If both folders sit under the same parent — say Photos\2024 and Photos\2024-backup both inside Photos — you can skip adding two folders and just add the parent with recursion on. One scan sweeps everything underneath and finds the overlap the same way.

One honest thing to know: the tool finds all duplicate groups in what you point it at, not only the pairs that straddle your two folders. If folder A happens to contain two copies of the same file on its own, that group shows up too. It isn’t a “files that exist in both folders and nowhere else” filter — it’s an everything-that-repeats report, with every path spelled out so you can tell cross-folder overlaps from within-folder ones. For a clean A-versus-B comparison, that’s usually exactly what you want: the paths do the sorting for you.

Add both foldersScan by contentRead the paths in each groupKeep one, clear the rest

The quick way: two panes, side by side#

Sometimes you don’t need a full scan — you just want to eyeball two folders together. Split the window into two panes, put folder A on the left and folder B on the right, and compare them in one view instead of juggling two stacked windows. It’s fast for a small, obvious overlap, and dragging a keeper from one side to the other is effortless. The whole side-by-side workflow is in the dual-pane file manager guide.

Just be clear about what your eyes can and can’t do. Reading two panes catches copies that share a name or an obvious look; it won’t tell you that IMG_2231.jpg on the left is the same shot as beach.jpg on the right, and it can be fooled by two same-named files that are actually different versions. When it matters that two files are truly identical, the content scan is the one to trust — the panes are for a first, human look.

When it’s more than two folders#

If you’re really consolidating a pile — a drawer of USB sticks, three backup folders from three different years — the same content scan scales up: keep clicking + Add folder and add every location, then let it find the overlaps across all of them at once. That whole “pour everything together and clear what repeats” pipeline has its own walk-through in merge USB drives into one folder.

Deciding which copy stays#

However you found the overlap, removal is deliberately careful and always yours. Every group keeps one copy marked keep this copy that can’t be unchecked, files in system folders are Protected and can’t be selected, and every group arrives marked Review because identical files can belong to different projects. Nothing is pre-selected; you tick what goes and confirm a dialog, choosing Move to Recycle Bin (recoverable) or Delete permanently. The full removal flow — the scan counters, the two delete modes, the safety badges — is in find and remove duplicate files safely. If the copies you’re comparing have drifting names, finding duplicates with different names explains why content matching still catches them.

Frequently asked questions

How do I find files that exist in both folders?

Open Find duplicates, add both folders with + Add folder, keep Include subfolders (recursive) on, and scan. The tool groups files with identical content, and each copy shows its full path — so a file that appears in both folders lands in one group with a path from each, right there for you to compare.

Can I compare two folders on different drives?

Yes. The folders you add can sit on any drives — an internal disk, an external drive, a USB stick — and the scan compares their contents together regardless of where they live. Add one from each drive and run.

Does it show only files that are in both folders?

No — it reports every duplicate group it finds, including copies that repeat within a single folder. It isn’t a strict “only what’s in both” filter. But every copy shows its full path, so telling a cross-folder overlap from a within-folder one is a glance, not a guess.

What if I'm comparing more than two folders?

Add as many as you like — click + Add folder for each location and the scan finds overlaps across all of them at once. For consolidating several drives or backups, see merge USB drives into one folder.

Available now on the Microsoft Store.

Read next