How to Rename a Folder on a Mac (Finder, Desktop and Terminal)
To rename a folder on a Mac, click the folder once in Finder or on the desktop to select it, press Return, type the new name and press Return again. You can also Control-click (right-click) the folder and choose Rename. The same steps rename files, and they work the same on a MacBook, iMac or Mac mini running any recent version of macOS.
Below are all the ways to do it, how to rename many folders at once, why some folders refuse to be renamed, and how to rename from Terminal.
Method 1: Select and press Return (fastest)
- In Finder or on the desktop, click the folder once to select it. Don't double-click, which opens it.
- Press Return. The name becomes editable, with the whole name highlighted.
- Type the new name. Typing replaces the highlighted text; press the left or right arrow key first if you only want to change part of it.
- Press Return to save, or Esc to cancel.
On a Mac, Return means "rename", not "open". To open a selected folder from the keyboard, use Command+Down Arrow or Command+O.
Method 2: Click the name
Select the folder, wait a second, then click once on its name (not the icon). After a short pause the name becomes editable. If you have a trackpad with Force Touch, you can also force click the name to edit it straight away. This is handy with a mouse in hand, but the slow-click can be fiddly; if the folder opens instead, you clicked too fast.
Method 3: The Rename command
- Control-click the folder (or click with two fingers on a trackpad).
- Choose Rename from the shortcut menu.
- Type the new name and press Return.
You can also select the folder and choose File > Rename from the menu bar.
Method 4: Get Info
- Select the folder and press Command+I (or choose File > Get Info).
- In the Info window, expand Name & Extension if it is collapsed.
- Edit the name in the text field and press Return or close the window.
Get Info is useful when the name is long and hard to edit in a narrow Finder column, and it's where you check whether a folder is Locked (see below).
Renaming a folder on the desktop
Folders on the desktop are just items in your Desktop folder, so all the methods above work: click the folder once, press Return, type the name, press Return. If pressing Return does nothing, click an empty part of the desktop first so Finder is the active app, then click the folder again.
Note that the Desktop folder itself, the one that holds everything on your desktop, is a system folder and can't be renamed.
Rules for Mac folder names
- No colons. Finder won't accept
:in a name. Slashes (/) are accepted by Finder, but some apps reject them, so avoid them. - Don't start with a period. Names beginning with
.are reserved for hidden system files; Finder warns you and the folder disappears from normal view if you go ahead. - Names must be unique in the same location. If another item already has that name, Finder tells you the name is taken and asks you to choose another.
- Case-only changes work. macOS drives are case-insensitive by default, but you can still rename
projectstoProjectsin Finder. - Keep names short and plain if the folder will be shared: Windows can't use
\ / : * ? " < > |, and spaces cause trouble in links and scripts (see spaces in file names).
Folders you can't rename (and what to do)
If Rename is greyed out or Finder refuses the change, it's usually one of these:
Your home folder and system folders
Apple's Mac User Guide is clear that your home folder (the one with your account name and a house icon) and certain other folders can't be renamed, and that you shouldn't rename or move folders that came with your Mac. That includes:
- The standard folders inside your home folder: Desktop, Documents, Downloads, Movies, Music, Pictures, Public and Library.
- Top-level folders on your startup disk such as Applications, Library, System and Users.
These folders are referenced by macOS and your apps by exact path, so their names are fixed. If you just want a different label in the Finder sidebar, add a folder of your own to the sidebar instead.
Changing the name of your home folder is possible but is a different process tied to your user account: Apple's support article "Change the name of a macOS user account and home folder" walks through it, and it requires signing in with a different administrator account. Back up with Time Machine first; a mistake can make your account unusable until it is fixed.
Locked folders
A folder with the Locked box checked in Get Info can't be renamed. Press Command+I, uncheck Locked, then rename it.
Folders you don't have permission to change
Folders owned by another user or by the system may need an administrator password, or may not allow renaming at all. Check Sharing & Permissions at the bottom of the Get Info window. If it's a folder you created, giving your account Read & Write access usually fixes it.
Folders that are open or in use
If an app has a file inside the folder open, renaming usually still works, but some apps (and some sync tools) lose track of the files. Close the documents first for anything important.
iCloud Drive folders
Folders you create in iCloud Drive rename like any other folder, and the new name syncs to your other devices signed in to the same Apple Account. A few things to know:
- Desktop and Documents appear inside iCloud Drive when Desktop & Documents Folders is turned on, but they are still the system folders above and can't be renamed.
- App folders in iCloud Drive (for example the Pages, Numbers or Keynote folders) are created by those apps; leave their names alone so the apps can find their documents.
- If a rename doesn't appear on your other devices, give iCloud time to sync, and check that the Mac is online and signed in.
- For a shared folder, everyone works from the same folder, so check with the people you shared it with before you rename it.
Rename many folders at once
Finder can batch rename folders as well as files:
- Select the folders: Command-click each one, or Shift-click to select a range.
- Control-click one of the selected folders and choose Rename.
- In the Rename Finder Items window, pick a mode from the pop-up menu (the three modes are described below).
- Check the example at the bottom of the window, then click Rename.
The three modes:
- Replace Text: find text in the names and replace it, for example replace
Tripwith2026 Trip. - Add Text: add text before or after each current name.
- Format: give every folder a new base name plus an index, counter or date.
If the result isn't what you wanted, press Command+Z straight away to undo it. The Mac bulk rename guide covers these modes in more detail, and the folder renamer guide compares tools for larger jobs. For renaming the files inside the folders by their content, File Renamer AI reads photos, PDFs and documents and proposes descriptive names you can review before downloading.
Rename a folder in Terminal
Terminal uses the mv (move) command, because renaming is just moving something to a new name in the same place:
mv "Old Folder" "New Folder"Quote names that contain spaces, or press Tab to auto-complete and escape them. Paths work too:
mv ~/Documents/Clients/acme ~/Documents/Clients/acme-corpWatch out for one trap: if a folder with the new name already exists, mv doesn't rename; it moves your folder inside the existing one. Check with ls first, or use mv -n, which never replaces an existing file. Terminal also has no Undo, unlike Finder.
To rename many folders by pattern from Terminal, zsh's zmv is the tidy option. This previews renaming Trip 1, Trip 2 and so on to 2026-trip-1, 2026-trip-2:
autoload -U zmv
zmv -n 'Trip (*)' '2026-trip-$1'Remove -n to do it for real. The Mac Terminal rename guide explains mv, zmv and loops in full.
Renaming files on a Mac
Everything in Methods 1 to 4 works for files as well as folders. The one difference is the extension: when you rename report.pdf, Finder selects only report so you don't accidentally change .pdf. If you do change the extension, Finder asks you to confirm. For the full walkthrough, including iPhone and Windows, see how to rename a file, and for Mac-specific options see renaming files on Mac.
Frequently Asked Questions
How do I rename a folder on a Mac?
Click the folder once to select it, press Return, type the new name and press Return again. You can also Control-click the folder and choose Rename, choose File > Rename from the menu bar, or edit the name in the Get Info window (Command+I).
What is the keyboard shortcut to rename a folder on a Mac?
Select the folder and press Return. The name becomes editable; type the new name and press Return to save or Esc to cancel. On a Mac, Return renames rather than opens; Command+O or Command+Down Arrow opens the folder.
Why can't I rename a folder on my Mac?
The most common reasons are that it is a system folder (your home folder, Desktop, Documents, Downloads, Applications or Library), that it is locked in Get Info, or that your account lacks write permission. Unlock it or fix permissions in Get Info; system folders are meant to keep their names.
Can I rename my home folder on a Mac?
Not from Finder. Changing the home folder name is tied to your user account name and must be done from a different administrator account, following Apple's guide to changing the name of a macOS user account and home folder. Back up your Mac before trying it.
How do I rename multiple folders at once on a Mac?
Select the folders in Finder, Control-click one of them and choose Rename. Choose Replace Text, Add Text or Format, check the example shown, and click Rename. Press Command+Z immediately if you need to undo it.
How do I rename a folder in Mac Terminal?
Use mv with the old and new names, for example mv "Old Folder" "New Folder". Quote names with spaces. If a folder with the new name already exists, mv moves the folder inside it instead of renaming, so check first.
Related Posts
How to Rename Multiple Files at Once on Mac (Batch Rename Guide)
How to rename multiple files at once on Mac: step-by-step batch rename with Finder, an Automator Quick Action, and zsh commands in Terminal, with examples.
MacBatch File Renamer for Mac: Finder and the Best Mac Renamer Apps
The best batch file renamer for Mac compared: Finder's built-in Rename, Automator, Terminal, NameChanger, Renamer, A Better Finder Rename and AI renaming.
MacHow to Rename Files in Mac Terminal: mv, zsh Loops and zmv
Rename files from the Mac Terminal with mv, handle spaces and case-only changes, and bulk rename safely with zsh loops and zmv, with dry runs that preview first.
Ready to organize your files?
Try AI renaming right away. No sign-up needed until you download.
Try It Free