When Finder says an item with the same name already exists
Finder asks this whenever you move or copy something into a folder that already holds an item with the same name, because two items in one folder cannot share a name. If you are not sure what to pick, click Keep Both: nothing is lost, and the incoming item gets a number added to its name. Replace deletes the item that was already there, and with folders it deletes the entire folder and everything in it, not only the files that clash.
What the prompt is asking
The wording is along these lines: An item named “report.pdf” already exists in this location. Do you want to replace it with the one you’re moving? (or copying, if it is a copy). Finder is not reporting an error. It is asking which of two items should own the name.
Two details catch people out. First, on a standard Mac disk, names ignore capital letters, so “Report.pdf” and “report.pdf” count as the same name. Second, if Finder hides file extensions, “report” on screen might really be “report.pdf”, which is why the prompt sometimes names a file you do not think you can see. Turning on Show all filename extensions in Finder Settings, under Advanced, removes that guesswork.
What each button does
- Keep Both leaves the file already in the folder exactly as it is and renames the one arriving, so report.pdf is joined by report 2.pdf. Nothing is overwritten. If you change your mind, deleting the extra copy puts you back where you started.
- Stop cancels. The file already in the folder is untouched, and the one you were moving stays where it came from.
- Replace deletes the file already in the folder and puts the new one in its place. Do not count on finding the old version in the Trash, and Command-Z will not bring it back. A backup such as Time Machine is the way back.
When you move or copy several items and more than one clashes, the prompt adds an Apply to All checkbox and a Skip button. Skip leaves that one item behind and carries on with the rest. Apply to All uses your answer for every remaining clash, which is convenient with Keep Both and risky with Replace.
Replacing a folder is not a merge
This is the case that loses the most work. Say a USB drive holds a folder called Photos 2025 with a full year of pictures, and you copy a folder with the same name from your Mac that holds only last month’s. Choosing Replace does not add last month’s pictures to the drive. It swaps the whole folder, and the drive ends up with only what you just copied.
Finder treats a folder as one item with one name, so Replace means replace all of it. If what you wanted was to combine two folders, click Stop and use one of the approaches below.
How to merge two folders safely
Finder does have a merge option, but it is hidden behind the Option key.
- Hold Option and drag the folder onto the location that holds the folder with the same name.
- When the prompt appears, look for a Merge button and click it.
Merge copies what is in the folder you dragged into the one already there. Because Option makes the drag a copy, the folder you dragged stays where it was; delete it yourself once you have checked the result.
Merge is not always offered. It appears only when one folder has items the other lacks. If both folders hold files with the same names but different contents, you may see only Stop and Replace. In that case, merge by hand:
- Open the folder you are moving from and press Command-A to select everything inside it.
- Drag the selection into the destination folder.
- Answer each clash as it comes up, choosing Keep Both whenever you cannot tell which version is newer.
One warning for step 3. If the two folders have subfolders with matching names, those raise the same prompt, and Replace on a subfolder replaces all of it. Open matching subfolders and repeat the steps one level down instead of replacing them.
Deciding which version to keep
When you do not know which file is the right one, click Stop and compare before deciding. Select each file and press Command-I to see its size and the date it was last modified, or press Space for a Quick Look preview. Alternatively, choose Keep Both, then compare report.pdf and report 2.pdf side by side and delete the one you do not want. That route takes a minute longer and never costs you a file.
If a replace has already gone wrong, how to undo a file move you did by dragging covers what can and cannot be recovered.
Stopping the prompt from coming up
Most clashes come from generic names. Downloads fill up with invoice.pdf, document.pdf and image.png, and two different files from two different senders collide the moment they meet in one folder.
- Rename on arrival. Select a batch in Finder, right-click, choose Rename, and use Format to add a counter or a date, or Add Text to put a client or project name in front. Moving invoices from Downloads to the right place shows a routine built around this.
- Rename before you gather. If you collect files from several folders to file them together, for example on the Ledge shelf under the notch, two files called invoice.pdf will still share a name when they land in the same folder. Give generic ones a real name in Finder before you drop them into place, and the prompt never appears.
- Know what Terminal does.
mvandcpoverwrite a file with the same name silently, with no prompt at all. Add-ito be asked first, or-nto never overwrite.
If you often move files between drives, how to copy files to a USB drive on a Mac covers the other prompts you are likely to meet there.
Questions
Where does a replaced file go?
Not to the Trash. It is removed from the folder when the new one takes its place. If you use Time Machine, open the folder in Finder, then choose Browse Time Machine Backups from the Time Machine menu in the menu bar and step back to a version from before the replace.
Does Keep Both ever overwrite anything?
No. If report 2.pdf already exists as well, Finder picks the next free number.
Is Replace ever the right choice?
Yes, when you know the file already in the folder is obsolete, such as an older export of a document you have just exported again. The rule of thumb is simple: pick Replace only when you would happily delete the existing item by hand.