Blog

How to merge two folders on a Mac without losing files

Dragging a folder onto one with the same name can replace it. Hold Option to get Merge, know when Finder won't offer it, and a safe Terminal way.

Hold ⌥ Option while you drag one folder onto the place that already holds a folder with the same name, then click Merge in the dialog. Without Option, Finder offers only Replace, which swaps the whole folder and drops the files that were only in the destination.

Apple’s own guide adds the catch: Merge appears only if one folder contains items that are not in the other. If both folders hold different versions of files with the same names, the only choices are Stop or Replace. That’s the case where people lose files.

1. Merge with Finder (the Option-drag)

  1. Put both folders side by side: open two Finder windows, or use list view.
  2. Hold ⌥ Option, then drag the folder you want to add onto the location that contains the folder with the same name.
  3. In the dialog, click Merge.

Files that exist only in one folder end up together. Do it on a copy first if the folder matters: select it, press ⌘D to duplicate it, and merge the duplicate.

2. When Finder offers no Merge

If both folders contain Budget.xlsx but in two versions, Finder won’t merge. Two ways round it:

Rename one side first. In the folder you’re adding, select everything (⌘A), Control-click, choose Rename, then Add Text with (laptop) after the name. No more name clashes: drag the files in, keep both versions, and delete the old one when you’ve checked.

Move the files, not the folder. Open the folder you’re adding, select everything, drag it into the other folder. Finder asks about each clash: tick Apply to all and choose Keep Both to get Budget 2.xlsx next to Budget.xlsx. Nothing is overwritten.

3. Merge with Terminal, keeping the newer copy

For big folders (two years of photos, a backup and the original), rsync is built into macOS and merges file by file:

rsync -a --update --dry-run -v "/path/to/Folder B/" "/path/to/Folder A/"
  • -a keeps dates and subfolders.
  • --update skips a file when the one already in Folder A is newer.
  • --dry-run -v only lists what would be copied. Read the list, then run the same line without --dry-run.
  • Keep the slash at the end of Folder B/: it means “the contents of Folder B”. Without it, you get Folder A/Folder B.

Type rsync -a --update --dry-run -v then drag Folder B and Folder A into the Terminal window to fill in the paths, and add the slash after the first one.

rsync copies; Folder B stays as it was. Move it to the Trash once you’ve checked Folder A.

Before you merge: three checks

  • Which is newer? In list view, add the Date Modified column (⌘J) and compare the two folders.
  • Is anything syncing? Merging inside iCloud Drive, Dropbox or Google Drive while it syncs can create conflicted copy files. Pause sync or wait until it’s done.
  • Is it backed up? A Time Machine backup taken just before is the real undo.

Where Declutr fits

DeclutrDeclutr doesn’t merge folders. Once the merge is done, it sorts the folder into category folders by file type in one click, and one Undo puts every file back. The sort is free; Pro (one-time $8.99 in the US) adds rules by name, extension, age or size. It needs macOS 13 Ventura or later.

For duplicates left after a merge: how to find duplicate files on a Mac. To give the merged folder a structure: how to organize files on a Mac.

Questions people ask

How do I merge two folders on a Mac?

Hold the Option key and drag one folder onto the place that holds a folder with the same name, then click Merge in the dialog. Finder only offers Merge when one folder contains items the other doesn't.

Why is there no Merge option in Finder?

Finder shows Merge only when you hold Option while dragging, and only when one folder has items the other lacks. If the folders hold different versions of files with the same names, the only choices are Stop or Replace.

Does Replace delete the other folder's files?

Replace swaps the whole destination folder for the one you drag: files that were only in the destination folder are no longer there afterwards. If you're not sure, click Stop and use Option-drag or one of the methods on this page.

Can I merge folders with different names?

Yes: open the second folder, select everything with Command-A, and drag it into the first one. Finder asks about each file whose name already exists.

Declutr runs on your Mac.

Send yourself the link, then open it on your Mac. The App Store page is one click away. Free to download.

Email me the link