How to merge two folders on a Mac without losing files
Merge two folders on a Mac with Finder's hidden Option-drag, why the Merge button sometimes doesn't appear, and how to merge without replacing files.

In short
- Finder merges two folders with the same name when you hold Option and drag one onto the place that holds the other, then click Merge.
- Finder offers Merge only when one folder has items the other lacks. When the same file name has different versions, Apple says the only choices are Stop or Replace.
- To keep every file, preview first:
rsyncin Terminal, or a file manager whose merge shows a count before anything changes.
To merge two folders on a Mac, give them the same name, hold the Option key, drag one folder to the location that contains the other, and click Merge in the dialog. Finder then combines their contents into one folder. The Merge button appears only when one folder holds items the other doesn't, and it gives you no preview, so read the checks below before you merge folders that matter. Every Apple step here is from the Mac User Guide for macOS 27, checked on 30 November 2026.
How to merge two folders in Finder
Finder's merge is hidden behind the Option key. Apple's Mac User Guide puts it under "Merge two folders with the same name": "If you have two folders with identical names at two different locations, you can merge them into a single folder" (Organize files in folders on Mac).
- Make sure both folders have exactly the same name, for example both called Projects. Rename one first if they differ.
- Open the place that holds the folder you want to keep, and another Finder window with the second folder.
- Press and hold Option, then drag the second folder to the location that contains the folder with the same name.
- In the dialog that appears, click Merge.
Holding Option makes the drag a copy, so the folder you dragged stays where it was. Delete it yourself once you have checked the result.
Why doesn't Finder show the Merge button?
Finder shows Merge only in one case. Apple's guide says: "The Merge option appears only if one of the folders contains items that are not in the other folder." It adds: "If the folders contain different versions of identically named files, the only options are Stop or Replace."
| What the two folders hold | What Finder offers when you Option-drag |
|---|---|
| One folder has items the other doesn't | Merge, Stop, Replace |
| The same file names, with different versions | Stop or Replace only |
| You drag without holding Option | The usual name clash dialog (Keep Both, Stop, Replace) |
Source: Apple, Organize files in folders on Mac (macOS 27), checked 30 November 2026. The last row is what Finder shows for an ordinary name clash.
Replace swaps the whole folder: the folder already there is replaced by the one you drag, so files that existed only in the old folder are no longer in that place. If you are not sure which case you have, stop and compare the folders first (see how to compare two folders on a Mac).
Merge folders in Terminal without replacing files
Terminal gives you two built-in tools that merge folders, and they treat files with the same name in opposite ways. Run a dry run first and read the list before you copy anything.
| Command | Files with the same name | Preview first |
|---|---|---|
ditto Source Destination | Overwritten by the source copy | No dry run |
rsync -a --ignore-existing Source/ Destination/ | Left as they are; only new files are copied | Add -n (dry run) and -v |
rsync -a -u Source/ Destination/ | Replaced only when the destination copy is not newer | Add -n and -v |
From the manual pages on macOS 27.0 (man ditto, man rsync), checked 30 November 2026. On macOS 27, rsync is openrsync.
The ditto manual says: "If the destination directory already exists then the source directories are merged with the previous contents of the destination," and also that "ditto overwrites existing files". That is fine for a backup copy and risky for two folders that were both edited.
For a merge that never overwrites, use rsync with --ignore-existing. Keep the trailing slash on the source, or rsync puts the source folder inside the destination:
- Preview:
rsync -avn --ignore-existing ~/Old/Projects/ ~/Projects/. Each line is a file that would be copied; lines that say "Skip existing" would be left alone. - If the list looks right, run it again without
n:rsync -av --ignore-existing ~/Old/Projects/ ~/Projects/. - Files skipped in step 1 still exist in both folders with different contents. Open them and decide by hand, or rename one copy.
Like Finder's Option-drag, rsync copies, so the source folder stays. Delete it only after you have checked the merged folder.
Before you merge folders that matter
- Back up first. A Time Machine backup or a copy on another disk is the only undo for a merge that replaced files.
- Download cloud files. In iCloud Drive, Google Drive or Dropbox, files that are only in the cloud may not be copied as you expect. Download them, or merge inside the provider's own app.
- Check case. On most Mac disks, Report.pdf and report.pdf count as the same name.
- Compare when unsure. If you don't know which copy is newer, a folder comparison tells you before anything moves.
Merging folders in FileOctopus
FileOctopus is our app. It works like Finder, and when a folder you copy or move meets a folder with the same name, the clash sheet offers Merge… without the Option key. Merge is in the Free plan.
- A preview first. Merge counts what would happen before anything changes: how many items are new, how many have the same name as an item already there, and how many are already there with the same contents (those are skipped).
- You choose what happens to same-name items. Keep both (the default; the incoming item gets a name such as "Report 2.pdf"), Skip, or Keep the newer one, where the older file goes to the Trash, never deleted.
- Undo. Edit ▸ Undo after a copied merge moves the items it added to the Trash. The preview tells you when Undo won't be available, after a merge that moved items or sent older items to the Trash.
- Safe moves. When you move a folder with Merge, each item leaves its old place only after it is safely in the new one; anything skipped stays in the original folder, and the outcome says so.
Keep in mind
- Folders in iCloud Drive, other cloud storage or sync folders in your home folder (Dropbox, OneDrive, Box) aren't merged, and items that aren't downloaded are left as they are.
- Packages such as apps, and links, are kept whole, not merged.
- On some network servers that change a file's ID when it is renamed, folder Merge is refused, with the reason (limits page).
The steps are in the file operations guide and the merge tip.
Questions people ask
How do I merge folders on a Mac without replacing files?
Finder's Merge doesn't offer that choice: when the same file name has different versions, Apple says the only options are Stop or Replace. Use rsync -av --ignore-existing Source/ Destination/ in Terminal (preview with -n first), or a file manager whose merge has a Keep both or Skip choice.
Can Finder merge two folders with different names?
No. Finder's merge works only on folders with identical names. Rename one folder to match the other, then Option-drag it to the location that holds the other one.
Can I undo a merge in Finder?
Because the Option-drag copies, the folder you dragged is still in its original place. Files that a Replace removed from the destination come back only from a backup, so make one first.
How do I see what is different before merging?
In Terminal, diff -rq FolderA FolderB lists the files that are only in one folder and the files that differ. Our guide to comparing two folders on a Mac covers that and the app options.
Want a merge that shows a preview and keeps both copies by default? Download FileOctopus; the Free plan has no time limit and includes folder Merge. To work with the two folders side by side first, see two folders side by side on a Mac.
Sources
Checked on 30 November 2026: Apple Support, Organize files in folders on Mac (macOS 27); the ditto, rsync (openrsync) and diff manual pages on macOS 27.0, with the commands above run on throwaway test folders. FileOctopus facts are from our file operations guide and limits page. The cover shows the Finder and Terminal icons from macOS 27.0.


