MAC address format converter
Paste one MAC address or many, in any common form, to get them with colons, with dashes, in Cisco's dotted form or as plain hex, in capitals or lower case. One address alone also gets its bits read: unicast or multicast, universal or local.
Converted
The forms
| Form | Example | Note |
|---|---|---|
| Six pairs with dashes | 00-00-5E-00-53-01 | The form RFC 9542 uses. |
| Six pairs with colons | 00:00:5e:00:53:01 | |
| Three groups of four with dots | 0000.5e00.5301 | The form Cisco IOS shows and takes (H.H.H). |
| Twelve hex digits | 00005e005301 |
Capitals or lower case make no difference to the address.
The bits of the first byte
| Bit | When it is 0 | When it is 1 |
|---|---|---|
| Lowest (M, also called I/G) | Individual: one interface (unicast) | Group: multicast, or broadcast when every bit of the address is 1 |
| Second-lowest (X, also called U/L) | Universal: the address starts with a prefix of 24, 28 or 36 bits that the IEEE assigned to an organization | Local: set by a network administrator or by the operating system of the device |
So the second hex digit tells: 2, 6, A or E there means a locally administered unicast address, such as 02-00-5E-10-00-01. A device can make up a random local address so that it is harder to track (RFC 9724). When the local bit is 1 and the network uses the IEEE 802 Structured Local Address Plan (SLAP), the next two bits put the address in one of four quadrants; the page names it (RFC 9542 section 2.1.1).
The page does not look up the organization that holds a prefix.
Multicast MAC addresses for IP
- IPv4: 01-00-5E and the last 23 bits of the group address (RFC 1112 section 6.4). A group address has 28 bits that change, so 32 groups share each MAC address: 224.0.0.251 and 239.128.0.251 both use 01-00-5E-00-00-FB.
- IPv6: 33-33 and the last 32 bits of the group address (RFC 2464 section 7). ff02::1 uses 33-33-00-00-00-01.
- Broadcast: FF-FF-FF-FF-FF-FF, every bit 1.
Addresses for examples
RFC 9542 sets aside 00-00-5E-00-53-00 to 00-00-5E-00-53-FF for unicast examples and 01-00-5E-90-10-00 to 01-00-5E-90-10-FF for multicast ones, as this page uses. A unicast address also gets its modified EUI-64 interface ID and its IPv6 link-local address; the IPv6 tool explains how they are made.
Sources
- The bits, SLAP and the addresses for examples: RFC 9542 sections 2.1.1 and 2.1.4. Universal and local addresses, and random ones: RFC 9724 section 2.
- Multicast: RFC 1112 section 6.4 and RFC 2464 section 7. Broadcast: the Linux kernel's etherdevice.h (v7.3).
- The Cisco form: Cisco's command reference for Catalyst 3850 switches (show mac address-table).
More Network tools
-
CIDR subnet calculator
Network, broadcast, host range, subnet mask and wildcard mask for IPv4 and IPv6 prefixes.
-
IP range to CIDR converter
Turn a range such as 10.0.0.5-10.0.0.70 into CIDR blocks, merge a list of blocks, and check whether an address is in it.
-
IP address type checker
See whether an address is private, CGNAT, link-local, loopback, documentation, multicast or public, with its RFC.
-
IPv6 expander, compressor and reverse name
Write an IPv6 address in full or in its shortest form, get its ip6.arpa name, or build one from a MAC address.
-
MTU and MSS calculator
Work out the MTU and TCP MSS inside PPPoE, GRE, VXLAN, WireGuard and IPsec, with ping commands that test them.
-
Port number lookup
Look up a port such as 445 or 5985, or a service name, in IANA's registry, with what Windows and Active Directory use it for.
-
DHCP option encoder and decoder
Build or read the hex of option 121 and 249 static routes, option 119 search lists and option 43 for Cisco and UniFi.
-
NPS reason code lookup
Read why Network Policy Server denied a request: events 6273 and 6274, and reason codes such as 16, 48 and 65.
-
Wi-Fi reason and status codes
Look up 802.11 deauthentication and disassociation reason codes and association status codes.
-
DSCP and ToS converter
Convert DSCP, ToS and CoS values, with the Wi-Fi priorities of RFC 8325 and the Teams QoS markings.