How to Change Your MAC Address on Any Device
Your MAC address is the unique hardware identifier your network adapter broadcasts to every device on your local network. Changing it takes less than a minute on any operating system. Here is exactly how to do it on Windows, Mac, Linux, Android, and iOS โ with multiple methods for each platform.
Key Takeaway
Your MAC address identifies your network adapter on the local network. Changing it can improve privacy on public Wi-Fi, bypass network restrictions, or fix connectivity issues. Every major OS supports it โ either through built-in settings or a single terminal command.
What Is a MAC Address?
A MAC (Media Access Control) address is a 48-bit identifier assigned to every network interface card manufactured. It looks like this: A4:83:E7:2F:1B:9C. The first three octets (A4:83:E7) identify the manufacturer โ this is called the OUI (Organizationally Unique Identifier). The last three octets (2F:1B:9C) are the unique serial assigned by that manufacturer.
Unlike your IP address, which changes whenever you connect to a different network, your MAC address is burned into your hardware at the factory. It stays the same regardless of which Wi-Fi you join. That consistency is useful for networking โ but it is a privacy problem. Retail stores, airports, and advertising companies can track your movements by monitoring the MAC addresses their Wi-Fi access points see in probe requests.
The good news: you can change it. What you are really doing is telling your operating system to override the hardware MAC with a software-defined address. The network adapter still has its original MAC stored in firmware, but every packet sent to the network uses your chosen address instead.
When Should You Change Your MAC Address?
Privacy on Public Wi-Fi
Coffee shops, airports, and hotels log MAC addresses. A spoofed or randomized MAC prevents these networks from tracking your visits over time. Combined with a VPN, it makes you significantly harder to profile.
Bypass Network Restrictions
Some networks use MAC filtering to allow or block devices. If you have a device that was banned by MAC, or you need to register a new device on a MAC-locked network, changing the address gets you connected.
Troubleshooting Connectivity
Some routers develop DHCP issues tied to specific MACs. ISPs sometimes lock service to a specific MAC. Changing it can resolve these issues without calling support or replacing hardware.
Legal Warning
Changing your MAC address is legal. Using a changed MAC address to gain unauthorized access to a network, impersonate another device, bypass paid services, or commit any form of fraud is a crime in most jurisdictions. In the US, it can be prosecuted under the Computer Fraud and Abuse Act (CFAA). In the EU, the Computer Misuse Directive applies. Only change your MAC for legitimate purposes: privacy, troubleshooting, or testing on networks you own or have permission to use.
Step-by-Step: Change Your MAC Address
Select your operating system below. I have included multiple methods for each platform โ from GUI options for beginners to command-line approaches for power users.
Method 1: Device Manager (GUI)
- 1
Press Win + X and select Device Manager.
- 2
Expand "Network adapters" and right-click your Wi-Fi or Ethernet adapter.
- 3
Select Properties, then click the Advanced tab.
- 4
Scroll down and select "Network Address" (or "Locally Administered Address").
- 5
Click "Value" and enter your new MAC address without dashes or colons โ e.g. 02A1B2C3D4E5.
- 6
Click OK. Disable and re-enable the adapter for the change to take effect.
Method 2: netsh (Command Line)
- 1
Open Command Prompt as Administrator.
- 2
Run: netsh interface show interface โ note the name of your adapter (e.g. "Wi-Fi").
- 3
Open Registry Editor (regedit) and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}.
- 4
Find the subkey matching your adapter (check DriverDesc value).
- 5
Create or edit the string value "NetworkAddress" and set it to your new MAC (no separators).
- 6
Restart the adapter: netsh interface set interface "Wi-Fi" disable && netsh interface set interface "Wi-Fi" enable.
Method 3: PowerShell
- 1
Open PowerShell as Administrator.
- 2
Run: Get-NetAdapter | Format-Table Name, MacAddress โ note your adapter name.
- 3
Run: Set-NetAdapter -Name "Wi-Fi" -MacAddress "02-A1-B2-C3-D4-E5" (use dashes).
- 4
Confirm when prompted. The adapter will restart automatically.
- 5
Verify with: Get-NetAdapter -Name "Wi-Fi" | Format-List MacAddress.
Find Your Current MAC Address
Before you change your MAC, you should know what it currently is. Write it down โ you may want to revert later. Here is how to find it on every platform.
ipconfig /allLook for "Physical Address" under your active adapter. Or use: getmac /v for a cleaner output.
ifconfig en0 | grep etheren0 is usually Wi-Fi. Use en1, en2, etc. for other adapters. Or go to System Settings > Network > Advanced > Hardware.
ip link showThe MAC is displayed next to link/ether. Or use: cat /sys/class/net/eth0/address for a specific adapter.
Settings > About Phone > Status > Wi-Fi MAC AddressOn Samsung: Settings > About Phone > Status Information > Wi-Fi MAC Address. Some phones show the randomized MAC instead of the hardware MAC.
Settings > General > About > Wi-Fi AddressThis shows your hardware MAC. The MAC used on a specific network may differ if Private Wi-Fi Address is enabled.
Want to look up a MAC address? Use our MAC Address Lookup tool to identify the manufacturer of any MAC address. Just paste the first 6 characters (the OUI) and we will tell you which company made the device.
How MAC Addresses Actually Work
MAC addresses operate at Layer 2 of the OSI model โ the data link layer. Every Ethernet frame and Wi-Fi packet includes a source MAC and destination MAC in its header. When your laptop sends data to your router, the Ethernet frame contains your laptop's MAC as the source and the router's MAC as the destination. The router then strips the Layer 2 header and forwards the IP packet onward.
This is why your MAC address never leaves your local network. Once a packet passes through a router, the original MAC headers are gone. The next network hop gets new Layer 2 headers with the MAC addresses of the devices on that segment. A web server in California has no idea what your laptop's MAC is โ it only sees your IP address.
The 48-bit address space gives us 281 trillion possible MACs. The IEEE assigns OUI blocks to manufacturers in batches. Apple owns dozens of OUI blocks. Intel, Broadcom, Qualcomm, and Realtek own hundreds. When you run a MAC lookup, the first three octets tell you who made the network chip. This is useful for network diagnostics โ if you see an unknown device on your network, the OUI often reveals what type of device it is.
There are two types of MAC addresses: universally administered (assigned by the manufacturer) and locally administered (set by software). The second-least-significant bit of the first octet determines which type it is. When you change your MAC, you should use a locally administered address โ set the second character to 2, 6, A, or E (e.g., 02:xx:xx:xx:xx:xx). This avoids conflicts with real hardware MACs.
MAC Randomization on Modern Devices
The privacy risks of static MAC addresses became so well-known that Apple, Google, and Microsoft all added automatic randomization to their operating systems. Here is what each platform does by default in 2026:
iOS 18+
Assigns a unique random MAC per Wi-Fi network. Optionally rotates it every two weeks. Also randomizes MACs in probe requests during scanning. Enabled by default since iOS 14.
Android 14+
Assigns a per-network randomized MAC by default. Randomizes probe request MACs. Some manufacturers (Samsung, Pixel) add extra randomization for scanning. Has been the default since Android 10.
Windows 11
Supports random hardware addresses per Wi-Fi network. Not enabled by default โ you need to toggle it in Settings > Network & Internet > Wi-Fi > Random hardware addresses. Can be set to change daily or per-connection.
macOS Sequoia
Private Wi-Fi Address is enabled by default for all networks. Generates a unique address per network. Can be rotated manually in network settings.
Even with randomization enabled, there are limitations. Research has shown that some implementations leak the real MAC in certain edge cases โ particularly during the association phase or when the device wakes from sleep. Bluetooth MAC addresses are often not randomized, which can still be used for tracking. And if you connect to a captive portal (hotel, airport), the network operator sees your randomized MAC for that session and can correlate it with any login credentials you provide.
For most people, the built-in randomization is good enough. If you have specific concerns โ like avoiding tracking by a particular entity โ manually changing your MAC using the methods above gives you full control over exactly what address is used and when.
Tips for Choosing a New MAC Address
Use a locally administered address
Set the second character to 2, 6, A, or E (e.g., 02:xx:xx:xx:xx:xx). This signals that the address is software-assigned and avoids collisions with real hardware MACs on the network.
Make it look realistic
Use a MAC prefix from a common manufacturer (Apple, Intel, Samsung) if you want to blend in. Our MAC Lookup tool shows OUI assignments. An obviously fake MAC like FF:FF:FF:FF:FF:FF will get flagged by network monitoring.
Avoid multicast addresses
The least significant bit of the first octet must be 0 for unicast. Multicast MACs (odd first octet) will cause network issues. Addresses starting with 02, 06, 0A, 0E, 12, 16, etc. are safe.
Keep a record of your real MAC
Write down your original hardware MAC before making changes. Some networks (corporate VPNs, managed devices) require the real MAC for authentication. You will want to be able to revert.
Use a different MAC per network
If your goal is privacy, using the same spoofed MAC on every network defeats the purpose. Use a unique address per location, or use the random option in macchanger / NetworkManager.
Frequently Asked Questions
Yes, changing your MAC address is legal in most countries. It is a standard feature built into every major operating system. However, using a spoofed MAC address to gain unauthorized access to a network, bypass paid services like hotel Wi-Fi, or commit fraud is illegal and can result in criminal charges. The act of changing the address itself is not the issue โ it is what you do with it that matters.
No. Your MAC address is only used for local network identification at Layer 2 of the OSI model. It has zero effect on internet speed, bandwidth, or latency. The MAC address is stripped by your router before packets leave your local network. Changing it simply changes the identifier your device presents to the local switch or access point.
It depends on the method. Command-line changes using ifconfig, ip link, or netsh are temporary and reset when you reboot or restart the network adapter. Registry edits on Windows, NetworkManager configurations on Linux, and macchanger with systemd services persist across reboots. On mobile, the randomized private address is managed by the OS and persists per-network automatically.
No. Your MAC address never leaves your local network. It operates at Layer 2 (data link layer) and is stripped by your router before packets are sent over the internet. Websites can see your IP address, browser fingerprint, and cookies โ but never your MAC address. The only entities that see your MAC are devices on your local network segment: your router, switch, and other devices on the same Wi-Fi.
MAC address randomization is a privacy feature where your device automatically generates a random MAC address for each Wi-Fi network. This prevents stores, airports, and other venues from tracking your movements by monitoring your MAC in probe requests. iOS 14+, Android 10+, and Windows 10/11 all support this natively. It is one of the most important passive privacy protections available on modern devices.
Yes, and virtual machines make it especially easy. In VirtualBox, go to Settings > Network > Advanced and change the MAC Address field. In VMware, edit the .vmx file or use the VM configuration GUI. Docker containers get a random MAC by default, which you can override with the --mac-address flag. Hyper-V lets you set a static MAC in the network adapter settings. VMs are popular for network testing precisely because of this flexibility.
Related Tools
MAC Address Lookup
Identify the manufacturer of any MAC address using the OUI database.
Browser Fingerprint
See how unique your browser fingerprint is and what data sites can collect.
VPN Leak Test
Check if your VPN is leaking your real IP, DNS, or WebRTC data.
What Is My IP?
See your public IP address, ISP, and approximate location.
Privacy Score
Get a comprehensive privacy score based on your current browser settings.
Privacy Checklist
20 steps to lock down your online privacy. Interactive checklist with progress tracking.
More Tools