How to Change Your Mac’s MAC Address (and Why)

Abhishek Kurve 30-08-2017

A MAC address is a serial number that ships with every hardware device connected to the internet. It’s the building block of networking because it enables unique identification of a hardware device over a network. This makes sure that the packets are sent to the right place.


Earlier we covered how to change MAC address on Windows How to Change Your MAC Address on Windows Fiddling around with network settings is no one's favorite PC activity. Fortunately, some tasks are rather simple. We show you how to change your MAC address on a Windows PC. Read More . Today, let’s see why you might want to change the MAC address (and how) on your Mac.

What Is a MAC Address?

A Media Access Control address (MAC address) is a serial number used to identify a network adapter uniquely. A computer with multiple network interface cards will have multiple MAC addresses. It is also used for static IP address What Is a Static IP Address? Here's Why You Don't Need One A static IP address is one that never changes. Dynamic IP addresses do change. We explain why you don't need a static IP address. Read More assignment, MAC address filtering, and unique identification of your device. At some public Wi-Fi spots, the MAC address is used to enforce time limitations as it can be used to identify a device uniquely.

Why You Might Want to Change MAC Address

There are numerous reasons why you might want to change your MAC address.

MAC address filtering IP and MAC Address: What Are They Good For? The internet isn't so different from the regular postal service. Instead of a home address, we have IP addresses. Instead of names, we have MAC addresses. Together, they get the data to your door. Here's... Read More lets system administrators specify a list of hardware devices and allows only those to connect to a Wi-Fi network. It’s a good way of keeping unauthorized devices away.

Let’s say that your ISP uses MAC address filtering to authenticate your internet connection. What if the network card on your laptop goes kaput? You’ll no longer be able to access the internet. You can ask your ISP to whitelist the MAC address of your new network card, but it might take a while. A simple way to get your internet working again Network Problems? 7 Diagnostic Tricks and Simple Fixes Network problems must be diagnosed before they can be resolved. This article covers seven simple tricks for fixing your network. Read More is to change the MAC address to that of the old network adapter.


change spoof mac address on mac

A MAC address is broadcast in plain text and can be seen by anybody connected to the same network. Its unique nature means that anyone with a few tools could use it to track your location. While this may not be a problem on a home network, it might pose a privacy risk when connected to a public Wi-Fi network.

Also, as the MAC address is visible publicly within the same network, a hacker can impersonate your device and browse the web pretending to be you. If you’re paranoid about your privacy The Complete Guide to Improving Your Online Security and Defending Your Privacy Everyone wants your data, reputable companies and criminals alike. If you want to build up your defenses and protect yourself online, let us guide you through how to improve your security and safeguard your privacy. Read More , you might want to consider spoofing your MAC address.

How to Find Your Current MAC Address

If your Mac is connected to a Wi-Fi network, you can view the MAC address from the menu bar itself. Simply hold down the Option key on your Mac’s keyboard and click on the Wi-Fi menu bar icon.


You should be able to see the interface name and the corresponding MAC address. It also provides quick access to Wi-Fi logging, Wi-Fi diagnostics Use Your Mac To Troubleshoot Your Wi-Fi Connection Want a better WiFi connection on your MacBook? OS X comes with tools that can help. Read More , and also displays information about the current network.

change spoof mac address on mac

Finding Other MAC Addresses

As discussed earlier, each network card has its own MAC address. If you need to find out the MAC address of Bluetooth PAN or Thunderbolt ports, here’s how to do it.

Open Terminal on your Mac and type the following command:

networksetup -listallhardwareports

You should be able to see the MAC addresses of all the network cards on your Mac.

change spoof mac address on mac

How to Change Your Mac’s MAC Address

Changing a MAC address is a pretty simple process. Be aware that the change will only last until you restart your Mac, at which point the old MAC address will be in use again. You can always run the commands below to change your MAC whenever you want.

You can have your Mac generate a random MAC address, or you can input a MAC address you already know. If you’ve replaced your network adapter and are unable to connect to the internet, you should manually input the old MAC address. If you’re spoofing your MAC address for enhanced privacy, you should generate a random one.


Before we begin, make sure to disconnect from any Wi-Fi networks. To do so, hold the Option key and click on the Wi-Fi menu bar icon. Now click on Disconnect from “Network Name”

change spoof mac address on mac

To generate a random MAC address, open Terminal and enter the following command:

openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'

This will generate a random hex number that you can use as your MAC address. Select this number and copy it. If you want to use an existing MAC address, you should skip this step.

change spoof mac address on mac

Next, enter the following command:

sudo ifconfig en0 ether MAC

Here, replace “MAC” with any existing MAC address or the above-generated random MAC address.

change spoof mac address on mac

If your account is password protected, it will prompt you to enter your password. After entering the correct password, your MAC address should be successfully changed. You can now connect to the Wi-Fi network and start browsing with your new MAC address.

Additional Tips and Troubleshooting

Here are some additional tips to help you through the process:

  • To verify your MAC address changed successfully, just recheck it using the procedure we discussed at the beginning.
  • To restore your original MAC address, just reboot your Mac. It also means there’s no way to change the MAC address on a Mac permanently. Thankfully, most Macs are low-maintenance and won’t need rebooting often.
  • If you’re experiencing network issues after changing the MAC address, restart your router and try connecting to it again. If you still experience problems, just reboot your Mac to reset the MAC address.
  • It might be a good idea to note down your existing MAC addresses, just in case something goes wrong.
  • Make sure to use an administrator account to perform the procedure.
  • Some Macs may use “en1” instead of “en0”. To check this, run the networksetup -listallhardwareports command in the Terminal and verify the network adapter for which you want to change the MAC address.

Changing Your MAC Address Is Easy

Using the procedure mentioned above, you can quickly change the MAC address of your Mac. This process seems to work perfectly on macOS Sierra and even on the latest macOS High Sierra developer beta How to Try macOS High Sierra Right Now Before Everyone Else macOS High Sierra is now available for beta testing. If you'd like to give it a try before the general release, here's how to get your hands on it now. Read More .

Have you changed your Mac’s MAC address? If yes, we’d like to hear why. Also, if you experiencing any troubles, let us know in the comments below.

Related topics: Mac Tricks, Online Privacy.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. David
    September 12, 2019 at 6:29 pm

    Looking to be able to block Mac Addresses from other devices using terminal permanently. Can you plese show me how to that. The Target device is an iPad and I have the Mac Address for Bluetooth as well. Operating System: MacMini

    Thank you.

  2. Jules
    September 9, 2019 at 9:37 am

    Not working in Mojave, sadly. Followed directions to change my MAC/WIFI address on my MBP via Terminal app and nothing. Everything stayed the same. Please help. Thank you!

  3. Tim
    June 28, 2019 at 8:31 pm

    Great article by the way. I'm experiencing a similar issue to Julio's comment. I get to the step sudo ifconfig en0 ether MAC (where MAC is the random generated address per your instructions). It requests my password as you said to expect. Then I check if it changed with ifconfig en0. Some times it works, sometimes it doesn’t. There's no discernable pattern. I just keep repeating the process until it eventually registers a new MAC. Sometimes it works on the first attempt. Sometimes it takes 5+

  4. julio
    December 31, 2017 at 8:09 pm

    It does not seem to work with Sierra. After doing the '''sudo ifconfig en0 ether MAC''' and checking with '''ifconfig en0''' it shows the changed MAC address.

    However, it still shows old MAC address if checked with option-Wifi-Menu-Bar or '''networksetup -listallhardwareports'''.