Random MAC

Generate a hardware-style address.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

The local bit is on by default so the address is not presented as a factory address.

It is not taken from a real device.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Generate MAC.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

Six bytes, unicast, local bit on by default

The bits that are forced

Six bytes are filled with crypto.getRandomValues. The first byte is then adjusted. Unless the local control is the string false, the byte is ORed with 0x02 and ANDed with 0xfe. The OR sets the locally administered bit, the bit that marks an address as assigned by local policy rather than by a manufacturer. The AND clears the least-significant bit, which is the individual/group bit, so the address is unicast rather than multicast. The other five bytes stay as drawn. The panel prints six colon-separated lowercase hex octets.

With the control left on, you should not present the address as a factory burned-in address. The local bit is on because the code set it. That is the default. The page is making an example hardware-style id, not reading a NIC.

Turning the control off

If the local control is false, the first byte is only ANDed with 0xfe. The multicast bit is still cleared. The locally administered bit is not forced off. It remains whatever the random byte happened to contain, so about half of those draws still have the local bit set, and about half do not. Off does not mean “universally administered” in a guaranteed way. It means the code stopped setting the bit. There is still no OUI table and no lookup of a vendor.

What the string is not

It is not taken from a real device, and it is not leased from a registry. Using it on a network you do not operate can collide with a real adapter. The page does not check. It is not an IP address. The IP page either repeats a documentation constant or builds a coarse v4 or v6 string. It is not a secret. A MAC is an identifier that is often visible on a local network. A password or a capability token should not be this address. A new click draws new bytes and applies the same bit rules. Nothing is stored, and analytics does not receive the address.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.