You need to compare 2 folders in Windows — maybe a backup against the original, two checkouts of the same project, or last week's export against today's. This guide walks through seven methods, from a 10-second File Explorer trick to scripted PowerShell diffs and one-click GUI sync tools. Pick the one that matches your situation; all of them work on Windows 10 and Windows 11, and most ship with the OS.
When You Need to Compare Two Folders
The phrase "compare 2 folders in Windows" covers several distinct workflows. Knowing which one you are in saves time, because the right tool depends on the answer you actually need.
- Backup verification. Did every file copy across? Were any skipped or corrupted? You need a complete list of every difference, including files that exist in only one location.
- Project sync. You have two working copies of a project — one on your laptop, one on a network share or a USB drive — and need to merge changes from both sides without overwriting good work.
- Deployment check. A release package on the server should match the approved build. Any difference is a red flag.
- Cleanup and dedup. Two folders accumulated overlapping copies of photos or documents. You want to keep one canonical version and delete the duplicates.
- Migration audit. You moved a file share to a new server and want to confirm nothing was lost in transit.
All five scenarios start with the same question — which files differ between FolderA and FolderB? — but they end with different actions. Verification ends in a report; sync ends in copying; cleanup ends in deleting. The tools below are grouped so you can pick by both the comparison style (GUI, CLI, properties) and the follow-up action (just look, or sync and merge).
There are also two physical kinds of difference any tool has to surface:
- Structural differences — a file or subfolder exists in one location but not the other.
- Content differences — the same filename exists on both sides but the contents differ (a newer revision, an edit, or a corruption).
Quick tools (File Explorer properties, file counts) only catch structural differences. Hash-based or content-aware tools catch both. The trade-off is speed: a quick check on a 100 GB folder takes seconds; a full content comparison can take many minutes. Know which one you actually need before reaching for the heaviest tool. If your goal is comparing a single pair of files rather than whole folders, our guide on comparing two Word documents covers content-level diffs in detail.
Method 1: File Explorer Side-by-Side
The fastest visual compare uses nothing but two File Explorer windows snapped to opposite halves of the screen. It catches obvious structural differences in seconds and needs zero installs.
- Open the first folder in File Explorer. Press Win + Left Arrow to snap it to the left half of the screen.
- Press Ctrl + N to open a second File Explorer window, navigate to the second folder, then press Win + Right Arrow to snap it to the right.
- In both windows, switch the view to Details (View → Details). Sort both panes by Name.
- Add the Date modified and Size columns to both panes if they are not visible (right-click any column header to add them).
- Scroll both panes in parallel — Windows 11 supports synchronized scrolling if you press Ctrl + Scroll in one pane.
When to use it. Two folders with under ~50 files, or a quick sanity check before reaching for a more thorough tool. Excellent for "did I forget to copy anything obvious?" moments.
Limitations. You cannot detect files that differ in content but share a name and size. You cannot recurse into subfolders meaningfully. And the visual scan breaks down past a few dozen files. For anything heavier, jump to Method 3 or later.
Method 2: Folder Properties Sanity Check
A 10-second built-in check that tells you whether the two folders are roughly the same shape. Right-click each folder and choose Properties. Windows recursively counts files, subfolders, and total bytes.
If FolderA reports "1,247 files, 38 folders, 142 MB" and FolderB reports the same triple, the chances they hold the same content are high — but not certain. Two folders can have identical file counts and identical byte totals while individual files differ. Treat Properties as a pre-flight check, never as proof.
When to use it. Verifying a backup completed at all, or that the right order of magnitude of files made it across after a copy. A mismatched count is a guaranteed problem; matching counts means "probably fine, but verify with a real diff tool if it matters".
Method 3: Robocopy /L for a Difference List
Robocopy ("Robust File Copy") ships with every supported version of Windows. It lives in
C:\Windows\System32\robocopy.exe and is the standard
Microsoft-recommended utility
for any serious file or folder operation. The /L flag tells Robocopy
to list what it would do without actually doing it — which makes it the fastest
way to compare 2 folders in Windows for differences without installing
anything.
Open Command Prompt or PowerShell and run:
robocopy "C:\FolderA" "C:\FolderB" /L /E /NJH /NJS The flags do the following:
/L— list only; do not copy or modify anything./E— include all subdirectories, including empty ones./NJH— no job header in the output./NJS— no job summary in the output.
Every line Robocopy prints under those flags is a file that exists in FolderA but not in FolderB, or exists in both but is newer/older/different size on the source. Pipe the output to a file for later review:
robocopy "C:\FolderA" "C:\FolderB" /L /E /NJH /NJS > differences.txt Bidirectional check. Robocopy lists what it would copy from source to destination only. To find files that exist in FolderB but not FolderA, run it once in each direction and compare the two output files. The pattern is straightforward and easy to script.
When to use it. Backup verification, deployment audit, any scenario
where you want a definitive, scriptable diff and are comfortable in a terminal. Robocopy
is also the right tool when you eventually want to perform the sync — drop
/L, add /MIR for mirror mode, and Robocopy makes the
destination match the source.
Method 4: PowerShell Compare-Object
PowerShell's Compare-Object cmdlet diffs any two collections of objects —
including the file lists returned by Get-ChildItem. The result is a
side-indicator that tells you which folder each unique item belongs to.
The minimal recipe for a name and size diff:
$a = Get-ChildItem 'C:\FolderA' -Recurse
$b = Get-ChildItem 'C:\FolderB' -Recurse
Compare-Object $a $b -Property Name, Length
Each output row has a SideIndicator column. A <= means the
item lives only in FolderA; => means only in FolderB. Names that appear
on both sides with different lengths show up as two rows.
Content-aware version. Name and size catch most differences but miss edits that preserve length. Swap in file hashes for a byte-true comparison:
$a = Get-ChildItem 'C:\FolderA' -Recurse -File | Get-FileHash
$b = Get-ChildItem 'C:\FolderB' -Recurse -File | Get-FileHash
Compare-Object $a $b -Property Hash, Path Get-FileHash computes SHA-256 by default — slower than name-and-size, but
the result is mathematically certain. Two files with identical hashes are byte-identical;
different hashes mean the content differs even if the size matches.
When to use it. You already write PowerShell, you need the output as structured objects (to pipe into a CSV, email, or scheduled task), or you want hash-true comparison without a third-party tool. PowerShell pairs well with Task Scheduler for recurring verification jobs.
Method 5: WinMerge — Visual Folder Compare
WinMerge is the most popular free GUI folder-compare tool on Windows. It is open-source, released under the GNU General Public License v2, and has been actively maintained since 2003. The folder-compare view shows a tree with every file, color-coded by status (unique to left, unique to right, different, identical), with optional line-level diff in a second pane.
- Download and install WinMerge from
winmerge.org(the installer is signed and includes both 32-bit and 64-bit builds). - Launch WinMerge and choose File → Open.
- Pick FolderA as the 1st File or folder and FolderB as the 2nd.
- Optionally check Include Subfolders for a recursive compare.
- Click Compare. WinMerge enumerates both trees and presents the result as a sortable list.
Double-click any file row to drop into a line-level diff for that file. WinMerge also exposes Copy Left, Copy Right, and Merge actions, so the compare-then-act loop happens inside the same window.
Content compare mode. By default WinMerge compares by date and size, which is fast. Switch Edit → Options → Compare → Folder → Compare method to File contents for a true byte comparison — slower but definitive. The same dialog lets you ignore whitespace, line endings, or case if you are diffing source code.
When to use it. Any visual folder compare; merging code branches or document sets; ad-hoc tasks where you want to see exactly what differs and act on it immediately. WinMerge is the closest Windows-native equivalent of the folder-compare workflow on macOS.
Method 6: FreeFileSync — Compare and Sync in One Step
FreeFileSync is the other major free option, and it leans harder into the sync half of the workflow than WinMerge does. It is open-source, cross-platform, and includes RealTimeSync (a watcher service that triggers sync on file change) and batch jobs that integrate with Task Scheduler.
- Install FreeFileSync from
freefilesync.org. The download is donation-supported; the free version includes every comparison and sync feature. - In the main window, drag FolderA into the left pane and FolderB into the right.
- Pick a compare variant from the gear icon: File time and size (fast), File content (slow, byte-exact), or File size (fastest, weakest).
- Click Compare. The middle column fills with colored arrows: orange for "would be created", red for "would be overwritten", green for "identical".
- If you only wanted to inspect, stop here. If you want to act, pick a sync variant — Two way, Mirror, or Update — and click Synchronize.
When to use it. Anyone who compares the same two folders repeatedly — a daily backup, a working folder mirrored to OneDrive, a project shared across two machines. FreeFileSync's batch jobs and scheduling make recurring compares one-click, which is exactly where Robocopy and PowerShell start to feel like overhead.
Method 7: Beyond Compare — Professional Workflows
Beyond Compare, by Scooter Software, is the long-standing paid option. As of 2026 the Standard edition is $30 (single-platform) and the Pro edition is $60 (cross-platform, with 3-way merge, registry compare, image compare, and FTP/cloud comparison). A 30-day free trial is available from the scootersoftware.com download page.
For everyday folder compare the Pro features matter less than the polish — Beyond Compare's tree view is faster on huge directories than WinMerge or FreeFileSync, its rule editor for filtering by extension or path is more expressive, and its session files let teams share named compare configurations. Worth paying for if folder compare is a daily task; overkill for monthly use.
When to use it. IT and devops teams that run dozens of compares a day, organisations with shared sessions and reusable filter rules, or users who need the cross-platform parity (the same workflow on macOS and Linux).
Which Method Should You Use?
Each method below sits at a different point on the speed / depth / convenience triangle. Pick by the situation, not by what is "best" in the abstract. All seven let you compare 2 folders in Windows for differences; they differ in how much setup, scripting, and follow-up action they require.
| Method | Best for | Built-in? | Content-aware? | Sync action | Free? |
|---|---|---|---|---|---|
| File Explorer side-by-side | Quick visual scan | Yes | No | No | Yes |
| Folder Properties | Sanity check (count + size) | Yes | No | No | Yes |
| Robocopy /L | Scripted diff lists, zero install | Yes | No (name + size) | Yes (drop /L) | Yes |
| PowerShell Compare-Object | Scriptable, hash-true compare | Yes | Yes (with Get-FileHash) | Custom script | Yes |
| WinMerge | Visual folder compare + merge | No (download) | Yes (optional) | Yes (copy left/right) | Yes |
| FreeFileSync | Compare + scheduled sync | No (download) | Yes | Yes (mirror/two-way) | Yes (donation) |
| Beyond Compare | Daily pro workflows, cloud, FTP | No (download) | Yes | Yes (full sync) | No (paid, trial) |
A few rules of thumb. If you need an answer right now, Robocopy /L beats
every GUI by 30 seconds of setup. If you need to look and act, FreeFileSync or
WinMerge wins. If you need to run the compare every night, PowerShell + Task Scheduler
wins. If folder compare is the central activity of your day, Beyond Compare's polish
repays the licence cost quickly.
After You Find Differences: Inspect File Contents
Folder compare tools tell you which files differ. The natural next question is what changed inside those files. That is a single-file diff problem, and the best tool depends on the file type:
- Source code, configs, text. Open both copies in a browser-based diff viewer to see line-by-line changes in colour. Our guide to comparing two files in VS Code covers the editor-native workflow.
- Word documents. Word's built-in Review → Compare produces a redlined merge. The full walkthrough is in compare two Word documents for changes.
- Excel spreadsheets. Use Microsoft's Spreadsheet Compare (bundled with Office Pro Plus) or a dedicated diff — see compare 2 Excel files for differences.
- JSON, YAML, structured data. A normalising diff strips formatting noise. See compare 2 JSON objects online.
- Two raw lists or filename dumps. If your Robocopy output gave you two text lists you want to diff, compare two lists covers that exact case.
Folder compare and file compare are two halves of the same workflow. The folder tool tells you which 5 of 1,247 files changed; the file tool tells you which 12 lines inside each of those 5 files changed. You need both to actually reconstruct what happened.
Frequently Asked Questions
How do I compare 2 folders in Windows without installing anything?
Windows ships with two built-in options. The fastest is Robocopy in /L
(list-only) mode: robocopy C:\FolderA C:\FolderB /L /E /NJH /NJS prints
every file it would copy — which is exactly the set of files that differ or are missing.
PowerShell's Compare-Object cmdlet is the second built-in. Both work on
every supported version of Windows 10 and 11, no download required.
What is the best free tool to compare two folders in Windows side by side?
WinMerge is the most widely recommended free GUI tool — open-source, actively maintained since 2003, with a side-by-side tree view and copy-left / copy-right actions. If you also want one-click sync after comparing, FreeFileSync is the other strong free choice, adding scheduled sync and RealTimeSync.
Can I compare two folders for differences in PowerShell?
Yes — Compare-Object (Get-ChildItem 'C:\FolderA' -Recurse) (Get-ChildItem 'C:\FolderB' -Recurse) -Property Name, Length.
Items prefixed <= live only in FolderA; => only in FolderB.
Swap in Get-FileHash for true content comparison.
How do I compare two folders in Windows 11 and then sync them?
FreeFileSync is the most direct option: Compare → review the colored list → Synchronize
with mirror, update, or two-way direction. WinMerge supports copy-left / copy-right
after compare. From the command line, drop the /L flag from Robocopy and
add /MIR to mirror the source onto the destination.
What is the difference between WinMerge and Beyond Compare?
WinMerge is free, open-source, and Windows-only. Beyond Compare is paid ($30 Standard, $60 Pro as of 2026), cross-platform, and adds 3-way merge, registry compare, image compare, and FTP/cloud comparison. Casual users are well served by WinMerge; teams running daily compares often justify Beyond Compare's polish.
How do I find duplicate files between two folders in Windows?
Use PowerShell with hashes: Get-ChildItem -Recurse 'C:\FolderA','C:\FolderB' | Get-FileHash | Group-Object Hash | Where-Object Count -gt 1.
Files grouped under the same SHA-256 hash are byte-identical regardless of filename.
How do I compare two folders by file content, not just by name and size?
Name and size are a fast filter but miss edits that preserve file length. Use WinMerge's
File contents compare method, FreeFileSync's File content mode, or
PowerShell with Get-FileHash. Hash-based compare is slower but the only
method that guarantees the files are byte-identical.
Does Windows have a built-in folder comparison tool?
Two of them. Robocopy is the modern recommended utility — it lives in
C:\Windows\System32 and the /L flag turns it into a difference
scanner. PowerShell's Compare-Object cmdlet is the other. The older
Windiff.exe GUI no longer ships with Windows 10 or 11 but is still downloadable from
Microsoft's official Windiff utility guide.
Inspect File Contents in Your Browser
Folder compare tells you which files changed. Diff Checker — our free Chrome extension — tells you exactly what changed inside each file. Paste, drop, or upload two text files, code snippets, or DOCX/XLSX documents and get a colour-coded line-by-line diff in your browser. Optional AI summary explains the changes in plain English.
Add Diff Checker to Chrome — Free