What a hardware address is and why you might change it
Your device's hardware address — also called a MAC address — is a unique identifier built into your network card. It looks like six pairs of numbers and letters: 00:1A:2B:3C:4D:5E. Your router uses this address to recognize your device on the network, separate from your IP address.
Most people never need to change it. But there are real reasons you might: your router might have a whitelist that only lets certain MAC addresses connect, you might be moving to a network with MAC filtering, or you might want to test network security. Some people also change it for privacy — a MAC address can identify your device type and manufacturer across different networks.
Changing your MAC address is different from spoofing it. A MAC spoof is a temporary change that lasts only until you restart. A permanent change requires editing your network card's firmware or your operating system's network settings, depending on your device and what you're trying to do.
Key Takeaways
- Your MAC address is a hardware identifier that your router uses to recognize your device on the network, separate from your IP address.
- Temporary MAC spoofing (lasting until restart) is simpler than permanent changes and works on Windows, macOS, and Linux using built-in tools or free software.
- Permanent MAC changes require editing network adapter settings on Windows or macOS, or modifying network configuration files on Linux.
- Some routers will block unknown MAC addresses, so you may need to add your new address to the router's whitelist before the device can connect.
- Changing your MAC address does not hide your activity from your internet provider or websites you visit — it only affects what your local network sees.
Temporary MAC spoofing on Windows
The easiest way to test a MAC address change without making it permanent is to spoof it temporarily. On Windows, the free tool TMAC (Technical MAC) or Technitium MAC Address Changer lets you change your MAC address for the current session. When you restart, it reverts to the original.
Download Technitium MAC Address Changer from the official website, install it, and run it as administrator. Select your network adapter from the dropdown menu, enter the new MAC address you want to use in the field labeled "New MAC Address", and click "Change". Your device will disconnect and reconnect with the new address. To verify it worked, open Command Prompt and type ipconfig /all — look for "Physical Address" in the output.
This change lasts only until you restart your computer or disable and re-enable your network adapter. If your router has MAC filtering enabled, you'll need to add this new address to the whitelist before your device can access the network.
Temporary MAC spoofing on macOS and Linux
On macOS, you can use the free tool macchanger or SpoofMAC. SpoofMAC is simpler for beginners: download it, open Terminal, and run sudo spoof-mac.py list to see your network interfaces, then sudo spoof-mac.py randomize en0 (replace en0 with your interface name) to generate a random MAC address.
On Linux, macchanger is the standard tool. Install it using your package manager (sudo apt install macchanger on Ubuntu or Debian), then bring down your network interface with sudo ip link set dev eth0 down, change the address with sudo macchanger -r eth0, and bring it back up with sudo ip link set dev eth0 up. Verify the change with ip link show eth0.
Both of these changes are temporary and revert when you restart or when you run the tool again with your original address.
Permanent MAC address changes on Windows
To make a MAC address change permanent on Windows, you need to edit your network adapter's registry settings. This survives restarts but requires administrator access and careful typing — a mistake here can break your network connection.
Open Registry Editor by pressing Windows key + R, typing regedit, and pressing Enter. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}. This folder contains entries for each network adapter. Find the one for your active network card — you can identify it by looking for the adapter name in the "DriverDesc" field. Right-click in the empty space, select "New" > "String Value", name it NetworkAddress, and enter your new MAC address without colons (for example, 001A2B3C4D5E). Restart your computer.
If something goes wrong and your network stops working, you can delete the NetworkAddress entry and restart to revert to your original address. If you can't access the network to fix it, restart in Safe Mode with Networking, open Registry Editor again, and remove the entry.
Permanent MAC address changes on macOS
On macOS, permanent changes require editing your network configuration through System Preferences and the terminal. Open System Preferences, go to Network, select your active connection, and click "Advanced". Note the exact name of your network interface (usually en0 for Ethernet or en1 for Wi-Fi).
Open Terminal and type sudo ifconfig en0 lladdr XX:XX:XX:XX:XX:XX, replacing en0 with your interface name and XX:XX:XX:XX:XX:XX with your new MAC address. This change persists across restarts on some macOS versions but not all. For a more reliable permanent change, you may need to create a launch daemon that runs this command at startup, which requires editing a plist file — this is more complex and is usually only necessary if you're managing multiple devices.
Permanent MAC address changes on Linux
On Linux, permanent changes depend on your network manager. If you use NetworkManager (the default on most desktop distributions), open the network settings GUI, select your connection, click "Edit", go to the "General" tab, and look for a "Cloned MAC Address" field. Enter your new address there and save.
If you're using netplan (common on Ubuntu 18.04 and later), edit the configuration file at /etc/netplan/01-netcfg.yaml (the filename may vary). Add a line under your interface: macaddress: XX:XX:XX:XX:XX:XX. Save the file and run sudo netplan apply to activate the change. This survives restarts.
If you're using older network configuration files directly, edit /etc/network/interfaces and add the line hwaddress XX:XX:XX:XX:XX:XX under your interface block, then restart networking with sudo systemctl restart networking.
Adding your new MAC address to your router's whitelist
If your router has MAC filtering enabled, it will block any device whose MAC address is not on the approved list. You'll need to add your new address before your device can connect.
Log into your router's admin panel — usually by typing 192.168.1.1 or 192.168.0.1 into a browser and entering your router's username and password (often "admin" and "admin" or "admin" and the password on the router's label). Look for a section called "MAC Filtering", "Access Control", "Device Whitelist", or "Connected Devices". Add your new MAC address to the allowed list. The exact steps vary by router manufacturer, so check your router's manual if you can't find this setting.
If you're locked out because you changed your MAC address before adding it to the whitelist, you can connect using a different device, add the new address, and then reconnect with the changed device. Or you can revert your MAC address change temporarily, add the new address to the whitelist, and then change it again.
What changing your MAC address does and doesn't protect
Changing your MAC address affects only your local network — your router and other devices on the same Wi-Fi or Ethernet segment. It does not hide your activity from your internet provider, websites you visit, or anyone monitoring traffic outside your local network. Your IP address and the data you send remain visible to them.
A MAC address change is useful for testing network security, bypassing local MAC filtering, or preventing your device from being recognized on a specific network. It is not a privacy tool for hiding your online activity. If you want to hide your browsing from your internet provider or websites, you need a VPN or Tor — changing your MAC address alone does nothing for that.
Frequently Asked Questions
Will changing my MAC address break my internet connection?
Temporarily, yes — your device will disconnect and reconnect. If your router has MAC filtering enabled and your new address is not on the whitelist, your device will not be able to reconnect until you add it. If you make a permanent change and something goes wrong, you can revert it by following the same steps with your original MAC address or by removing the registry entry (Windows) or configuration line (macOS/Linux).
Can I use any MAC address I want?
Technically yes, but there are conventions. The first three pairs of digits identify the manufacturer — if you use a random address, it may not match any real manufacturer, which some networks flag as suspicious. If you want to avoid detection, use a real manufacturer prefix. Most spoofing tools handle this automatically.
Does changing my MAC address hide me from my internet provider?
No. Your internet provider sees your IP address and the data you send, not your MAC address. A MAC address change only affects what your local router and other devices on your network see. To hide your activity from your provider, you need a VPN.
What if I change my MAC address and forget what the original was?
On Windows, you can find your original MAC address by opening Command Prompt and typing getmac /v before you make any changes — write it down. On macOS and Linux, ip link show or ifconfig will show it. If you've already changed it and can't remember the original, you can usually reset your network adapter in Device Manager (Windows) or by reinstalling the network driver.
Can I change my MAC address on my phone?
On Android, some phones allow it through Developer Options, but it depends on the manufacturer and Android version. On iPhone, iOS does not provide a built-in way to change your MAC address permanently, though iOS 14 and later randomize your MAC address by default when connecting to new networks for privacy. Check your phone's settings under Network or Wi-Fi for any MAC-related options.