Copied!

What Is a MAC Address?

A MAC address is the 48-bit hardware ID of a network card. How the OUI gives away the vendor, how to find yours on any OS, randomization, and MAC vs IP.

What Is a MAC Address?

A MAC address (Media Access Control address) is the hardware identifier of a network interface card (NIC). IP addresses work at the network layer (OSI Layer 3) and move data across the internet; MAC addresses work one level down, at the data link layer (Layer 2), and move data across the local segment you are on. Anything with a network port has one: laptops, phones, smart TVs, printers, IoT gadgets. A device with both Wi-Fi and Ethernet has one MAC per interface.

The difference in one line: an IP address is like a mailing address and changes with the network you join. A MAC address is like a serial number, set by the manufacturer and (traditionally) fixed to the hardware.

MAC Address Format

A MAC is 48 bits (6 bytes), written as six pairs of hex digits with colons or hyphens: 00:1A:2B:3C:4D:5E or 00-1A-2B-3C-4D-5E. The two halves mean different things:

PortionBitsBytesPurposeExample
OUI (Organizationally Unique Identifier)First 24 bitsBytes 1 to 3Identifies the manufacturer/vendor00:1A:2B
NIC SpecificLast 24 bitsBytes 4 to 6Unique identifier assigned by manufacturer3C:4D:5E

Two bits in the first byte carry extra meaning:

  • Bit 0 (least significant): 0 = unicast, 1 = multicast
  • Bit 1: 0 = globally unique (set by the manufacturer), 1 = locally administered (overridden by software)

OUI: Identifying the Vendor

The IEEE assigns the OUI, the first three bytes, to hardware makers. Look it up and you know who built the interface:

OUI PrefixVendor
00:50:56VMware
00:0C:29VMware (another range)
DC:A6:32Raspberry Pi Foundation
F8:FF:C2Apple
3C:5A:B4Google
B4:2E:99Samsung
00:15:5DMicrosoft (Hyper-V)

Our MAC Address Lookup finds the vendor for any MAC address.

How to Find Your MAC Address

Operating SystemCommandLook For
Windowsipconfig /all"Physical Address" under your network adapter
macOSifconfig en0"ether" field
Linuxip link show"link/ether" field
AndroidSettings → About Phone → Status → Wi-Fi MAC addressMAC address field
iOSSettings → General → About → Wi-Fi AddressWi-Fi Address field

On Windows, getmac /v prints a tidy list of every adapter and its MAC.

MAC Address Spoofing and Randomization

Spoofing means telling the OS to send a different MAC in its frames; the hardware address stays, only what goes on the wire changes. People do it for privacy (no tracking from one Wi-Fi network to the next), to get past MAC filtering on whitelisted networks, or as admins testing MAC-based access controls. Modern systems randomize for you:

  • iOS 14+ and Android 10+ use a random MAC for each Wi-Fi network by default.
  • Windows 10/11 has an optional "Random hardware addresses" setting for Wi-Fi.
  • macOS Sequoia+ supports private Wi-Fi addresses.

MAC Address vs IP Address

FeatureMAC AddressIP Address
OSI LayerLayer 2 (Data Link)Layer 3 (Network)
ScopeLocal network onlyLocal and internet
AssignmentHardware manufacturer (or randomized)DHCP server or manual config
PersistenceTypically permanent (burned into NIC)Can change with network/DHCP
Format48-bit hexadecimal (00:1A:2B:3C:4D:5E)32-bit decimal (IPv4) or 128-bit hex (IPv6)
RoutableNo, only within the local segmentYes, routed across the internet

One thing that surprises people: as a packet crosses the internet the IP addresses stay the same the whole way, but the MAC addresses change at every hop. Each router rewrites them to its own MAC and the next hop's.

MAC Address Lookup
Try it on a real address. Free, no account needed.