How to Merge Two Folders with the Same Name on Mac
Merging two folders with the same name on a Mac lets you combine their contents into one folder, keeping all files and avoiding duplicates. This guide shows you the built-in method using Finder, plus what to do when the merge option isn’t available. You don’t need any extra software—just your Mac and the two folders.
What You’ll Need
- A Mac running macOS (any recent version, including Sonoma or Ventura).
- The two folders you want to merge, both with the exact same name.
- Enough free disk space to hold the combined contents.
Step-by-Step
- Locate the two folders. Find both folders in Finder. They must have the same name, but they can be in different parent folders (for example, one on your Desktop and one in Documents).
- Copy the first folder. Right-click (or Control-click) the folder you want to keep as the base and select Copy (or press Command+C). This copies the folder itself, not just its contents.
- Navigate to the location of the second folder. Go to the folder that contains the second folder you want to merge. For instance, if the second folder is in Documents, open Documents.
- Paste with merge. Press and hold the Option key, then go to the Edit menu and choose Merge Folder. Alternatively, hold Option and right-click in the folder window, then select Merge Folder. If you don’t hold Option, you’ll see “Paste” instead, which would replace the existing folder.
- Authenticate if prompted. If the folders are in protected areas (like System folders), you may need to enter your admin password. Enter it and click OK.
- Confirm the merge. A dialog will appear asking if you want to merge the folder. Click Merge. The contents of the pasted folder will be added to the existing folder. If there are files with the same name, macOS will ask whether to keep both, replace, or skip—choose what you prefer.
- Check the result. Open the merged folder to verify that all files are present and that no data was lost.
Common Mistakes
- Not holding Option: The most common error is pressing Command+V (Paste) without holding Option. This replaces the existing folder instead of merging, potentially deleting the original contents.
- Using drag-and-drop: Dragging one folder onto another with the same name will replace it, not merge it, unless you hold Option and click “Merge” in the dialog that appears. Many users accidentally replace folders this way.
- Merging folders with different names: The merge option only appears when the folder names are exactly identical. If they differ, you’ll get a “Paste” or “Replace” option instead.
- Assuming subfolders merge automatically: The merge does combine subfolders, but if there are name conflicts within subfolders, you’ll be prompted for each one. Don’t click “Skip” for all unless you’re sure you don’t need those files.
Tips
- Use a backup: Before merging important folders, copy them to an external drive or use Time Machine. Merging is safe, but a backup ensures you can recover if something goes wrong.
- Merge with keyboard shortcut: After copying the first folder, you can also hold Option and press Command+V to merge directly. This is quicker than using the menu.
- Handle duplicate files wisely: When prompted about a file that exists in both folders, choose “Keep Both” to preserve both versions—macOS will append “copy” to the file name. This is safer than replacing, especially if you’re not sure which version is newer.
- Use Terminal if you’re comfortable: The
dittocommand can merge folders:ditto /path/to/folder1 /path/to/folder2. This copies folder1’s contents into folder2, merging subfolders and keeping both files when names conflict (it appends numbers). This is a more advanced option but gives you more control.
Troubleshooting
- “Merge Folder” is grayed out: This happens when you haven’t copied a folder first. Make sure you copied the folder (Command+C) before trying to paste. Also, the destination must be a folder that contains a folder with the same name.
- You see “Paste” instead of “Merge Folder”: You’re not holding the Option key. Hold Option and look at the Edit menu again—it should change to “Merge Folder”.
- Permission errors: If you get a “The operation can’t be completed because you don’t have permission” message, the folder may be locked or in a protected location. Right-click the folder, select Get Info, and check the Sharing & Permissions section. Ensure you have Read & Write access. You may need to unlock the lock icon and change permissions.
- Merge seems to do nothing: If the merge completes but you don’t see new files, the folders might have been identical, or the files were hidden. Check the merged folder’s contents carefully, and also look for any files that were skipped due to name conflicts.
- Accidentally replaced a folder: If you replaced a folder instead of merging, you can undo with Command+Z immediately, or restore from Time Machine if you have it enabled. If you replaced a folder, the original contents are gone from that location, but they might still be in the Trash if the folder was moved there.
Frequently Asked Questions
- Can I merge folders with different names? Not directly with the merge option. You can rename one folder to match the other, then merge. Or use Terminal’s
dittocommand which doesn’t require same names. - What happens to files with the same name? macOS will ask you for each conflict. You can choose to keep both (it adds “copy” to the file name), replace the existing one, or skip. If you skip, the file from the copied folder is not added.
- Does merging delete any files? No, merging only adds files from the copied folder to the existing one. It does not delete anything, unless you choose to replace a file with the same name.
- Can I merge folders on different drives? Yes, you can copy from one drive and merge into a folder on another drive. The merge will work as long as the destination folder has the same name as the copied one.
- Is there a way to merge folders without holding Option? You can use Terminal with
dittoorrsync. For example,rsync -av /source/ /destination/will copy and merge contents. This is useful if you prefer command line. - What if I don’t see the “Merge” button in the dialog? The dialog appears when you drag one folder onto another while holding Option. If you don’t see it, you’re not holding Option, or you’re dragging the folder onto itself. Make sure you drag onto the folder with the same name in a different location.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.