← Hashito System home 日本語 Tools Blog
Generate
Convert notation

Paste addresses you already have and they are rewritten line by line into the notation selected above. Mixed separators are fine; each line is read as 12 hex digits.

How a MAC address is built, and which values to use in tests

48 bits: OUI plus device part

A MAC address is 48 bits, that is six bytes. The first three bytes are the OUI that IEEE assigns to a manufacturer; the remaining three are assigned by that manufacturer per device. In a value such as 00:1A:2B the left three groups are the OUI. Entering up to three groups in the prefix field fixes them and fills the rest at random.

The two flag bits in the first byte (I/G and U/L)

The lowest bit of the first byte (0x01) is the I/G bit: 1 means multicast, 0 means unicast. The next bit (0x02) is the U/L bit: 1 means locally administered, 0 means a globally assigned IEEE address. With the locally administered option enabled, generation sets 0x02 and clears 0x01, producing a locally administered unicast address.

Why tests should use locally administered values

Six fully random bytes can land inside a real vendor OUI. A value printed in a document or screenshot then appears to name hardware you never touched. Locally administered addresses are defined not to overlap the assigned ranges, so that confusion cannot happen. It is the same reasoning behind using 192.0.2.0/24 for documentation IP addresses.

Notation differences (same value)

NotationExampleWhere you see it
Colons00:1a:2b:3c:4d:5eLinux ip / ifconfig, macOS
Hyphens00-1A-2B-3C-4D-5EWindows ipconfig /all
Dotted groups of four001a.2b3c.4d5eCisco show commands
No separator001a2b3c4d5eConfig files, logs, CSV

All four carry the same 48-bit value and differ only in separators and letter case. Some devices and tools accept just one form, so convert to whatever the destination expects.

Frequently asked questions

Which MAC addresses are safe to use in tests?

Use locally administered addresses. When the second-lowest bit of the first byte (value 0x02) is set, the address is defined as locally administered and never overlaps the OUI ranges IEEE assigns to vendors. Such values cannot collide with a real device, so they are suited to documentation, testing and dummy data.

Which MAC address separator is correct?

It depends on where you paste it. Colons (00:1a:2b:3c:4d:5e) are usual on Linux and macOS, hyphens (00-1A-2B-3C-4D-5E) on Windows, and dotted groups of four (001a.2b3c.4d5e) on Cisco equipment. All of them carry the same 48-bit value; only the notation differs.

What is the OUI in the first three bytes?

It is the Organizationally Unique Identifier that IEEE assigns to a manufacturer. The remaining three bytes are assigned by that manufacturer per device. Fixing a known OUI produces vendor-like values, but those can collide with real hardware, so prefer a locally administered address for testing.