How to compare two folders on Windows and Mac
30 November 2026
To compare two folders, use a tool that lists the files that are only in one of them and the files that differ, without copying anything. On Windows, robocopy with /L does it with nothing to install, and the free WinMerge shows both folders side by side; on a Mac, diff -rq in Terminal lists every difference.
Before you trust the list, check how the tool decides that a file has changed.
What counts as different
- Where it is. Almost every tool pairs files by folder and name, so a file renamed or moved since shows up twice: missing from one folder and extra in the other.
- Size and date. Robocopy, FreeFileSync and rsync call a file changed when its size or modified date differs. That's quick, but a damaged copy with the right size and date looks fine.
- Contents. diff, WinMerge and FreeFileSync's content mode read every byte: the only sure check, and slow.
Dates have two quirks. Many USB sticks and memory cards use FAT32, which keeps times to the nearest 2 seconds, so an exact copy can look a second newer. FAT also stores local time where Windows' NTFS drives store UTC, so after the clocks go forward or back a copy can look an hour out (Microsoft on file times).
1. File Explorer or Finder, by eye
Good for: a handful of files.
Open the two folders side by side and sort both by name. For totals, right-click each folder and choose Properties on Windows, or File > Get Info on a Mac. If the number of files or the size differs, something is missing or different. Compare Size, not Size on disk, which varies between drives.
Limits: matching totals can still hide a changed file.
2. Robocopy's list-only mode (Windows)
Good for: a quick check by name, size and date, with nothing to install.
In PowerShell or Command Prompt, with the first folder first:
robocopy "C:\Users\Sam\Documents" "E:\Backup\Documents" /L /E /FFT /DST /NJH /NJS /NP /NS /FP
/L lists files and changes nothing. /E includes subfolders, /FFT allows for FAT's 2-second times and /DST for the clocks changing; the rest trim the output to one line per file (Robocopy reference). New File and New Dir are only in the first folder, *EXTRA File and *EXTRA Dir only in the second, and Newer, Older and Changed are in both with a different size or date.
Limits: it never opens a file, so when we tried it on two files of the same size with different contents and dates exactly an hour apart, it didn't list them. Never add /MIR or /PURGE, which delete files from the second folder.
3. WinMerge (Windows)
Good for: seeing both folders side by side, and comparing contents.
WinMerge 2.16.60.2 is free and open source. Choose File > Open, put one folder in the first box and the other in the second, and start the comparison. Subfolders are included by default, and each file is shown as on one side only, identical or different.
It compares contents by default. In its options, under Compare > Folder, Compare method offers Binary Contents, which suits backups, and quicker ones such as Modified Date and Size (manual).
4. FreeFileSync (Windows, Mac and Linux)
Good for: the same app on every computer, with settings for both date quirks.
FreeFileSync 14.13 is open source. Its FAQ says the free version is for private individuals; businesses need the Business Edition, at €20 per device. Choose a folder for each side and click Compare to list every file that's on one side only, newer or different. Don't click Synchronize, which copies and can delete.
Its comparison settings are File time and size, File content and File size. Times up to 2 seconds apart already count as the same, and you can enter a one-hour time shift to ignore.
5. PowerShell's Compare-Object (Windows)
Good for: a list of names, if you avoid the traps.
Many guides suggest Compare-Object (Get-ChildItem A -Recurse) (Get-ChildItem B -Recurse). In Windows PowerShell 5.1, the version built into Windows, that compares bare file names: when we tried it, a file in a different subfolder counted as present, and a changed file wasn't listed. PowerShell 7 compares full paths instead, so every file looks different. Compare each file's path inside its folder:
$a = 'C:\Users\Sam\Documents'; $b = 'E:\Backup\Documents'
Compare-Object @(Get-ChildItem -LiteralPath $a -Recurse -File -Name) @(Get-ChildItem -LiteralPath $b -Recurse -File -Name)
<= marks files only in the first folder and => files only in the second (Compare-Object reference). The @( ) stops an empty folder causing an error, and hidden files are skipped unless you add -Force to both. For contents, see the hash check in how to find files that are in a folder but not its backup.
6. diff and rsync on a Mac
Good for: a thorough check (diff) or a quick one (rsync).
In Terminal, diff compares contents, in both directions:
diff -rq -x .DS_Store ~/Documents /Volumes/Backup/Documents
-r goes into subfolders, -q names the files that differ rather than showing how, and -x .DS_Store skips Finder's hidden files. "Only in" lines are on one side only; "Files ... differ" lines have different contents. It reads every file, so it's slow on large folders.
For a quick size and date check, rsync with -n (--dry-run) lists what it would copy into the second folder, and copies nothing:
rsync -avn --modify-window=1 ~/Documents/ /Volumes/Backup/Documents/
Keep the slash after each folder. --modify-window=1 lets times differ by a second, for FAT drives; adding -c compares contents instead. It doesn't list files only in the second folder, and never add --delete, which removes them.
When a tool is quicker
All of these match files by name and folder, so anything renamed or reorganised looks missing. Compare Folders works in your browser with nothing to install.
Choose the two folders. Files are matched by where they are, then by their contents, so a file renamed or moved since shows as moved, not as missing. The quick comparison reads files only when their dates differ; the thorough one reads every file. By default, dates up to 2 seconds or exactly an hour apart count as the same; you can turn either off. Download the report as a spreadsheet.
In Chrome or Edge on a computer, it can also copy what's missing into the second folder, checking each copy and replacing nothing. Firefox and Safari compare but can't copy. Your files never leave your computer. Comparing is free for any folders; the free version copies up to 25 files at a time, and Pro is £15 once and copies any number. You can try it with a sample folder first.
Quick answers
Can File Explorer compare two folders? Not directly. You can compare their properties, but for a list of differences use Robocopy, WinMerge or FreeFileSync.
Why does every file show as changed? Usually the dates: FAT32 drives round times to 2 seconds, and after the clocks change their times can look an hour out on Windows. Use Robocopy's /FFT and /DST, FreeFileSync's time shift, or a comparison by contents.