Changing your MAC address on macOS requires a few Terminal commands. The process takes about 30 seconds and the change is temporary — your original hardware address returns when you restart. Here's exactly how to do it.

⚠️ You need administrator privileges (sudo password) to change your MAC address. The commands below briefly disconnect you from Wi-Fi for a second or two.

Method 1 — Terminal (Manual)

1

Open Terminal

Press ⌘ + Space, type Terminal, and press Enter. Or find it in Applications → Utilities → Terminal.

2

Find your Wi-Fi interface name

Run the command below. Look for the "Wi-Fi" entry — the interface name is almost always en0 on Apple Silicon Macs.

networksetup -listallhardwareports
3

Check your current MAC address

Confirm which address you're replacing. Note it down in case you need to restore it manually.

ifconfig en0 | grep ether
4

Bring the interface down

Take the interface offline before changing the address. macOS requires this step.

sudo ifconfig en0 down
5

Apply the new MAC address

Replace AA:BB:CC:DD:EE:FF with the address you want. Use the MAC Address Generator to create a valid one.

sudo ifconfig en0 ether AA:BB:CC:DD:EE:FF
6

Bring the interface back up

Re-enable the Wi-Fi interface with the new MAC address active.

sudo ifconfig en0 up
7

Reconnect to Wi-Fi

Your Mac should reconnect automatically. If not, click the Wi-Fi menu and select your network. Your router will now see the new MAC address.

Terminal Command Builder

Select your interface and enter the MAC address you want. The builder generates the exact commands to run — ready to copy and paste.

Build Your Commands

Need a MAC address? →
 

Method 2 — MacSpoof (One Click)

If you'd rather not use Terminal, MacSpoof does all of the above in a single click. It detects your interfaces automatically, generates a valid MAC address (with an Apple-like OUI if you want), applies the change, and reconnects your Wi-Fi — all without typing a single command.

Skip the Terminal — use MacSpoof

One click to randomize or set a custom MAC address. Built for Apple Silicon (M1, M2, M3, M4).

Download MacSpoof Free

Frequently Asked Questions

Does the change survive a reboot?

No. The MAC address reverts to the hardware default every time you restart your Mac. Run the commands again (or open MacSpoof) if you need to re-apply it after a reboot.

What if sudo ifconfig en0 ether gives a permission error?

Make sure you're in the admin group on macOS. You can check in System Settings → Users & Groups. If you're on macOS Ventura or later and using SIP, the command still works — ifconfig ether is allowed even with SIP enabled.

My interface is not en0 — how do I find the right name?

Run networksetup -listallhardwareports and look for the line that says "Wi-Fi" or "Ethernet". The interface name is on the "Device:" line directly below it (e.g. en0, en1, en2).

How do I reset to my original MAC address?

Simply restart your Mac. Alternatively, run sudo ifconfig en0 ether <original> where <original> is your hardware MAC (check it in System Information → Network, or note it before making changes).

Does this work on Intel Macs?

The Terminal commands work on Intel Macs running macOS. MacSpoof currently supports Apple Silicon (M1/M2/M3/M4) Macs only.