Changing MAC Address in macOS Big Sur & Monterey with spoof-mac

Sep 5, 2021 - 4 Comments

Mac Terminal icon

If you want to change your MAC address in macOS Monterey or Big Sur, you can use the traditional method to spoof a MAC address, or you can use a slightly easier approach by using a command line tool called spoof-mac. We’ll be covering the mac-spoof method here, which relies on HomeBrew.

For some quick background, your computers MAC address is unique and identifies it to connected networks, and some services use MAC addresses for filtering who or what is allowed onto a particular network. Additionally, some services use a MAC address to track a computer or device. And by the way, MAC in this case stands for Media Access Control, not to be confused with Mac which is short for Macintosh – but yes, this article will cover changing the MAC address on a Mac.

This is aimed at advanced users, as the majority of people have no need to change a MAC address or spoof one.

Using spoof-mac to Change a MAC Address in MacOS Monterey / Big Sur

Before beginning, you will need to install Homebrew on the Mac if you have not done so already. Assuming that’s already done, launch Terminal app to get started.

  1. From Terminal app, install mac-spoof with HomeBrew
  2. brew install spoof-mac

  3. Option-click on the wi-fi menu bar item in MacOS to get the interface name (typically en0, sometimes en1)
  4. Temporarily disconnect from wi-fi by going to the Wi-Fi menu and toggling the current Wi-F network so that it’s not longer connected
  5. At the command line, use the following mac-spoof command to generate a random MAC address and change the network interface at en0 to that (change en0 to en1 if applicable):
  6. sudo spoof-mac randomize en0

  7. Return to the wi-fi menu and now re-connect to Wi-Fi on the Mac, the new MAC address should immediately take effect

The MAC address will remain changed until you either switch it back, or the Mac is rebooted.

Note that some users may find that only disconnecting from the active wi-fi network, changing the MAC address, then reconnecting to that network works, while others may find that temporarily disabling wi-fi, changing MAC address, then re-enabling wi-fi works. In testing, both worked on my particular MacBook Air, and FWIW disabling Wi-Fi is the more traditional approach.

This applies to the Mac computer of course, but interestingly enough, the latest versions of iOS and iPadOS offer a private wi-fi address feature on iPhone and iPad that is basically changing and randomizing the MAC address as well for those devices. Perhaps a similar privacy feature will arrive for the Mac eventually.

Whether or not this spoof-mac HomeBrew approach is easier than using the bundled command line tools to spoof a MAC address in Mac OS is up to you and your particular use case.

Why’d you change your MAC address? Do you intend to use this capability often? Do you use another approach to spoofing MAC addresses? Share your experiences, tips, and thoughts in the comments.


Related articles:

Posted by: Paul Horowitz in Command Line, Mac OS, Tips & Tricks


» Comments RSS Feed

  1. nospam says:

    There is a typo should be

    brew install spoof-mac

  2. FolksIT says:

    Quite a good article i will try once for my mac lapi thanks for your work great effort

  3. Stefan says:

    Hey there! Did you mean „spoof-mac“ instead of „mac-spoof“? I do not know any so called formulae though „spoof-mac“ works on Mojave, Catalina and Big Sur. Or did you add any special repo? Nevertheless, thank you for your blog – its a nice read and often very informative!

Leave a Reply


Shop on and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks


iPhone / iPad



Shop on Amazon to help support this site