keepcalculator

06 Numbers and Powers

Merge Folders on Mac: How to Combine Them

Card No. 06·74434 · Updated · Standard formula, shown below

To merge folders on a Mac, simply hold the Option key while dragging one folder onto another with the same name, then click Merge when prompted. This combines the contents of both folders into one, keeping all files from both locations. This works in the Finder for folders stored on the same drive or different drives.

What Does Merging Folders Mean?

When you drag a folder onto another folder with the same name, the Finder normally asks if you want to replace the existing folder. Replacing deletes the folder you dragged and replaces it with the one you dropped, losing any files that were only in the original. Merging, on the other hand, combines the contents of both folders into a single folder, keeping every file from both. If a file with the same name exists in both folders, the Finder keeps the one from the folder you dragged (the newer one, usually) and discards the older duplicate, but only after asking for confirmation.

How to Merge Folders in the Finder

The most direct method uses the Finder’s built-in merge option, which requires holding the Option key:

  1. Locate the two folders you want to merge. They must have exactly the same name and be in the same parent folder (e.g., both in Documents).
  2. Press and hold the Option key on your keyboard.
  3. While holding Option, drag one folder onto the other. You’ll see a green circle with a plus sign (+) appear.
  4. Release the mouse button, then release the Option key.
  5. A dialog box appears with three choices: Stop, Replace, or Merge. Click Merge.

If you don’t hold Option, you’ll only get Stop and Replace options—no merge. The Option key is the crucial step.

What Happens to Files with the Same Name?

During a merge, if both folders contain a file with the same name (like report.pdf), the Finder will ask you to choose between keeping the one from the folder you dragged or the one already in the destination. You can also keep both by letting the Finder rename the incoming file (e.g., report 2.pdf). If you don’t want to be prompted for every conflict, you can check the box for “Apply to all” before making a choice. Files with unique names are simply moved without any prompt.

Merging Folders in iCloud Drive

If your folders are stored in iCloud Drive, the merge process works the same way, but there’s an extra consideration: iCloud syncs changes across all your devices. When you merge two folders in iCloud Drive, the combined folder will sync to your other Macs, iPhones, and iPads. If you have the same folder open on another device, you might see temporary duplicate files or a brief delay before everything settles. It’s generally safe, but make sure you have a stable internet connection and that iCloud Drive is not paused.

Common Mistakes and Troubleshooting

  • Forgetting the Option key – Without it, you only get Replace, which deletes the folder you dragged. Always hold Option before dragging.
  • Folders with different names – The merge option only appears when the folders have identical names. If they have different names, you’ll need to rename one first, or manually combine the contents by dragging individual files.
  • Merge option grayed out – This can happen if the destination folder is on a read-only volume (like a mounted DMG or a network share without write permission). Make sure you have write access to the destination.
  • Accidental Replace – If you accidentally click Replace, the folder you dragged is deleted and replaced by the destination folder. If you have Time Machine or a backup, you can recover it, but otherwise it’s gone. Always double-check before clicking.

Alternatives to the Finder Method

If you need to merge many folders or prefer a command-line approach, you can use the Terminal. The ditto command is a safe way to merge folders, as it preserves metadata and doesn’t overwrite unless you tell it to. For example:

ditto ~/FolderA ~/FolderB

This copies the contents of FolderA into FolderB, merging them. If a file with the same name exists, ditto will overwrite it without asking, so be careful. To avoid overwriting, you can use rsync with the --ignore-existing flag:

rsync -av --ignore-existing ~/FolderA/ ~/FolderB/

This copies only files that don’t already exist in FolderB. These tools are more powerful but require comfort with the command line.

Safety Tips and Backup Advice

Merging folders is generally safe, but it’s always wise to back up important data before performing any bulk file operation. Time Machine is the built-in backup solution; you can also copy the folders to an external drive. If you’re merging folders that contain many files or are part of an important project, consider making a quick backup first. Also, be aware that merging folders on a network drive or an external drive formatted as FAT32 may behave differently—FAT32 doesn’t support some file permissions, and the merge might not work as expected.

Frequently Asked Questions

Can I merge folders without the Option key?

No, the Finder’s merge feature requires holding the Option key while dragging. Without it, you only get the Replace option, which deletes the folder you dragged. If you can’t use the Option key (e.g., on a laptop with a stuck key), you can use the Terminal method with ditto or rsync.

What happens if I merge two folders with different names?

The Finder won’t offer a merge option for folders with different names. You’ll need to rename one folder to match the other before dragging, or manually combine the contents by selecting all files in one folder and dragging them into the other.

Does merging folders on a Mac work on external drives?

Yes, the merge feature works on any drive that supports the necessary file system features, including external drives formatted as APFS, Mac OS Extended, or exFAT. However, if the drive is formatted as FAT32, some file permissions may not be preserved, and the merge might still work but with limitations.

How do I merge folders in iCloud Drive on a Mac?

Merging in iCloud Drive works the same as local folders. Hold Option, drag one folder onto the other, and click Merge. The merged folder will sync to your other devices. Make sure iCloud Drive is enabled and you have a stable internet connection.

Can I undo a merge?

There is no built-in undo for a merge. Once you merge, the folders are combined, and the original separate folders no longer exist. If you have a backup (like Time Machine), you can restore the original folders from before the merge. Otherwise, you’ll need to manually separate the files if you want to split them again.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →