MAC Address Generator

Random, locally-administered MAC addresses for testing.

MAC address
—

Generate a random, locally-administered MAC address for testing or configuration, with a choice of separator and letter case.

MAC address format

A MAC address is 48 bits long, written as six pairs of hexadecimal digits — for example 3a:1f:9c:42:7e:d0. The same address can be written with colons, hyphens (common on Windows) or no separator at all.

  • The first three bytes are normally the OUI (organizationally unique identifier), assigned by the IEEE to a hardware manufacturer.
  • The last three bytes are assigned by that manufacturer to each device.

What makes these addresses safe for testing

Two bits in the first byte have special meanings, and this generator sets both:

  • Locally administered bit set — marks the address as not belonging to any manufacturer's range, so it can't clash with real hardware.
  • Multicast bit cleared — marks it as a normal unicast address for a single device.

In practice, this means the second hex digit of every generated address is always 2, 6, A or E.

Common uses

  • Virtual machines and containers: give each virtual network card a unique address.
  • Network testing: simulate many devices in labs or test scripts.
  • Documentation and training: realistic example addresses that won't match a real device.
  • Development: seed databases or test DHCP and inventory systems.

Many phones and laptops already use random, locally administered MAC addresses on Wi-Fi networks to protect privacy, so these addresses are a normal sight on modern networks.

Frequently asked questions

What is a MAC address?

A unique hardware identifier assigned to a network interface, used for communication on a local network — commonly needed for testing, virtual machine configuration, or network documentation.

What does "locally administered" mean?

It's a bit set in the address that marks it as not from a real manufacturer's registered range — the standard, safe choice for randomly generated test addresses so they don't collide with real hardware vendor prefixes.

Should I change my device's MAC address?

Only for a legitimate reason, such as testing or privacy on public Wi-Fi. Changing it can break network access where your router or school network allows devices by MAC address.