← All tools/Generators/Security/MAC Address Generator

MAC Address Generator

Random MAC addresses for testing, virtual machines and development — generated in your browser, never sent anywhere.

1–50

First three bytes, e.g. 02:4A:9F. Leave blank for a fully random address.

First address

—

Generating…

First byte of the first address — the two bits that matter:

How it works

First byte, bit 0: 0 = unicast, 1 = multicast.
First byte, bit 1: 1 = locally administered, 0 = universally administered.
A unicast, locally administered address has a second hex digit of 2, 6, A or E.
The other five bytes are filled with crypto.getRandomValues().

With the first byte forced to 0x02 (binary 00000010: bit 0 is 0, so unicast; bit 1 is 1, so locally administered) and the other bytes drawn at random, one generated address is 02:4A:9F:31:C8:7D. The same bytes in hyphen format read 02-4A-9F-31-C8-7D, and in Cisco dot format 024A.9F31.C87D.

Generated with crypto.getRandomValues() in your browser. Nothing is sent to a server, and no address is ever stored. Last updated November 2026.

Frequently asked questions

Will a generated MAC address clash with a real device?

Almost certainly not. Locally administered addresses never collide with a manufacturer’s assigned addresses, and with over 2^46 possible locally administered unicast addresses, a random clash with another test address is vanishingly unlikely.

Why is the second character always 2, 6, A or E?

The second hex digit carries the two low bits of the first byte: bit 0 is 0 for unicast and bit 1 is 1 for locally administered. Those two bits force the digit to 2, 6, A or E.

Can I use these addresses on a real network?

Only for testing, virtual machines and lab work on networks you control. Setting a device’s MAC address to impersonate another device on a network you do not own is not something this tool is for.

What is the Cisco dot format?

Cisco gear writes MAC addresses as three groups of four hex digits separated by dots, for example 024A.9F31.C87D. It is the same 48-bit address, just written differently.

More tools

Tell us what you think

Loving this tool, or stuck on something? Tell us — it takes a minute.

We’ll only use your name and email to reply if needed. The tool and page are filled in for you.