When you first purchase and set up a new Mac, Apple automatically generates a default name for the device based on your iCloud account, such as “John’s MacBook Pro” or “iMac.” This is the exact name that broadcasts publicly when you try to use AirDrop, connect to a shared Wi-Fi network, or pair Bluetooth headphones. If you buy a second-hand Mac or simply want a more private, professional name for your machine, you can easily change the computer’s hostname in the System Settings.
How to Rename Your Mac
You can change your computer’s broadcast name at any time without affecting your user files or Apple ID.
- Click the Apple Logo in the top-left corner of your screen.
- Select System Settings… from the dropdown menu (or System Preferences on older macOS versions).
- In the left-hand sidebar, click on General.
- On the right side of the window, click on About.
- Look for the very first text box labelled Name.
- Double-click the current name, delete it, and type your new desired name (e.g., “Office MacBook” or “Studio Mac”).
- Press the Return key to instantly save the change.
Your Mac will immediately begin broadcasting this new name. If your iPhone is sitting nearby, you should instantly see the new name appear in your AirDrop sharing menu.
Changing the Local Hostname (Terminal Name)
While the step above changes the public-facing name, your Mac also has a “local hostname” that is used by network administrators and terminal applications. If you want everything to match perfectly:
- Stay in the General > About menu.
- Scroll all the way down to the bottom of the page.
- Look for the section labelled Local Hostname (it will look something like johns-macbook-pro.local).
- Click the Edit… button next to it.
- Type a new, simplified name without spaces (e.g., officemac.local) and click OK.