How to put selected files into a new folder on a Mac
Select the files in Finder, then press Control-Command-N, or Control-click the selection and choose New Folder with Selection. Finder creates a folder in the same place, moves the selected items into it, and highlights the folder’s name so you can type a better one. It works in any Finder window and on the desktop.
Use New Folder with Selection
- Select the files. Click the first one and Shift-click the last to take a run of files, or Command-click to add and remove individual ones. How to drag files that are not next to each other covers the selection moves if you want a refresher.
- Control-click any one of the selected items and choose New Folder with Selection. The command shows how many items it is about to move. The same command is in the File menu, and the shortcut is Control-Command-N.
- A folder named New Folder With Items appears with its name ready to edit. Type the name you want and press Return.
The item count in the menu is a useful check. If you meant to select twelve files and it says eleven, close the menu and fix the selection before you commit.
Be careful where you Control-click. Clicking on a file that is not part of the selection replaces the selection with that one file, and the command then applies to it alone.
What happens to the files
The files move; they are not copied. The new folder is created alongside them, in the folder they were already in, and they keep their names, dates and tags. Folders can be part of the selection too, in which case they become subfolders of the new one.
Most things that point at those files keep working. Aliases follow a file when it moves, and recent-document menus generally find it again. What does break is anything that refers to a file by its exact location: a script with a path typed into it, or a project file that links to assets by path. If the files are part of something like that, move them from inside the app that owns the project instead.
To reverse it, press Command-Z straight away. The files go back where they were. If an empty folder is left behind, drag it to the Trash. How to undo a file move you did by dragging explains how far Finder’s undo reaches.
When the command is missing or grayed out
There are four usual causes.
- Nothing is selected. The command only appears when at least one item is highlighted. With no selection, the File menu offers New Folder (Shift-Command-N), which makes an empty folder.
- You cannot change the folder. A read-only disk image, a shared folder you only have permission to read, or a drive the Mac can read but not write to will all block it. Select the enclosing folder, choose File > Get Info, and look under Sharing & Permissions.
- The window is not a real folder. Recents, search results and Smart Folders show files gathered from many places. The command may be unavailable there, or the new folder may land somewhere you did not expect. Select a file and press Command-R to show it in its enclosing folder, and work from that window.
- The shortcut does nothing. Another app may have claimed Control-Command-N. Use the menu command, which always works.
Grouping without making a folder
If all you want is visual order, you may not need a folder at all.
- Stacks on the desktop. Click the desktop and choose View > Use Stacks. Files gather into piles by kind, and nothing moves on disk.
- Groups in a Finder window. Choose View > Use Groups, then pick how to group them, by kind or by date for example. Again, nothing moves.
- Tags. Control-click a selection and choose a color or Tags. Tagged files stay where they are but can be pulled up together from the Finder sidebar, even when they live in different folders.
Folders are for files that belong together for good. Groups and tags are for seeing a pattern without committing to it.
When the files are not in the same folder
New Folder with Selection works on one location at a time. The files that most often need a folder of their own are scattered: a contract in Downloads, two images on the desktop, a spreadsheet deep in Documents.
The built-in route is to make an empty folder with Shift-Command-N, then visit each location and drag its files across, keeping the destination window in view the whole time. It works, though it is mostly window management.
Ledge takes the window management out. As you come across each file, drag it up to the notch at the top of the screen and let go; it lands on a shelf that drops from the notch and stays there until you take it somewhere. Carry on to the next folder with nothing in your hand. When the set is complete, make the new folder, open the shelf with Option-Space or a click on the notch, and drag everything onto the folder. The files themselves move into it, exactly as New Folder with Selection would have done if they had started in one place.
The shelf is not limited to Finder items. An image dragged from a web page can wait there beside the documents, and a link dropped into the folder becomes a webloc file, so the page that goes with the project is filed with it. How to gather files from different folders in one spot describes the routine in more depth.
If the originals must stay where they are, duplicate each one first with Command-D and shelve the copy. If the finished folder is going to someone else, how to zip files from different folders into one archive picks up from here.
Ledge needs macOS 14 Sonoma or later, and on a Mac without a notch the shelf sits at the top center of the screen. There is no account and no cloud; files never leave the Mac. It is free for 14 days, then $19 once.
Questions
Where does the new folder appear?
In the same folder as the files you selected. If they were on the desktop, the new folder is on the desktop. In a long list it may be out of sight; it is already selected, so start typing its new name and Finder will scroll to it once you press Return.
Can I change the default name?
No. Finder always starts with New Folder With Items, but the name is selected for editing the moment the folder appears, so typing replaces it. To rename later, select the folder and press Return.
Does it work on an external drive?
Yes, on any drive you can write to. If the command is grayed out on an external drive, the drive is probably in a format the Mac can read but not change.