The MAC address for your network controllers and devices is used to identify each piece of hardware’s physical address. 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 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.
Microsoft Windows
Apple macOS
Press the Windows key, type Control Panel, and then press Enter.
If using the Category view in the Control Panel, click the Network and Internet option, then click the Network and Sharing Center option.
If using the Small icons or Large icons view, click the Network and Sharing Center option.
On the left side of the Network and Sharing Center window, click the Change adapter settings link.
Locate the network device you want to change the MAC address of and right-click it.
Select Properties from the drop-down menu that appears.
Click the button.
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.
Type your new MAC address (C) and click OK (D).
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.
Apple macOS
For computers with macOS, follow the steps below to change the MAC address.
When setting a MAC address in Windows, there shouldn’t be any hyphens, and it must be 16 characters long.
- Open the Finder app.
- In the left navigation menu in the Finder window, click the Applications option.
- In the list of applications, double-click the Utilities app.
- Double-click the Terminal app.
- 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
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.
Related information
- How to find a MAC address.
- Network and network card help and support.
- See our MAC address definition for further information and related links.