Your Mac Has More Than One Name and It Matters
You glance at your Wi-Fi network list and see “John’s MacBook Air,” but your name isn’t John. You try to AirDrop a file to a friend, and your device shows up on their screen with an embarrassing old nickname or a cryptic string of numbers. Maybe you’re setting up a home office with multiple Macs, and you need to tell them apart at a glance on your network. The name your Mac broadcasts to the world is its identity, and if it’s wrong, confusing, or just plain ugly, it’s time for a change.
Changing your Mac’s name isn’t just about vanity. It’s a practical step for organization, security, and seamless integration within your ecosystem of devices. Whether you’ve acquired a used Mac, want to personalize a new one, or are streamlining a multi-computer setup, the process is straightforward. However, macOS uses several different names in different contexts, which is where confusion often starts.
This guide will walk you through the simple steps to change the name that matters most—the one everyone else sees—and explain the other identifiers your Mac uses. We’ll cover the modern System Settings method for macOS Sonoma and Ventura, the older System Preferences approach for those on earlier versions, and how to ensure the change sticks across all services.
Understanding the Three Names of Your Mac
Before you start typing, it’s crucial to know that your Mac has three primary names. Changing one doesn’t always automatically change the others, which can lead to a mix of old and new names appearing in different places.
The Computer Name (The One You Want to Change)
This is the user-friendly name that appears on your local network. It’s what you see when browsing for shared printers, using AirDrop, connecting via Screen Sharing, or viewing devices on your router’s admin page. This name is often preceded by your user’s name (e.g., “Alex’s Mac Studio”). This is the main name we will be changing in this guide.
The Local Hostname
This is a simplified, DNS-compatible version of your computer name. It typically uses only letters, numbers, and hyphens, with no spaces or special characters. It’s used for Bonjour networking services. When you change your computer name in System Settings, macOS usually generates a new local hostname based on it automatically.
The Terminal Hostname
This is the name your Mac uses on the network at a deeper, Unix level. You can see it by opening the Terminal app and typing `hostname`. It often matches or is derived from your local hostname. For most users, this name operates in the background and doesn’t need manual adjustment.
The goal is to update the Computer Name, which will then prompt macOS to update the related hostnames, creating a consistent identity across your system.
How to Change Your Mac’s Name in System Settings (macOS Sonoma/Ventura)
If you’re running macOS Sonoma (14.x) or Ventura (13.x), Apple has moved nearly all settings into the unified System Settings application. Here’s how to change your Mac’s name there.
First, click the Apple logo in the top-left corner of your menu bar and select “System Settings” from the dropdown menu. Alternatively, you can click the System Settings icon in your Dock, which looks like a set of gears.
In the System Settings window, look for the “General” section in the left sidebar and click on it. Within the General settings, you will find an option labeled “About.” Click on this.
At the top of the About pane, you will see your current Mac model name (e.g., “MacBook Air”) and an editable field labeled “Name.” This field contains your current Computer Name. Click directly on the name. The text will become highlighted, allowing you to type a new one.
Choose a new name that is unique, easily identifiable, and avoids special characters. Good examples are “Alex-Work-MacBook” or “Family-iMac-LivingRoom.” Once you’ve typed the new name, simply click anywhere outside the text field. There is no “Save” button; the change is applied immediately.
After changing the name, a dialog box will appear. It states, “The computer name and the local hostname have been changed.” It will show your new Computer Name and the new Local Hostname that was generated. Click “OK” to dismiss this message.
Your Mac’s primary network identity is now updated. You may need to restart your Mac or disconnect and reconnect to your Wi-Fi network for the change to propagate fully across all network services and visible to other devices.
Changing Your Mac’s Name in System Preferences (macOS Monterey and Earlier)
For users on macOS Monterey (12.x), Big Sur (11.x), Catalina (10.15), or earlier, the process is done through the older System Preferences application. The steps are very similar in spirit.
Click the Apple logo in the menu bar and select “System Preferences.” Inside System Preferences, find and click on the “Sharing” icon. It looks like a blue folder with a silhouette of a person in front.
The Sharing preference pane is where you configure how your Mac interacts with other computers on the network. At the very top of this window, you will see a large, prominent field labeled “Computer Name.” This is the name you want to change.
Click on the current name in this field. You can now edit it directly. Type your desired new name. As with the newer method, avoid unusual punctuation and keep it clear.
As you type, you will see the “Local Hostname” displayed below update automatically in real-time. This shows you the network-friendly version of the name you are creating. Once you are satisfied, simply close the System Preferences window. The change is saved automatically.
Again, a restart or network reconnect might be necessary for all devices on your network to recognize the new name immediately.
What If the Sharing Icon is Missing or Unavailable?
In some managed environments, like schools or businesses, an administrator may have restricted access to the Sharing pane using a Mobile Device Management (MDM) profile. If the Sharing icon is missing or grayed out, you will need to contact your IT department to request the name change.
Similarly, if you have FileVault encryption enabled and are not logged in, the Sharing pane may be inaccessible. Ensure you are fully logged into your user account.
Verifying the Change and Troubleshooting Common Issues
After you’ve changed the name, it’s wise to verify that it has taken effect everywhere. The quickest way is to open a new Finder window, look under “Locations” in the sidebar, and see if your Mac’s name appears under “Network.” You can also try using AirDrop from another Apple device to see what name pops up.
If other devices still show the old name, don’t panic. Network names are often cached by routers and other devices. Try these steps to force a refresh.
– Turn your Mac’s Wi-Fi off and back on. Go to System Settings > Wi-Fi, toggle it off, wait 10 seconds, and toggle it on.
– Restart your Mac. This clears many system caches.
– Restart your primary network router. This clears the network cache that holds old device names.
– On other Apple devices, turn AirDrop and Bluetooth off and on to refresh their discovery lists.
Why Does My Old Name Still Appear in Some Apps or Services?
Some third-party applications or cloud services (like Dropbox or Adobe Creative Cloud) may have cached your device’s identifier independently. You may need to check the account settings within those specific apps to update the device name they display. This is not controlled by macOS system settings.
Additionally, if you use iCloud, your device name there is usually synced from your Mac, but there can be a delay. You can check and manage device names in iCloud settings by going to System Settings > [Your Name] > iCloud and reviewing the device list.
Advanced Scenarios and Command Line Method
For power users or those in complex network environments, you might want more control or need to script the change. You can rename your Mac using the Terminal with the `scutil` command, which is the tool that manages system configuration parameters.
Open the Terminal app from your Utilities folder. To change the Computer Name, use the following command, replacing `”Your New Mac Name”` with your desired name.
`sudo scutil –set ComputerName “Your New Mac Name”`
You will be prompted to enter your administrator password. This command changes the primary Computer Name. To set the Local Hostname directly (which is usually derived from the Computer Name), use.
`sudo scutil –set LocalHostName “your-new-mac-name”`
Note that the LocalHostName should not contain spaces or underscores; use hyphens. Finally, to set the HostName (the Unix-level name), you can use.
`sudo scutil –set HostName “your-new-mac-name”`
After running these commands, it is highly recommended to restart your Mac for the changes to be fully recognized by all system processes and network stacks.
Choosing the Right Name for Your Network
While you can be creative, following a few best practices will prevent future headaches.
– Be Unique: If you have multiple Macs, give each a distinct name.
– Be Descriptive: Include the device’s purpose or location (e.g., “Kitchen-Mac-Mini”).
– Avoid Special Characters: Stick to letters, numbers, and hyphens. Spaces are usually okay for the Computer Name but not for hostnames.
– Keep It Reasonably Short: Extremely long names can be truncated in some network lists.
– Consider Privacy: Avoid using your full legal name or exact address in a publicly broadcast name.
Your Mac Now Has the Identity It Deserves
Changing your Mac’s name is a simple yet powerful way to personalize your technology and reduce everyday friction. Whether you fixed a hand-me-down’s identity, organized a multi-device home, or just wanted a fresh start, the process takes only a minute in System Settings or System Preferences.
The key takeaway is that the “Computer Name” you set is the cornerstone. macOS handles the technical hostnames in the background, ensuring your device communicates properly on the network while presenting a clean, recognizable name to you and others. If you encounter lingering old names, remember that network caches are usually the culprit and a quick restart of your devices and router will almost always resolve it.
With your Mac now correctly named, your AirDrop list will be clear, your network admin page will make sense, and your personal or professional tech ecosystem will feel just a bit more orderly. It’s a small change with a surprisingly satisfying impact on your daily digital experience.