How to Compare Two Folders on a Mac

On this page
Short answer: Finder can't compare two folders. The quickest built-in way is Terminal:
diff -rq folderA folderBlists files that differ or exist on only one side. To preview a sync, runrsync -avnc folderA/ folderB/, which changes nothing. For a visual comparison, use FileMerge (free with Xcode) or a file manager with compare and sync.
You copied a photo library to a backup drive and want to know if everything made it. Or two people edited the same project folder and you need to see what changed. Finder shows one folder per window and has no compare command, so most people drag everything again and hope.
Here are the built-in ways to compare two folders on macOS 26.5, from quickest to most visual, plus the apps that do it with a click.
Can Finder compare two folders?
Not directly. The closest you get is a manual check:
- Open both folders in separate Finder windows, in List view (⌘2).
- Arrange the windows side by side, one on each half of the screen.
- Sort both by Name and scroll in step.
- Press ⌘J and tick Calculate all sizes in each window to compare folder totals.
- Select each folder and press ⌘I to compare the item counts in Get Info.
If the counts and sizes match, the folders probably match. If they don't, you still have to find the difference by eye. For more on sizes, see why Finder shows "--" for folder sizes.
How do I compare two folders in Terminal?
The diff command compares folders file by file, including their contents. Open Terminal from Applications › Utilities, then type:
diff -rq ~/Pictures/Lisbon /Volumes/Backup/Lisbon
Tip: type diff -rq with a trailing space, then drag each folder from Finder into the Terminal window to fill in its path.
-r goes through every subfolder, and -q reports only which files differ, not every changed line. The output looks like this:
Files A/changed.txt and B/changed.txt differ
Only in A: onlyA.txt
We ran this on macOS 26.5. If nothing prints, the folders are identical. Because diff reads every file, it can take a while on large folders or network drives.
How do I preview what a sync would copy?
rsync answers a slightly different question: "what would I need to copy to make B match A?" Add -n and it does a dry run that changes nothing.
rsync -avnc ~/Pictures/Lisbon/ /Volumes/Backup/Lisbon/
-akeeps folders, dates and permissions.-vlists each file.-nis the dry run. Leave it out and rsync actually copies.-ccompares contents with checksums.
The trailing slashes matter: Lisbon/ means "the contents of Lisbon". On macOS 26 the built-in rsync is openrsync. In our test, without -c it missed a file whose contents had changed but whose size and date matched, so keep -c when accuracy matters more than speed.
Is there a visual way to compare folders for free?
Yes, if you install Xcode. Apple's free developer app includes FileMerge, which shows two folders side by side and highlights files that differ. After installing Xcode from the App Store, run:
opendiff ~/Pictures/Lisbon /Volumes/Backup/Lisbon
FileMerge opens with both folders compared. Xcode is a large download, so it's overkill if this is all you need.
Which apps compare folders on a Mac?
Several paid apps do it in a window, as of November 2026:
- Beyond Compare compares and syncs files and folders, and runs on Windows, macOS and Linux.
- Kaleidoscope compares text, images and entire folder trees.
- ForkLift compares two folders and syncs one way or both, and can save a sync to run again.
Dual-pane file managers are a natural fit, since the two folders are already side by side. Our roundup of dual-pane file managers for Mac covers more options.
How Sunroom does it
Sunroom Files has Compare & Sync built into its two panes. Open one folder on each side and compare them by name, date, size or contents. You see what's newer or missing on each side, then sync one way or both.
Replaced files go to the Trash rather than being overwritten, and the whole sync can be undone. That makes it safer for checking a backup on a NAS or network share, where a wrong copy direction can cost you the newer files.

Sunroom runs on macOS 14 Sonoma or later, on Apple silicon Macs, and is in private beta.
Which folder comparison method should I use?
| Method | Cost | Visual | Compares contents | Can sync | Undo |
|---|---|---|---|---|---|
| Finder, side by side | Built in | Yes | No | No | n/a |
diff -rq |
Built in | No | Yes | No | n/a |
rsync -avnc dry run |
Built in | No | Yes, with -c |
Yes, without -n |
None |
FileMerge (opendiff) |
Free with Xcode | Yes | Yes | No | n/a |
| Beyond Compare, Kaleidoscope, ForkLift | Paid | Yes | Yes | Varies by app | Varies by app |
| Sunroom Files Compare & Sync | Sunroom | Yes | Yes | One way or both | Yes, replaced files go to the Trash |
If your comparison turns up the same files in several places, our guide to finding duplicate files on a Mac is the next step. More tips are in our Finder & Files guides.
FAQ
Can Finder compare two folders?
No. Finder has no compare command. You can put two windows side by side in List view, but spotting differences is manual. Use Terminal, FileMerge or a dedicated app instead.
What is the Terminal command to compare two folders on a Mac?
diff -rq folderA folderB lists every file that differs and every file that exists on only one side. It compares file contents, so it can be slow on large folders.
How do I see which files would be copied before syncing two folders?
Run rsync -avnc folderA/ folderB/ in Terminal. The -n flag makes it a dry run that changes nothing, and -c compares file contents rather than just size and date.
Is there a free app to compare folders on a Mac?
FileMerge is free and comes with Xcode. After installing Xcode from the App Store, run opendiff folderA folderB in Terminal or open FileMerge and pick the two folders.
Fix your Mac the way Apple didn't.
Sunroom adds better Files, Calendar, Mail and Music apps, a live Home screen and Ray, an AI agent that asks before it acts. Join the waitlist for the private beta.



