A MAC address is a unique identifier assigned to every device that connects to a network

A Media Access Control address, or MAC address, is a string of numbers and letters that identifies a specific device on a local network. Think of it like a serial number for your device's network card — it's how your router knows which physical device is which when multiple computers, phones, and tablets are connected at the same time.

Every device with a network connection has a MAC address. Your laptop has one. Your phone has one. Your printer, your smart TV, your gaming console — all of them have MAC addresses. The address is burned into the device's network hardware during manufacturing, though it can be changed through software settings if you know how.

MAC addresses only work on local networks — the ones you can see in your home or office. They don't travel across the internet the way your IP address does. Your router uses MAC addresses to talk to devices on your WiFi or ethernet connection, but once data leaves your network and heads toward a website or another person's computer, the MAC address stays behind.

Key Takeaways

  • A MAC address is a unique identifier built into your device's network hardware that lets your router recognize which physical device is which on your local network.
  • MAC addresses are formatted as six pairs of hexadecimal characters separated by colons, like 00:1A:2B:3C:4D:5E, and are different from IP addresses.
  • Your device's MAC address is visible in your network settings on Windows, Mac, iPhone, and Android, and you may need it to connect to certain networks or troubleshoot connection problems.
  • Routers use MAC addresses to assign IP addresses, filter which devices can connect, and track devices on your local network.

How MAC addresses are formatted and where to find yours

A MAC address is always 48 bits long and is written as six pairs of hexadecimal digits separated by colons. An example looks like this: 00:1A:2B:3C:4D:5E. The first three pairs identify the manufacturer — all Apple devices, for instance, start with certain prefixes — and the last three pairs are unique to that specific device.

Finding your MAC address depends on what device you're using. On Windows, open Command Prompt and type ipconfig /all, then look for "Physical Address" in the results. On Mac, go to System Settings, click Network, select your connection, and look for "Wi-Fi Address" or "Ethernet Address" depending on how you're connected. On iPhone, go to Settings, tap General, then About, and scroll to "Wi-Fi Address". On Android, go to Settings, tap About Phone, then Status, and look for "Wi-Fi MAC Address".

If you're on a network you don't control — like at work or school — you might also find your MAC address printed on a sticker on your device, usually on the back or bottom. Some routers display connected devices and their MAC addresses in their admin panel, which you can access by typing your router's IP address into a web browser.

Why routers and networks care about MAC addresses

Your router uses MAC addresses to manage which devices are on your network and what they can do. When you connect a new device to your WiFi, the router learns its MAC address and assigns it an IP address — a temporary number that lets the device communicate on the network. The next time that device connects, the router often gives it the same IP address based on recognizing the MAC address.

Some routers let you filter by MAC address, meaning you can tell the router to block certain devices from connecting entirely, or to allow only specific devices. This is useful if you want to prevent a guest's phone from accessing your network, or if you want to make sure only your family's devices can connect. You can also set up a "MAC reservation" on many routers, which tells the router to always give a specific device the same IP address.

MAC addresses are also used in DHCP — the system that automatically assigns IP addresses to devices when they join a network. The router recognizes a device by its MAC address and hands out an IP address based on that recognition. Without MAC addresses, the router would have no way to tell your laptop apart from your phone.

The difference between MAC addresses and IP addresses

People often confuse MAC addresses with IP addresses because both identify devices on a network, but they work at different levels and serve different purposes. A MAC address is a physical identifier burned into your device's network hardware. An IP address is a logical address assigned by software, usually by your router's DHCP server.

MAC addresses only work on your local network — the devices physically connected to your router via WiFi or ethernet. IP addresses work both locally and across the internet. When you visit a website, the website sees your IP address, not your MAC address. Your MAC address never leaves your home or office network.

Another key difference: your MAC address is permanent (or at least very difficult to change), while your IP address can change every time you reconnect to the network. If your router restarts or your device disconnects and reconnects, you might get a different IP address, but your MAC address stays the same.

When you might need to know your MAC address

Most of the time, you don't need to think about your MAC address. Your device and router handle it automatically in the background. But there are situations where knowing it becomes useful.

If you're setting up a new network or troubleshooting connection problems, your IT support person or router manufacturer might ask for your MAC address to identify your device. Some networks — particularly in offices, schools, and hospitals — require you to register your device's MAC address before it's allowed to connect. Guest networks sometimes ask for a MAC address to set time limits or bandwidth restrictions on specific devices.

If you're trying to set up port forwarding on your router (directing traffic from the internet to a specific device on your network), you'll need to know the MAC address of the device you want to forward to. Some people also change their MAC address intentionally for privacy reasons, though this is uncommon and requires technical knowledge.

Why MAC addresses matter for network security

MAC filtering — allowing or blocking devices based on their MAC address — is one layer of network security. If you only want your family's devices to connect to your WiFi, you can create a whitelist of MAC addresses and block everything else. This prevents a neighbor from using your network without permission.

However, MAC filtering alone is not strong security. A person with technical knowledge can spoof a MAC address — change their device to pretend to have a MAC address that's on your whitelist. For real security, you need a strong WiFi password and modern encryption (WPA3 or WPA2), not just MAC filtering.

On the flip side, your MAC address can be used to track you on local networks. If your device broadcasts the same MAC address everywhere it goes, someone monitoring the network could potentially identify and track your device. Some newer devices and operating systems randomize MAC addresses on public networks to prevent this kind of tracking.

How to change your MAC address if you need to

Most operating systems let you change your MAC address through software, a process called MAC spoofing. On Windows, you can change it through Device Manager by editing your network adapter's advanced properties. On Mac, you can use Terminal commands to change it temporarily (it resets when you restart). On iPhone and Android, the option is usually in Settings under WiFi or Network, often labeled "Private Address" or "MAC Randomization".

Changing your MAC address is usually temporary — it resets when you restart your device or reconnect to the network. If you want a permanent change, you'd need to modify the device's firmware, which is much more technical and voids warranties on most devices. Most people never need to change their MAC address; the main reasons are privacy on public networks or troubleshooting network issues.

Frequently Asked Questions

Can someone use my MAC address to hack me?

Not directly. Your MAC address only works on your local network, so someone on the internet can't use it to attack you. Someone on your WiFi network could theoretically use MAC spoofing to impersonate your device, but that requires being physically close to your network and having technical knowledge. A strong WiFi password is much more important than MAC filtering for security.

Will changing my MAC address break my internet connection?

Temporarily changing your MAC address usually doesn't break anything — your router will just treat it as a new device and assign it a new IP address. If you change it permanently at the firmware level, you might need to re-register the device on networks that require MAC registration. Most temporary MAC changes reset when you restart, so the change is reversible.

Why does my device have different MAC addresses for WiFi and Bluetooth?

Because WiFi and Bluetooth are separate network technologies with separate hardware. Your device has a WiFi network card and a Bluetooth radio, and each one has its own MAC address. They're independent systems that don't share identifiers.

Do I need to know my MAC address to use WiFi?

No. Your device and router handle MAC addresses automatically. You only need to know it if someone asks you for it — like IT support, a network administrator, or when registering a device on a restricted network.