DNSfinder.net
Random MACs

MAC Address Generator

This generator produces random MAC addresses for virtual machines, containers, lab networks and test data. By default each address is unicast and locally administered, the combination reserved for software-assigned addresses, so it cannot collide with a manufacturer's burned-in addresses. Choose how many you need (up to 100), the notation, letter case and an optional fixed prefix of one to five bytes. The list is created in your browser and redrawn whenever an option changes.

Loading MAC Address Generator...

Querying live edge resolvers and network infrastructure...

How to use the MAC Address Generator

  1. Pick a quantity from How many (1, 5, 10, 25, 50 or 100) and a notation from Format.
  2. Leave Locally administered ticked and Multicast clear unless you have a specific reason to change them.
  3. Optionally type a fixed prefix of one to five bytes, such as 52:54:00, to keep every address inside one block.
  4. Click Copy all to copy the list one address per line, or Regenerate for a fresh set.

What to look for

Check the second hex digit

With the default options every address has 2, 6, A or E as its second hex digit, as in 3A:5F:11:C2:9D:04. That digit shows the locally administered bit is set and the multicast bit is clear, which is what a virtual or test interface should have.

Set format and case first

The Format menu switches the list between colons, hyphens, Cisco-style dotted groups of four and bare hex, and the Uppercase box controls letter case. Changing either one redraws the list with new random values, so choose the notation before you copy anything.

A prefix overrides the checkboxes

Typing a fixed prefix greys out the Locally administered and Multicast boxes, because the first byte now comes from you. The tool does not correct it: a prefix beginning 01 produces multicast addresses, and one beginning 00 produces addresses in the globally assigned range.

Guide

Choosing safe MAC addresses for virtual machines and test networks

The two flag bits in the first byte

A MAC address is 48 bits, and two bits of its first byte have fixed meanings. The lowest is the individual/group bit: 0 for a unicast address that belongs to one interface, 1 for a multicast address that names a group. The bit next to it is the universal/local bit: 0 for an address issued from a manufacturer's IEEE-assigned block, 1 for one chosen locally.

Without a prefix, the generator draws six random bytes and then forces those two bits to match the checkboxes. The other 46 bits stay random. Because the flags sit in the low half of the first byte, you can read them from the second hex digit of any address in the list.

  • Locally administered on, Multicast off (the default): second digit 2, 6, A or E.
  • Both off: second digit 0, 4, 8 or C, the range that real vendor blocks occupy.
  • Multicast on: an odd second digit, which no interface accepts as its own address.

Working with a fixed prefix

The Fixed prefix / OUI field accepts one to five whole bytes of hex, with or without colons, hyphens or dots. Those bytes are copied to the front of every address and the rest is random. Three bytes is the usual choice, since that is the length of a vendor OUI: 52:54:00 keeps addresses in the block that QEMU and KVM use for guests.

The tool does not second-guess what you type. If the first byte is odd, every address is multicast. If the prefix comes from a registered vendor block, the addresses look like that vendor's hardware in any inventory or OUI lookup. An odd number of hex digits, or more than five bytes, shows an error asking for one to five bytes of hex.

For addresses that will appear in manuals or screenshots, RFC 7042 set aside 00:00:5E:00:53:00 to 00:00:5E:00:53:FF for documentation. Enter 00:00:5E:00:53 as the prefix and only the last byte varies. That leaves 256 possible values, so a large batch repeats some of them.

Where generated addresses are used

Virtual machines and containers are the common case. A hypervisor normally assigns addresses itself, but cloned guests, hand-written machine definitions and static DHCP reservations all need addresses you choose. Taking them from the locally administered range keeps them clear of the burned-in address of any physical card that later joins the same network.

The second use is test data. DHCP servers, network access control, asset inventories and log parsers all need realistic MAC addresses in their fixtures, and copying real ones from production leaks device information. To check what an existing prefix belongs to before you reuse it, MAC address lookup returns the registered manufacturer.

What a duplicate or wrong address does

Uniqueness matters only inside one layer 2 segment, but there it matters completely. If two interfaces on the same VLAN share an address, the switch keeps moving that address between two ports, frames reach whichever host spoke last, and both suffer intermittent loss that is tedious to trace. Cloned virtual machines that kept the template's address are the usual culprit.

A multicast address on an interface fails sooner: operating systems reject it, because a source address must be unicast. An address from a real vendor's block works, but it misleads whoever reads the ARP table later. Changing an interface's address also changes its DHCP identity, so expect a new lease afterwards.

Randomness and limits

The bytes come from crypto.getRandomValues, the browser's cryptographic random source, after the page has loaded. Nothing is requested from or sent to a server, and the list is not saved: a reload replaces it. Each batch holds at most 100 addresses, so click Regenerate and copy again when you need more.

Random is not the same as managed. The generator has no memory of earlier batches, so if you hand addresses to many machines, record each one alongside your IP plan and check new batches against that record before using them on the same segment.

Knowledge Base & FAQ

MAC Address Generator FAQs

Common questions about the mac address generator.

It is an address whose universal/local bit, the second-lowest bit of the first byte, is set to 1. The bit says the address was chosen by an administrator or by software instead of being issued from a manufacturer's IEEE block. You can spot one by its second hex digit: 2, 6, A or E for a unicast address.