MAC Address Conversion

Clear
Spread the Word!

Detailed Explanations

Learn how to convert a MAC address from decimal or hexadecimal form to binary and hexadecimal formats, and how to identify the vendor using the Organizationally Unique Identifier (OUI).

MAC Address from Decimal to Binary and Hexadecimal

A MAC address can sometimes be represented in decimal format (e.g., each byte as a decimal number). Convert each decimal byte to its 8-bit binary and 2-digit hexadecimal equivalent.

Example: Convert the decimal MAC address 64:141:92:101:67:33 (equivalent to GIGA-BYTE TECHNOLOGY's 40:8D:5C:65:43:21) to binary and hexadecimal.

Solution:

  • 64 (decimal) = 01000000 (binary) = 40 (hex)
  • 141 (decimal) = 10001101 (binary) = 8D (hex)
  • 92 (decimal) = 01011100 (binary) = 5C (hex)
  • 101 (decimal) = 01100101 (binary) = 65 (hex)
  • 67 (decimal) = 01000011 (binary) = 43 (hex)
  • 33 (decimal) = 00100001 (binary) = 21 (hex)

Result: 64:141:92:101:67:33 = 01000000:10001101:01011100:01100101:01000011:00100001 (binary) = 40:8D:5C:65:43:21 (hex)

MAC Address from Hexadecimal to Binary

Convert each hexadecimal byte of the MAC address to its 8-bit binary equivalent.

Example: Convert 00:1A:A0:12:34:56 (Dell) to binary.

Solution:

  • 00 = 00000000
  • 1A = 00011010
  • A0 = 10100000
  • 12 = 00010010
  • 34 = 00110100
  • 56 = 01010110

Result: 00:1A:A0:12:34:56 = 00000000:00011010:10100000:00010010:00110100:01010110

MAC Address to Hexadecimal

MAC addresses are typically provided in hexadecimal format, but they can be confirmed from decimal or other formats.

Example: Confirm the hexadecimal format of 0:26:160:18:52:86 (equivalent to Dell’s 00:1A:A0:12:34:56 in decimal).

Solution:

  • 0 (decimal) = 00 (hex)
  • 26 (decimal) = 1A (hex)
  • 160 (decimal) = A0 (hex)
  • 18 (decimal) = 12 (hex)
  • 52 (decimal) = 34 (hex)
  • 86 (decimal) = 56 (hex)

Result: 0:26:160:18:52:86 (decimal) = 00:1A:A0:12:34:56 (hex)

MAC Address to OUI Vendor

The first three bytes (six hexadecimal digits) of a MAC address represent the Organizationally Unique Identifier (OUI), which identifies the device manufacturer. You can look up OUIs using tools like the IEEE OUI database or websites such as Wireshark OUI Lookup.

Example 1: For 00:1A:A0:12:34:56, the OUI is 00:1A:A0.

Lookup: OUI 00:1A:A0 belongs to Dell Inc.

Example 2: For 40:8D:5C:65:43:21, the OUI is 40:8D:5C.

Lookup: OUI 40:8D:5C belongs to GIGA-BYTE TECHNOLOGY CO.,LTD.

Result:

  • MAC: 00:1A:A0:12:34:56 — Vendor: Dell Inc.
  • MAC: 40:8D:5C:65:43:21 — Vendor: GIGA-BYTE TECHNOLOGY CO.,LTD.

Note: Use reliable OUI lookup tools like the IEEE database (ieee.org) or Wireshark to verify vendors.