How to change your MAC address on Windows, macOS, Linux and phones
By the DataImpulse team · 22 Nov 2026 · 5 min read
You can change the MAC address your device shows to a network. Here are the steps for each system, when it helps, and why it does nothing to the IP address websites see.
A MAC address is the hardware address of a network adapter. It is set at the factory, and yes, you can change the one your device presents to a network. The factory value stays stored in the hardware and comes back when you remove the change.
This guide gives the steps for each operating system, then explains what the change does and does not affect. The short version: a MAC address matters on your local network and nowhere else.
What a MAC address is
MAC stands for media access control. The address is 48 bits long, written as six pairs of hexadecimal digits such as 3c:22:fb:9a:10:4e. The first three pairs identify the manufacturer, from blocks assigned by the IEEE Registration Authority, and the last three are chosen by the manufacturer for that adapter.
Each adapter has its own. A laptop with Wi-Fi and an Ethernet port has two, and a phone has one for Wi-Fi and another for Bluetooth.
The address is used to deliver data between devices on the same local network: your laptop, your router, the printer. When data leaves that network the router replaces the hardware addressing with its own, so the MAC address never travels across the internet.
MAC address vs IP address
The two are often confused, and they do different jobs.
- A MAC address identifies an adapter on the local network. An IP address identifies a connection on the internet.
- A MAC address is assigned by the manufacturer. An IP address is assigned by the network you join.
- A MAC address is seen by your router and by devices on the same network. Your public IP address is seen by every website you visit.
- A MAC address stays with the device. An IP address changes when you change network.
So changing your MAC address does not change the IP address a website sees. That address belongs to your router's connection. To see it, open our what is my IP tool. To change it, you need a different network, a VPN or a proxy, which is covered further down.
Find your current MAC address
On Windows, open Command Prompt and run this. The value is listed as the physical address.
getmac /vOn macOS, Wi-Fi is usually en0.
ifconfig en0 | grep etherOn Linux, list the adapters and read the link/ether line of the one you use.
ip link showWe ran the macOS and Linux commands while writing this and each printed a single line with the adapter's address.
Change it on Windows
- Open Device Manager and expand Network adapters.
- Right-click your adapter and choose Properties.
- Open the Advanced tab and select Network Address or Locally Administered Address.
- Choose Value and type twelve hexadecimal digits with no separators.
- Click OK, then disable and enable the adapter.
Not every driver offers that property. Wi-Fi adapters often reject values unless the second digit is 2, 6, A or E, which marks the address as locally administered. Windows 10 and 11 also have a built-in option under Wi-Fi settings named Random hardware addresses, which is the simpler choice for most people.
Change it on macOS
Disconnect from the Wi-Fi network without turning Wi-Fi off, then set a new address.
sudo ifconfig en0 ether 02:1a:2b:3c:4d:5eThe change lasts until restart. Some recent Macs refuse the command for the built-in Wi-Fi adapter. In that case use the setting Apple provides: open Wi-Fi settings, select the network's details and set Private Wi-Fi Address to Rotating or Fixed. Apple describes the feature in its private Wi-Fi address guide.
Change it on Linux
Take the adapter down, set the address and bring it back up. Replace wlan0 with your adapter's name.
sudo ip link set dev wlan0 down
sudo ip link set dev wlan0 address 02:1a:2b:3c:4d:5e
sudo ip link set dev wlan0 upThis also lasts until restart. To make it permanent or random on each connection, set the cloned MAC address option in your network manager's connection settings.
Android and iPhone
Phones do this for you. Android 10 and later use a randomised MAC address per Wi-Fi network by default. The setting is in the network's details under Privacy. iPhones and iPads have the Private Wi-Fi Address switch in each network's settings, on by default.
Neither system lets you type an arbitrary address without modifying the device, and for privacy the built-in randomisation is what you want anyway.
When changing it helps
- Privacy on public Wi-Fi. Shops, airports and venues can recognise a returning device by its MAC address. A random one per network prevents that.
- Replacing a device. Some internet providers and networks register one hardware address. Copying the old device's address onto the new router or computer restores the connection, a feature routers call MAC clone.
- Testing. Network administrators change addresses to test filters and address assignment.
- Fixing a conflict. Two devices with the same address on one network both misbehave, and changing one solves it.
What it does not do
Changing a MAC address does not hide you from websites, because they never see it. It does not change your public IP address, your location as a site sees it, or anything about your browser.
It also does not make it acceptable to get around controls on a network you do not run. Using another device's address to bypass a paid Wi-Fi limit, an access list or a ban may break the network's terms and, in some places, the law. Change addresses on your own equipment and networks, or where you have permission.
If the goal is a different IP address
If what you want is for websites to see a different address or country, the MAC address is the wrong place to look. Three things change the public IP address: joining another network, a VPN, or a proxy.
A proxy is the precise option, since it applies only to the programs you choose and lets you pick the country. What is a web proxy explains how it works, anonymous proxies explained covers what a proxy hides, and the guide to choosing a proxy type helps you pick one.
Try it yourself
Create an account, add funds from US$1 and order a proxy in the country you need.
Keep reading
25 Nov 2026 · IP addresses and privacy
What is ping? How it works, what the numbers mean, and how to lower it
Ping is the round-trip time between you and another machine. This guide shows how to run the command, read every part of its output, and find what is causing a high number.
25 Nov 2026 · IP addresses and privacy
Port forwarding explained: what it is, how to set it up, and when not to
Port forwarding tells your router to send incoming connections on one port to one device. This guide covers how it works, the setup steps, why it often fails, and what to use instead.