On Windows, dragging a folder onto another folder with the same name combines the two. A Mac works differently. Finder’s default button is Replace, and it deletes the destination folder along with everything inside it.
That’s why a small Merge button that only appears in certain Finder dialogs is worth a look. It’s hidden behind the Option key and shows up only under specific conditions. Once you know those conditions, it works well.
The short answer: hold Option while you drag one folder onto a folder with the same name in another location, then click Merge. Files that exist in only one folder are kept. If both folders hold different versions of a same-named file, Finder offers only Stop or Replace, so back up first. Apple describes this workflow in its Mac User Guide on organizing files with folders.
These steps apply to Finder on current macOS releases, including macOS Golden Gate 27 and macOS Tahoe 26. Button wording can vary slightly between releases.
What Replace, Merge, and Keep Both actually do
Finder gives you up to three choices when names collide. They behave very differently:
| Button | What happens | Risk |
|---|---|---|
| Replace | The destination file or folder is discarded and the incoming one takes its place | High: anything only in the destination is gone |
| Merge | Two same-named folders are combined, and items unique to either side are kept | Medium: same-named files inside get replaced |
| Keep Both | Both conflicting files are kept, and one is renamed (usually with a number added) | Low: you end up with duplicates to sort out |
Before you start
Merging and replacing are both destructive in some cases. Two minutes of prep saves a lot of grief.
- Back up both folders. Time Machine on an external hard drive is the easiest route, and we have a full guide to backing up your files with Time Machine. A manual copy on an external SSD works too.
- Download any cloud-only files. If either folder lives in iCloud Drive or another cloud service, make sure every file is stored locally. Look for the download option in the right-click menu on cloud-only items.
- Check your storage. Backups and Keep Both duplicates take space. If you’re tight, free up space on your Mac first.
- Compare important duplicates. If both folders contain a file called
Budget.xlsx, open each and decide which version you want before you do anything.
How to replace a file or folder on Mac
Use Replace when you know the incoming item is the one to keep and the destination has nothing you need.
- In Finder, select the file or folder you want to keep.
- Drag it into the location that has the item with the same name.
- When Finder asks what to do, click Replace. Click Stop to cancel.
Treat Replace as permanent. Don’t count on finding the old version in the Trash afterward. If there’s any doubt about what’s in the destination folder, click Stop and merge instead.
How to merge two folders with the same name
This is the clever bit. Finder’s Merge option appears only when all of these are true:
- Both folders have the same name (for example,
Projects). - They’re in different locations.
- At least one folder contains items the other doesn’t.
If both folders hold the same items, you’ll only see Stop and Replace. Apple confirms this in its folder organization guide.
- Decide where the merged folder should end up. That’s your destination.
- In Finder, select the other folder (the one you’ll drag).
- Hold down the Option key and drag the folder to the destination location.
- Keep holding Option and drop the folder.
- In the dialog that appears, click Merge.
Finder copies everything unique to the source into the destination, and the result is a single combined folder. Because Option-drag is a copy, the source folder stays where it was. Check the merged folder, then delete the source yourself once you’re happy. One catch: Finder doesn’t show you a per-file review screen. According to Apple, when the two folders contain different versions of identically named files, the dialog offers only Stop or Replace, not Merge. If both copies matter, rename one before merging, or use one of the tools further down.
How to merge folders with different names
Finder has no general “combine these two folders” command. Dragging a folder called January onto one called February moves January inside February, which probably isn’t what you wanted.
You have two clean options.
Option 1: Rename, then merge
Rename one folder to match the other, keep them in separate locations, and use the Option-drag method above. This is the quickest route when there aren’t many duplicate filenames.
Option 2: Move the contents manually
This approach gives you a prompt for every name collision, which is safer when duplicates matter. (If you’re new to Finder’s drag behavior, it’s worth reading up on how to move files on your Mac first.)
- Open the folder you want to empty.
- Press
Cmd + Ato select everything inside it, or choose Edit > Select All from the menu bar. - Drag the selection into the other folder.
- If any filenames collide, Finder asks what to do. Choose Keep Both, Stop, or Replace.
- Once the first folder is empty, delete it.
Keep Both renames one of the conflicting files, usually by adding a number to the end, so nothing is lost. Hold down Option while the dialog is open and you may see Skip instead of Stop, which leaves the existing file untouched.
Use Terminal for bigger merges
Finder is fine for a handful of folders. For large folder trees, or when you want to preview changes before anything moves, Terminal does the job better.
Merge folders with ditto
macOS includes a command called ditto that copies one folder’s contents into another. Files that exist only in the destination stay put. Files with the same name get overwritten by the source version, with no confirmation and no undo.
- Type the command using this syntax:
ditto "/path/to/Source" "/path/to/Destination"
Say you have a folder named Test Folder on your Desktop and another with the same name in Downloads. The command looks like this:
ditto -V ~/Desktop/"Test Folder" ~/Downloads/"Test Folder"
The -V flag prints every file as it’s copied, so you can watch what’s happening. If a folder name is a single word (like Test), you don’t need the quotes. They’re only required when there’s a space in the name.
- Press
Return. The source folder’s contents are copied into the destination folder.
Tip: instead of typing paths, drag a folder from Finder into the Terminal window and its full path appears at the cursor. That cuts out typos, which matter a lot when the command can overwrite files. Try it on two throwaway folders before using it on real data.
Preview changes first with rsync
rsync has one feature that makes it my pick over ditto for anything important: a dry run. Add -n and it shows what it would do without touching a single file.
rsync -avn "/path/to/Source/" "/path/to/Destination/"
The options worth knowing:
-a: archive mode, which preserves timestamps, permissions, and symlinks (ownership only when you have the privileges; extended attributes and ACLs need extra options)-v: verbose output, listing each file-n: dry run, so no changes are made--ignore-existing: never overwrite a file that already exists in the destination--backup: keep a backup of any file that gets replaced
When the dry run looks right, run the same command without -n. Keep in mind the live run will overwrite same-named files in the destination unless you add --ignore-existing or --backup, so a cautious version looks like rsync -av --backup "/path/to/Source/" "/path/to/Destination/". Afterward, re-run the dry run: if it lists nothing left to copy, the merge is complete. Since macOS Sequoia, the rsync command on a Mac is Apple’s bundled openrsync, which supports these options but not every flag from the GNU version.
Watch the trailing slash. Source/ means “copy what’s inside Source,” while Source without the slash creates a nested Source folder inside your destination. It’s an easy mistake, and an annoying one to clean up.
When Finder isn’t enough: folder-comparison apps
If both folders are full of same-named files with different edits, Finder’s merge will quietly overwrite things you care about. A dedicated folder-comparison app is the better tool here. Good ones show both folder trees side by side, compare file contents rather than names alone, and let you pick the left or right version of each conflict.
Araxis Merge 2026.1 is one option with folder comparison and merging built in. It supports macOS 27 and needs macOS 15 Sequoia or later, so check compatibility before you buy for an older Mac. It’s overkill for tidying a photo folder, but for project files with revisions, it’s the right call.
Sync utilities, backup apps, and duplicate-file finders cover other versions of this problem. For documents where you need a full revision history, a version-control system like Git is worth considering.
A note on cloud storage
iCloud Drive, Dropbox, Google Drive, and OneDrive all sync folders, but they’re poor merge tools. They can create conflict copies with their own naming rules, behave oddly with online-only files, and stash replaced versions in a web-based recovery area. If you merge inside a synced folder, let syncing finish, then check the result on the provider’s website or another device.
Troubleshooting
I don’t see the Merge button
Run through this list:
- The folders don’t have identical names (check for a trailing space or different capitalization).
- You weren’t holding Option when you dropped the folder.
- Both folders contain the same items, so there’s nothing to merge.
- You dropped the folder in the wrong place, so Finder treated it as a move.
- One folder is on a network share, removable drive, or cloud-backed location, where behavior can differ.
Finder offers Replace instead of Merge
When the folders contain identically named files with different contents, Finder doesn’t offer a per-file conflict screen. Copy both folders somewhere safe and use a comparison app, or rename the conflicting files before merging.
Can I undo a merge?
Cmd + Z sometimes reverses a recent Finder copy, but don’t rely on it for a large merge. Undo depends on the operation, the drive, permissions, and whether you’ve done anything since. Your backup is the real undo button.
Files are missing after the merge
If you’ve been staring at a folder that’s clearly short a few files, don’t panic. Common causes:
- The files were online-only in iCloud or another cloud service and never downloaded.
- They’re hidden files. Press
Cmd + Shift + .in Finder to show them. - Permissions blocked the copy.
- You picked the wrong folder as source or destination.
- A same-named file was replaced during the merge.
- Finder or the cloud service was still syncing.
Check both locations, the Trash, and your cloud provider’s recently deleted area before you delete any originals.
Tags or other file info changed
Copying between drives, network shares, or different file systems can affect tags, permissions, aliases, and other metadata. ditto and rsync -a usually preserve more than a plain drag and drop, though results depend on the options you use and the destination drive. If you’re merging onto a drive plugged into a USB-C hub, the hub won’t cause this; the drive’s format is what matters.
Wrap-up
Finder’s Option-drag Merge is a small gem that plenty of longtime Mac users never find. For same-named folders with unique files, it’s the fastest fix there is. For anything with conflicting duplicates, reach for rsync with a dry run or a comparison app instead, and always keep a backup.
Bookmark this one for the next time you find two Projects folders on two different drives. And if you’re cleaning house anyway, it’s worth learning how to permanently delete files you no longer need and how to password protect your files on Mac.