What Is a MAC Address?

A MAC address (Media Access Control address) is the unique hardware identifier assigned to a network adapter so that data can be delivered to the right device on a local network. Every Wi-Fi card, Ethernet port and Bluetooth radio has one. It is a 48-bit value, normally written as six pairs of hexadecimal digits such as 00:1A:2B:3C:4D:5E. This guide explains what a MAC address is, how its format and vendor prefix work, how it differs from an IP address, how to find yours on Windows, macOS, iPhone and Android, and how modern devices randomize it to protect your privacy.

What a MAC address actually is

When two devices talk on the same local network — your laptop and your router, for example — they do not address each other by IP address at the lowest level. They address each other by MAC address. The MAC address operates at Layer 2, the data link layer of the OSI model, and identifies a specific physical (or virtual) network interface. Because of this, a MAC address is sometimes called a physical address, a hardware address, or an Ethernet address.

The manufacturer of a network chip assigns each adapter a value known as the burned-in address (BIA), stored in the device firmware. In principle, no two adapters anywhere in the world should share the same burned-in MAC address. That global uniqueness is what lets a switch reliably forward a frame to exactly one port instead of flooding it everywhere.

A single computer often has several MAC addresses, not just one. A typical laptop has a separate MAC for its Wi-Fi adapter, its wired Ethernet adapter and its Bluetooth radio. Virtual machines, containers and software network bridges each get their own MAC address too, so it is normal to see many entries when you list a system's interfaces.

The 48-bit format and the OUI vendor prefix

A standard MAC address (technically an EUI-48 identifier) is 48 bits long. Forty-eight bits is six bytes, and each byte is written as two hexadecimal digits, giving the familiar twelve-character form. The same address can appear in several notations depending on the vendor or operating system:

  • Colon-separated: 00:1A:2B:3C:4D:5E (common on Linux, macOS and most documentation)
  • Hyphen-separated: 00-1A-2B-3C-4D-5E (common on Windows)
  • Dot-separated: 001A.2B3C.4D5E (common on Cisco equipment)

All three describe the identical 48-bit value; only the punctuation differs. With 48 bits there are 2^48 possible combinations — over 281 trillion — which is why the supply of unique hardware addresses has lasted so long.

How the 48 bits are split

The address divides cleanly into two 24-bit halves, each serving a different purpose:

Portion Bits Meaning
OUI (vendor prefix) First 24 bits Organizationally Unique Identifier, assigned by the IEEE to a specific manufacturer.
NIC-specific Last 24 bits Device identifier chosen by that manufacturer to make each adapter unique.

The first half is the OUI, short for Organizationally Unique Identifier. The IEEE Registration Authority sells OUI blocks to hardware makers, so the leading three octets of any MAC address reveal which company built the chip. For instance, many Apple devices use OUIs that begin with prefixes the IEEE registered to Apple, and Cisco, Intel and Samsung each have their own registered ranges. The manufacturer then assigns the trailing 24 bits to individual units coming off the line. You can paste a MAC address into our MAC Address Lookup tool to resolve the OUI to its registered vendor.

Two control bits worth knowing

The very first byte of a MAC address carries two special flag bits that explain a lot of real-world behavior:

  • The I/G bit (least-significant bit of the first octet) marks whether the address is unicast (one device) or multicast (a group of devices). The all-ones broadcast address FF:FF:FF:FF:FF:FF reaches every device on the segment.
  • The U/L bit (second-least-significant bit of the first octet) marks whether the address is universally administered (a real, IEEE-assigned burned-in address) or locally administered (set by software). Randomized and spoofed MAC addresses set this bit, which is one technical signal that an address was not assigned by a manufacturer.

If you ever need to generate test addresses with the correct bits set, the MAC Address Generator produces valid, well-formed values you can use in lab and configuration work.

MAC address vs IP address

MAC addresses and IP addresses are often confused because both identify devices, but they work at different layers and solve different problems. The simplest way to remember it: the IP address gets your data to the right network, and the MAC address gets the frame to the right device on that network. They work together on every single connection you make.

Property MAC address IP address
OSI layer Layer 2 (data link) Layer 3 (network)
Scope Local network segment only Routable across networks and the internet
Assigned by Manufacturer (then optionally software) ISP, router (DHCP), or manual configuration
Typical lifetime Fixed for the adapter (unless randomized) Changes when you join a different network
Example 00:1A:2B:3C:4D:5E 192.168.1.42 or 2001:db8::42
Visible to websites? No — stops at your router Yes — your public IP is what they see

How do the two cooperate? When your computer wants to send data to another device on the same network, it knows the destination IP address but needs the matching MAC address to actually deliver the frame. On IPv4 it uses the Address Resolution Protocol (ARP) to ask "who has this IP?" and learn the corresponding MAC. IPv6 does the same job with Neighbor Discovery Protocol (NDP). For traffic leaving the local network, your device sends the frame to the router's MAC address; the router then strips the Layer 2 framing and forwards the packet onward by IP. This is also why remote servers never learn your device MAC — it is replaced at the first hop. To see what the wider internet sees instead, run our IP Lookup tool.

How to find your MAC address

Finding your MAC address is quick on every major platform. Note that if your device uses MAC randomization (covered below), the address shown in your Wi-Fi network details may be a private, per-network value rather than the burned-in hardware address.

Windows

There are two reliable methods on Windows 10 and 11:

  1. Press Windows + R, type cmd, and press Enter.
  2. In the Command Prompt, type ipconfig /all and press Enter.
  3. Find your adapter (for example "Wireless LAN adapter Wi-Fi") and read the value next to Physical Address, shown in hyphen notation like 00-1A-2B-3C-4D-5E.

Alternatively, open Settings → Network & internet, click your active connection, and scroll to the hardware properties, where the MAC address is listed alongside the IP details. The command getmac /v also prints a clean list of every adapter and its MAC.

macOS

  1. Open System Settings (or System Preferences on older versions).
  2. Go to Network and select your active interface, such as Wi-Fi.
  3. Click Details (or Advanced) and open the Hardware tab; the MAC address is shown there.

From the Terminal you can also run ifconfig en0 | grep ether (Wi-Fi is usually en0 on laptops). The value after ether is your MAC address.

iPhone and iPad (iOS / iPadOS)

  1. Open Settings → General → About and look for Wi-Fi Address. This is the device's underlying hardware MAC.
  2. To see the address actually used on a given network, open Settings → Wi-Fi, tap the (i) next to the network, and read the Wi-Fi Address there. With "Private Wi-Fi Address" enabled, this will be a randomized value specific to that network.

Android

  1. Open Settings → About phone (or About device) and look under Status for the Wi-Fi MAC address.
  2. For the per-network value, open Settings → Network & internet → Wi-Fi, tap the connected network, and view its details. Android labels its randomized option "Use randomized MAC" or "Use device MAC".

Menu names vary slightly by manufacturer (Samsung One UI, Google Pixel and others differ), but the MAC address always lives in the Wi-Fi or About section.

Linux

Open a terminal and run ip link. Each interface lists a link/ether line followed by its MAC address. The older ifconfig command shows the same value after the ether (or HWaddr) label.

On your router

Your router's admin page keeps a table of every device currently on the network, pairing each assigned IP address with the device's MAC address and often a hostname. This is the place to confirm which physical device holds which address, and it is invaluable when you are setting up DHCP reservations or troubleshooting an unfamiliar device on your Wi-Fi.

MAC randomization and privacy

For most of networking history, every device broadcast its real, permanent MAC address whenever it scanned for or connected to Wi-Fi. That created a privacy problem: because the address never changed, any Wi-Fi operator — a store, an airport, a shopping mall — could recognize and follow the same device across days, locations and visits, building a movement profile without consent.

To close that gap, the major platforms adopted MAC randomization. Instead of advertising the burned-in hardware address, the device generates a different, software-defined MAC (one with the locally administered U/L bit set):

  • iOS and iPadOS use a feature called Private Wi-Fi Address, on by default, which assigns a stable but unique MAC per network. The address stays consistent for that network so things like captive portals and parental controls keep working, but a different network sees a different address.
  • Android randomizes the MAC per network by default and can be set to rotate the address periodically for even stronger separation between sessions.
  • Windows offers Random hardware addresses, which can be enabled globally or per network, including a daily-rotating option for networks you connect to often.
  • Linux supports randomization through NetworkManager and similar tools, both during scanning and when associated with a network.

Randomization is a meaningful privacy win, but it has practical side effects. Networks that rely on a fixed MAC — for MAC-address allow-lists, device-based parental controls, or DHCP reservations — may not recognize a randomized device. In those cases you can usually turn off the private address for that specific network, which makes the device fall back to its real hardware MAC. It is also worth remembering what randomization does not do: it hides you from local Wi-Fi tracking, but it has no effect on how websites identify you over the internet. That is governed by your IP address and browser fingerprint, not your MAC.

A note on MAC spoofing

Deliberately setting a chosen MAC address is called spoofing. It has legitimate uses — testing, privacy, and working around an ISP that ties service to a single registered adapter — but it can also be abused to impersonate another device or bypass a MAC allow-list. MAC filtering on its own is therefore weak security: it raises the bar slightly but is trivial to defeat, so it should never be your only defense. For a broader look at layered protection, see our Network Security Basics guide.

Related tools & reading

Frequently asked questions

What is a MAC address in simple terms?

A MAC (Media Access Control) address is a unique hardware identifier burned into a network adapter at the factory, such as your laptop Wi-Fi card or your phone Bluetooth radio. It is a 48-bit number, usually shown as six pairs of hexadecimal digits like 00:1A:2B:3C:4D:5E. Its job is to identify a device on the local network segment so frames can be delivered to the correct adapter.

What is the difference between a MAC address and an IP address?

A MAC address identifies the physical network adapter and works at Layer 2 (the data link layer) within a single local network. An IP address identifies a device at Layer 3 (the network layer) and is used to route data across networks all the way to the internet. The MAC address normally stays the same for the life of the adapter, while your IP address changes depending on which network you join. In short: the IP gets a packet to the right network, the MAC gets the frame to the right device on that network.

Can a MAC address be changed?

Yes. Although the manufacturer assigns a permanent "burned-in address" (BIA) in the adapter firmware, virtually every modern operating system lets software override the value it advertises. This is called MAC spoofing or, when done automatically for privacy, MAC randomization. Windows, macOS, iOS, Android and Linux can all present a different MAC, either per network or on a rotating schedule.

Can someone track me using my MAC address over the internet?

Generally no. A MAC address is only visible on the local network segment. As soon as your traffic passes through your router, the router rewrites the source MAC, so remote websites and servers never see your device MAC. They see your public IP address instead. MAC addresses do matter for local tracking, however, which is exactly why phones now randomize them when scanning for and joining Wi-Fi networks.

What is an OUI in a MAC address?

OUI stands for Organizationally Unique Identifier. It is the first 24 bits (the first three octets) of a MAC address, assigned by the IEEE to a specific manufacturer. Because the OUI maps to a vendor, you can look up the first half of a MAC address to identify who made the network chip, for example Apple, Cisco, Intel or Samsung. The remaining 24 bits are assigned by that manufacturer to make each adapter unique.

Why does my phone show a "private" or random MAC address?

Modern versions of iOS and Android use a randomized MAC address for each Wi-Fi network by default. Instead of broadcasting your real hardware address, the phone generates a stable but private MAC for that specific network. This stops shops, airports and other Wi-Fi operators from recognizing and following the same device across visits. You can usually toggle this per-network in the Wi-Fi settings if a network requires your real address.

Last reviewed: Reviewed by the

How this tool works: This tool runs in your browser and on our server in real time. Depending on the tool, results are computed directly from the input you provide or retrieved from live, authoritative data sources at the moment you run a lookup. We do not sell your data, and your lookups are kept private — any history shown here is stored only on your device.