Calculator: MAC address formatting
Enter the labelled inputs to calculate: Result :; Result −; Result ₁₆; Value I/G; Value U/L.
Enter a finite value within the formula’s domain and supported numeric range.
How the calculation works
MAC=48 bits; I/G=bit₀; U/L=bit₁
IPv4 uses strict dotted decimal. IPv6 accepts embedded IPv4 tails and compresses the longest leftmost zero run. Zone identifiers are excluded. Prefix tools describe address ranges, not routability or host allocation policy.
Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Frequently asked questions
How is the result calculated?
MAC=48 bits; I/G=bit₀; U/L=bit₁
What assumptions apply?
IPv4 uses strict dotted decimal. IPv6 accepts embedded IPv4 tails and compresses the longest leftmost zero run. Zone identifiers are excluded. Prefix tools describe address ranges, not routability or host allocation policy.
How precise are the displayed results?
Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
How we verified this calculator
The calculator is checked against 3 reference cases computed independently from the sources below. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Address = 00:1a:2b:3c:4d:5e
|
Result :: 00:1A:2B:3C:4D:5E
Result −: 00-1A-2B-3C-4D-5E
Result ₁₆: 001a2b3c4d5e
Value I/G: 0
|
| 2 |
Address = 01-00-5E-00-00-FB
|
Result :: 01:00:5E:00:00:FB
Result −: 01-00-5E-00-00-FB
Result ₁₆: 01005e0000fb
Value I/G: 1
|
| 3 |
Address = 0200.5e10.0001
|
Result :: 02:00:5E:10:00:01
Result −: 02-00-5E-10-00-01
Result ₁₆: 02005e100001
Value I/G: 0
|
Sources
- Guidelines for Use of Extended Unique Identifier (EUI), Organizationally Unique Identifier (OUI), and Company ID (CID) — IEEE Registration Authority