In this article
What Is a MAC Address?
A MAC (Media Access Control) address is a unique hardware identifier assigned to every network interface controller (NIC). Every device that connects to a network — whether via Ethernet, Wi-Fi, or Bluetooth — has at least one MAC address that distinguishes it from all other devices on the local network segment.
MAC addresses operate at the data link layer (Layer 2) of the OSI model. Unlike IP addresses, which can change as devices move between networks, MAC addresses are typically burned into the hardware by the manufacturer and remain constant throughout the device's lifetime.
MAC Address Formats
MAC addresses are 48-bit values typically displayed as six pairs of hexadecimal digits. Several notation styles are used across different platforms.
- Colon-separated — AA:BB:CC:DD:EE:FF — the most common format, used by Linux, macOS, and most network documentation
- Hyphen-separated — AA-BB-CC-DD-EE-FF — used by Windows and IEEE 802 standards
- Dot-separated — AABB.CCDD.EEFF — used by Cisco network equipment, groups of four hex digits separated by dots
- No separator — AABBCCDDEEFF — sometimes used in configuration files and databases for compact storage
Try it free — no signup required
Validate a MAC Address →How MAC Address Validation Works
MAC address validation checks whether a given string conforms to one of the accepted notation formats and contains valid hexadecimal characters.
- Character check — only hexadecimal characters (0-9, A-F, a-f) and valid separators (colons, hyphens, or dots) are allowed
- Length check — the address must contain exactly 12 hexadecimal digits (48 bits) regardless of separator style
- Format consistency — separators must be used consistently throughout the address (no mixing colons with hyphens)
Common Use Cases
MAC address validation is essential in network administration, security, and device management.
- Network access control — MAC filtering on routers and switches restricts network access to known devices only
- DHCP reservations — administrators assign fixed IP addresses to specific MAC addresses for consistent network configuration
- Device inventory management — IT teams track hardware assets by collecting and validating MAC addresses across the network
- Wake-on-LAN — remotely powering on computers requires sending a magic packet to the target device's MAC address
OUI and Vendor Lookup
The first three octets (24 bits) of a MAC address form the Organizationally Unique Identifier (OUI), which identifies the manufacturer.
- The IEEE maintains a public OUI registry where manufacturers register their assigned prefixes
- Looking up the OUI reveals the manufacturer: for example, 00:1A:2B belongs to Ayecom Technology, while DC:A6:32 identifies a Raspberry Pi device
- Some devices use locally administered addresses (the second least significant bit of the first octet is set to 1), which do not follow the OUI scheme
Frequently Asked Questions
Can a MAC address be changed?
Yes. While MAC addresses are burned into hardware, most operating systems allow software-level overrides (MAC spoofing). This is commonly used for privacy, testing, or network troubleshooting. The hardware address remains unchanged — only the software-reported address is modified.
Are MAC addresses globally unique?
In theory, yes — the IEEE OUI system ensures manufacturers assign unique addresses. In practice, some cheap devices reuse addresses, and MAC spoofing can create duplicates on a network. MAC uniqueness is only guaranteed within a single LAN segment.
What is the difference between MAC and IP addresses?
MAC addresses identify hardware at the data link layer and are typically permanent. IP addresses identify devices at the network layer and can change based on network configuration. Routers use IP addresses for inter-network routing, while switches use MAC addresses for local frame delivery.