You can change your Mac username through System Settings, but the process depends on whether you want to change just the display name or the actual account name
Your Mac has two separate names: the display name (what appears on the login screen and in messages) and the account name (the folder name in /Users/ and what the system uses behind the scenes). Most people only need to change the display name, which takes about two minutes in System Settings. Changing the account name is more involved because it affects file paths and permissions, and Apple's built-in tools for this are limited.
If you just want to change how your name appears when you log in or send messages, change the display name. If you need to change the actual account folder name — usually because you set up your Mac with a temporary name or a name you no longer use — you'll need to create a new account and migrate your files, or use the command line.
Key Takeaways
- Changing your display name takes two minutes: open System Settings, go to General > About, and edit the "Computer Name" field.
- Your account name (the folder in /Users/) cannot be safely changed through the Mac interface without creating a new account.
- If you need to change your account name, the safest method is to create a new administrator account, then migrate your files and delete the old account.
- Before making any changes, back up your Mac using Time Machine or another backup method in case something goes wrong.
Changing your display name in System Settings
Open System Settings (the gear icon in your Dock or Applications folder). Click General in the sidebar, then click the About tab. You'll see a field labeled "Computer Name" — this is the display name that appears on your login screen and in network sharing.
Click in the "Computer Name" field and type the new name you want. Press Enter to save. The change takes effect immediately. This is the display name only; your account folder name in /Users/ stays the same.
If you want to change the name that appears in messages and other apps (sometimes called your "Full Name"), go back to System Settings, click General, then look for your account name at the top of the sidebar. Click it, then click Edit next to your name and type the new one.
Why changing your account name is complicated
Your account name is the folder where all your files live — usually something like /Users/sarah or /Users/john. When you change it, macOS has to update the path in hundreds of places: your home folder, your Library folder, file permissions, and system references. Apple removed the built-in tool to do this safely in recent versions of macOS, which means you can't just rename the folder yourself without breaking things.
If you try to rename the /Users/ folder directly, you'll lock yourself out of your account or cause permission errors that prevent apps from finding your files. This is why the safest approach is to create a new account with the name you want, then move your files over.
Creating a new account and moving your files
Open System Settings, click General, then Users & Groups (or Login Items depending on your macOS version — look for the section that manages accounts). Click the lock icon at the bottom left and enter your password to unlock it. Click the + button to create a new account.
Choose Administrator as the account type, then enter the new username you want. Make sure it matches what you'd like your /Users/ folder to be called. Create a password and click Create User. Log out of your current account and log into the new one to make sure it works.
Once the new account is set up and working, log back into your old account. Open Finder, click Go in the menu bar, then Go to Folder. Type /Users/[your old username] and press Enter. Select all your files (Command+A), then copy them (Command+C). Navigate to /Users/[your new username] and paste them (Command+V). This moves your Documents, Desktop, Downloads, and other folders to the new account.
Once everything is copied over, you can delete the old account. Go back to System Settings > Users & Groups, unlock the settings, click your old account name, then click the − button. Choose whether to keep or delete the old account's files (you can delete them since you've already moved what you need).
Using the command line if you're comfortable with Terminal
If you're familiar with Terminal, you can change your account name using the dscl command, which directly edits the directory system. This is faster than creating a new account, but it requires care — a typo can lock you out.
Open Terminal (Applications > Utilities > Terminal). Type the following command, replacing "oldname" and "newname" with your actual usernames:
sudo dscl . -change /Users/oldname RecordName oldname newname
You'll be asked for your password. After you run this command, you also need to rename the /Users/ folder itself. In Terminal, type:
sudo mv /Users/oldname /Users/newname
Restart your Mac and log in with your new username. If something goes wrong during this process, you may not be able to log in, so only try this if you have a backup or another administrator account on the Mac.
What to do if you're locked out after changing your account name
If you can't log in after renaming your account, restart your Mac and hold Command+S to enter Single User Mode (on Intel Macs) or restart and hold the power button for 10 seconds, then choose Options and log in as another administrator (on Apple Silicon Macs). From there, you can use Terminal to undo the change or fix the file paths.
If you don't have another administrator account and can't access Single User Mode, you'll need to use macOS Recovery. Restart your Mac and hold Command+R until you see the Recovery screen. Open Terminal from the Utilities menu and use the same dscl commands to fix the account name. This is why backing up before you make changes is important — if Recovery doesn't work, you can restore from a backup.
Frequently Asked Questions
Will changing my username affect my passwords or login?
Changing your display name won't affect anything. Changing your account name also won't affect your password — you'll still log in with the same password you've always used. The only thing that changes is the folder name in /Users/ and how the system refers to your account internally.
Can I change my username without creating a new account?
Not safely through the Mac interface. The command line method (dscl) can do it in one step, but it requires you to be comfortable with Terminal and have a backup in case something goes wrong. For most people, creating a new account and moving files is slower but much safer.
What happens to my files if I delete my old account?
When you delete an account in System Settings, macOS asks whether you want to keep or delete the account's files. If you've already moved your files to the new account, you can safely delete the old account and its files. If you haven't moved them yet, choose "Keep the home folder" so the files stay on your Mac.
Do I need to change my username if I only want a different display name?
No. Most people only need to change the display name in System Settings > General > About. Your account name (/Users/ folder) can stay the same. Only change your account name if you specifically need the folder name to be different, or if you set up your Mac with a temporary name you want to replace.
Will my apps still work after I change my username?
If you only change the display name, all your apps will work exactly as before. If you change the account name using the command line or by creating a new account, most apps will work fine because they store settings in your Library folder, which moves with you. Some older apps that hardcode your username in their settings might need to be reconfigured, but this is rare.