How to change a MAC address

Updated: 02/04/2024 by Computer Hope
Mac address

The MAC address for your network controllers and devices is used to identify they physical address of each piece of hardware. In other words, it's a unique number assigned to a device to communicate with other pieces of hardware over a network interface. Although these numbers are permanent (like a VIN (vehicle identification number) on a car), they can be spoofed, that is, changed at a software level.

To change the MAC address for your computer, select your operating system below.

Microsoft Windows

For computers with Windows Vista, 7, 8, 10, or 11, follow the steps below to change the MAC address.

  1. Press the Windows key, type Control Panel, and press Enter.
  2. If using the Category view in the Control Panel, click the Network and Internet option, then click the Network and Sharing Center option.

Link to access the Network and Internet menu in Windows.

Link to access the Network and Sharing Center in Windows.

If using the Small icons or Large icons view, click the Network and Sharing Center option.

  1. On the left side of the Network and Sharing Center window, click the Change adapter settings link.
  2. Locate the network device you want to change the MAC address of and right-click it.

Network controller.

  1. Select Properties from the drop-down menu.

Network properties selector in Windows.

  1. Click the Configure button in Windows 10. button.
  2. In the next window, select the Advanced tab (A). Then, under the Property section, select Network Address (B). If you don't see a Network Address entry in the list, select Locally Administered Address if available.
Note

If you don't see Network Address or Locally Administered Address in the Property list, you cannot change the MAC address for that network device.

  1. Type your new MAC address (C) and click OK (D).

Menu where users may set a new MAC address.

Note

When setting a MAC address in Windows, there shouldn't be any hyphens, and it must be 16 characters long.

Apple macOS

For computers with macOS, follow the steps below to change the MAC address for a desktop or laptop computer.

Note

After changing the MAC address on a Mac computer, when the computer is restarted, the MAC address changes back to the default value assigned by the manufacturer.

  1. In the Dock at the bottom of your screen, click the Finder icon.

Finder icon in the Dock

  1. On the left side of the screen, under the Favorites section, click the Applications selector in macOS. selector.
  2. In the list of applications, double-click the Utilities app.

Utilities folder icon in macOS.

  1. Double-click the Terminal app.

Terminal icon in macOS.

  1. In the terminal, type the following command, replacing the x's with alphanumeric characters for the new MAC address, then press Enter.

sudo ifconfig en0 xx:xx:xx:xx:xx:xx