MAC Address Calculator

Parse a 48-bit MAC address and return every common format, its OUI, and its unicast or multicast and administration flags.

Technology and NetUpdated 2026-11-183 min read
MAC Address Calculator
Enter six hex octets separated by colons or hyphens, or twelve hex digits with no separators.
Canonical colon form
...
IEEE hyphen form...
Plain hexadecimal...
Unsigned decimal value...
Binary octets...
First three octets (OUI field)...
Individual or group...
Administration flag...

What it does

A MAC address is the identifier that a network interface uses on a local link. The IEEE Registration Authority describes the common form as EUI-48, a 48-bit Extended Unique Identifier that is used as a MAC address under IEEE 802. Its tutorial shows a sample value written as AC-DE-48-23-45-67, with six octets displayed from most significant to least significant.

Several spellings of the same value are in everyday use. RFC 7042 notes that each octet is written as two hexadecimal digits and successive octets are separated by a hyphen, while tools and operating systems often use colons instead. A third form strips the separators entirely. All three describe the same 48-bit number, and the calculator returns all of them.

Two bits in the first octet carry meaning. The IEEE tutorial calls them the I/G bit and the U/L bit. The I/G bit is zero for an individual address and one for a group address. The U/L bit is zero for a universally administered address built from an assigned prefix and one for a locally administered address set by software or an administrator.

The first three octets are often called the OUI, the Organizationally Unique Identifier, although the IEEE now assigns prefixes of several lengths. The tool prints those three octets for convenience. It does not look up a vendor, because a locally administered address can reuse them.

Enter an address below to see its canonical forms, its unsigned decimal and binary values, and the two flag readings. Invalid strings are rejected rather than silently repaired.

How to use

  1. Type a MAC address using six colon separated pairs, six hyphen separated pairs, or twelve hex digits.
  2. Check that every character is a hex digit from 0 to 9 or A to F. The parser is case insensitive.
  3. Read the canonical colon form, the IEEE hyphen form and the plain hexadecimal form in the results.
  4. Use the unsigned decimal value and the spaced binary octets when you need a numeric or bit level view.
  5. Look at the first three octets to see which prefix field the address carries.
  6. Read the two flags to tell an individual address from a group address and a universal one from a local one.

Formula

value = sum(octet[k] x 256^(5-k)) for k = 0 to 5. I/G bit = octet[0] AND 1. U/L bit = (octet[0] >> 1) AND 1.
octet[k]
The k-th two digit hex group, from 0 for the first octet to 5 for the last, each in the range 0 to 255.
value
Unsigned integer from 0 to 2^48 - 1 that the six octets represent.
I/G bit
Least significant bit of the first octet, zero for individual and one for group delivery.
U/L bit
Second least significant bit of the first octet, zero for universal and one for local administration.
OUI field
The first three octets of the address in transmission order.

Each hex pair is parsed as an unsigned byte, then accumulated left to right by multiplying the running value by 256 and adding the byte. The bit flags are read from the first octet only. A group address may be either universal or local, so the two flags are independent of each other.

Worked example

Example: reading 00:1A:2B:3C:4D:5E

Default input: 00:1A:2B:3C:4D:5E, written with colons and six hex octets.

  1. The string matches the six octet colon pattern, so it is accepted and split into 00, 1A, 2B, 3C, 4D, 5E.
  2. The hyphen form is 00-1A-2B-3C-4D-5E and the plain form is 001A2B3C4D5E.
  3. Accumulating the bytes gives 0x001A2B3C4D5E = 112,394,521,950 in decimal.
  4. In binary the six octets are 00000000 00011010 00101011 00111100 01001101 01011110.
  5. The first octet is 00, so the I/G bit is 0 and the address is individual (unicast).
  6. The U/L bit of that same octet is also 0, so the address is universally administered.
  7. The tool reports the OUI field 00:1A:2B together with both flags and all three text forms.

Reference table

Accepted and rejected ways of writing a 48-bit MAC address
FormExampleAcceptedReason
Colon separated00:1A:2B:3C:4D:5EYesSix hex octets with colons
Hyphen separated00-1A-2B-3C-4D-5EYesThe form used by the IEEE RA tutorial
Plain hex001A2B3C4D5EYesTwelve hex digits with no separators
Too short00:1A:2B:3C:4DNoOnly five octets present
Non hex digit00:1G:2B:3C:4D:5ENoG is not a hexadecimal digit

Limits

  • Handles 48-bit EUI-48 and MAC-48 values only, not the 64-bit EUI-64 form used by some technologies.
  • Does not maintain a vendor database, so the printed OUI field is only a prefix, not a confirmed manufacturer.
  • Accepts any syntactically valid value, including locally administered ones, and cannot tell whether an address is truly unique on a network.
  • Does not resolve special purpose blocks such as IPv4 multicast or the broadcast address beyond reading the flag bits.

Common mistakes

  • Mixing colons and hyphens in one string, which the parser rejects as malformed.
  • Dropping a leading zero, so that a single digit octet changes the number of hex digits and breaks the format.
  • Reading the I/G bit as a measure of local administration rather than of individual or group delivery.
  • Assuming that a valid OUI field proves which company made the hardware, when local addresses can reuse it.
  • Treating a 64-bit EUI-64 string as if the first 48 bits could be parsed as a complete MAC address.

Try it yourself

Quick checks. Answers sit tucked under each question.

What do the flags of 0A:00:00:00:00:01 say?

The first octet 0A is 00001010. Bit 0 is 0, so it is individual (unicast). Bit 1 is 1, so it is locally administered.

Convert 01-00-5E-00-00-FB to plain hex and name the address type.

Plain form 01005E0000FB. The first octet 01 has its I/G bit set, so it is a group (multicast) address, and its U/L bit is 0, so that flag reads universal.

What is the decimal value of the broadcast address FF:FF:FF:FF:FF:FF?

Every bit is 1, so the value is 2^48 - 1 = 281,474,976,710,655.

Questions

How long is a MAC address?

A conventional MAC address is 48 bits, or six octets of eight bits. Each octet is written as two hexadecimal digits.

Are colons or hyphens correct?

Both are used. IEEE documents show hyphens, while many operating systems print colons. This tool accepts either separator and returns both forms.

What does the second hex digit of the first octet tell me?

Its two low bits hold the flags. An even digit means the I/G bit is 0, so the address is individual. A digit of 2, 3, 6 or 7 also has the U/L bit set, marking local administration.

What is an OUI?

Organizationally Unique Identifier, the first three octets assigned to an organization by the IEEE Registration Authority. Newer address blocks can use longer prefixes.

Can I change a MAC address in software?

Many interfaces allow it. Doing so usually sets the U/L bit to 1, which marks the result as locally administered.

Why was my address rejected?

It must contain exactly six two digit hex octets separated by one consistent separator, or twelve hex digits with no separator. Spaces and other characters are not part of the format.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.