How to Change the Name of Your MacBook

Renaming your MacBook is one of those small tweaks that makes a surprisingly big difference — especially if you use multiple Apple devices, share files over a network, or rely on AirDrop, Bluetooth, or iCloud. Your MacBook's name shows up in a lot of places, and the default name Apple assigns (usually something like "John's MacBook Pro") isn't always what you want the world to see.

Here's exactly how it works, where the name appears, and what to consider before you change it.

What Does "MacBook Name" Actually Mean?

Your MacBook has a computer name — a human-readable label that identifies it across Apple services and local networks. This is different from a hostname or Bonjour name (though those are related), and it's the name that appears when:

  • Other devices look for your Mac on a local Wi-Fi network
  • You use AirDrop to send or receive files
  • Your Mac shows up in Finder's sidebar on another Mac
  • You connect via Bluetooth from a phone or tablet
  • Your Mac appears in your iCloud device list
  • You use Screen Sharing or remote access tools

Apple ties several naming layers together under the hood. When you change your computer name, macOS typically updates the local hostname (used for network identification) and Bonjour name (used for device discovery) automatically. You can also adjust those independently if needed.

How to Change Your MacBook's Name 🖥️

Method 1: Using System Settings (macOS Ventura and Later)

  1. Click the Apple menu in the top-left corner
  2. Select System Settings
  3. Click General in the sidebar
  4. Select Sharing
  5. At the top of the Sharing panel, you'll see a field labeled Local Hostname — click the Edit button next to it
  6. Update the Computer Name field at the very top of the Sharing pane

Your new name takes effect immediately. No restart required.

Method 2: Using System Preferences (macOS Monterey and Earlier)

  1. Click the Apple menu
  2. Open System Preferences
  3. Click Sharing
  4. At the top of the window, find the Computer Name field
  5. Click into it, clear the existing name, and type your new one

Again, the change is instant.

Method 3: Changing the Local Hostname Separately

If you want more control — for example, if you're on a corporate network or running services that reference your Mac by hostname — you can edit the local hostname independently.

In the Sharing panel (either System Settings or System Preferences), look for the Local Hostname field below the Computer Name. This is the machine's name on the local network with .local appended (e.g., johns-macbook-pro.local). Click Edit to change it.

Keep local hostnames lowercase and use hyphens instead of spaces — this is a DNS convention that prevents issues on some networks.

Method 4: Via Terminal

For users comfortable with the command line, you can change the computer name and hostname directly:

sudo scutil --set ComputerName "New MacBook Name" sudo scutil --set HostName "new-macbook-name" sudo scutil --set LocalHostName "new-macbook-name" 

Run each command separately, entering your admin password when prompted. This method gives you precise control over all three naming layers independently.

Where Each Name Type Shows Up

Name TypeWhere It AppearsEditable In
Computer NameAirDrop, Finder sidebar, iCloudSharing settings
Local HostnameNetwork discovery, Bonjour (.local)Sharing settings > Edit
HostNameTerminal, SSH connectionsTerminal only

Most users only need to change the Computer Name. The other two are primarily relevant for developers, network administrators, or people running servers on their Mac.

Factors That Can Affect Your Naming Decisions

Not every rename situation is the same. A few variables shape what approach makes sense:

macOS version — The interface changed significantly with macOS Ventura. If you're on an older version, System Preferences looks and behaves differently than System Settings, but the underlying options are the same.

Network environment — On a home network, naming is mostly cosmetic. On a corporate or enterprise network, your IT department may manage hostnames centrally, and changing your local hostname could conflict with existing configurations or directory services like Active Directory.

Number of Apple devices — If you own multiple Macs, iPhones, or iPads, a clear, distinct name on each device makes AirDrop and Handoff much less confusing. The more devices you have, the more a thoughtful naming convention matters.

Developer or server use — If your Mac runs local development servers, hosts files via SMB or AFP, or is accessed remotely via SSH, changing the hostname has functional consequences — not just cosmetic ones. Scripts, bookmarks, or SSH config files that reference the old hostname will need updating.

Admin privileges — You'll need an administrator account to change the computer name. Standard user accounts don't have access to the Sharing panel.

What Doesn't Change When You Rename Your Mac 🔒

Renaming your MacBook doesn't affect:

  • Your Apple ID or iCloud account
  • Any installed apps or their settings
  • File system structure or permissions
  • Network adapter addresses (MAC address)
  • Your Wi-Fi or Ethernet connection

It's a surface-level identity change. Nothing structural about your system is modified.

A Note on Special Characters and Length

macOS will accept most characters in a computer name, but some can cause issues in specific contexts. Apostrophes in names like "John's MacBook" are fine for the display name, but macOS automatically converts the local hostname to a simplified, ASCII-friendly version (e.g., Johns-MacBook-Pro.local). If you're working with scripts or network tools that reference the hostname directly, simpler names with letters, numbers, and hyphens tend to cause fewer surprises. ✅

The ideal length is short enough to be readable in menus and network lists — most people find names under 30 characters work cleanly across all the places the name appears.


Whether you're tidying up your AirDrop list, setting up a cleaner home network, or preparing a Mac for a specific role in a shared environment, the naming options macOS provides cover most scenarios well. The right approach depends on how your Mac is used, what network it lives on, and how much control you need over each individual naming layer.