MAC Address Formatting: Four Notations, Multicast and Locally Administered Bits

Open Tool MAC Address Formatter

Twelve hex digits

A MAC address is six bytes written as twelve hex characters. Four notations dominate: colon-separated aa:bb:cc:dd:ee:ff on Unix and Linux, hyphenated aa-bb-cc-dd-ee-ff on Windows, Cisco dotted aabb.ccdd.eeff in network device configs, and the undelimited aabbccddeeff common in databases and code. All four denote one address, and conversion changes punctuation only.

Steps

  1. Enter any notation, upper or lower case; the separator is detected.
  2. Click Format for all four forms plus flags showing unicast or multicast and global or locally administered.
  3. Example loads a standard value, Download saves it and Clear resets.

The two flag bits in the first byte

The least significant bit of the first byte is the I/G bit, zero for unicast and one for multicast; the next bit is U/L, zero meaning IEEE-assigned and one meaning locally administered. Take aa:bb:cc:dd:ee:ff: aa is 10101010, so the low bit is 0 for unicast and the next is 1 for local administration, making this a locally administered unicast address rather than a vendor-assigned NIC address. That bit is the fastest way to spot virtual and randomly generated addresses.

Why Cisco uses three groups of four

Cisco's aabb.ccdd.eeff splits twelve characters into three four-digit groups that look like three 16-bit values. The advantage is checkability on a command line, where copy-paste on early gear dropped characters easily. Note that this is grouping only, with no reordering: aabb remains the first two bytes. Mistaking it for byte swapping causes config mismatches, a common operational misreading.

EUI-64 and IPv6

Turning a 48-bit MAC into a 64-bit interface identifier inserts fffe in the middle and inverts the U/L bit of the first byte. So aa:bb:cc:dd:ee:ff becomes a8:bb:cc:ff:fe:dd:ee:ff, with aa dropping to a8 because that bit flipped from one to zero. This is the older SLAAC habit; privacy concerns have pushed most systems to random identifiers that do not expose the MAC.

⏫︎