Random MAC Address Generator

Press the button to get one random 48-bit MAC address as six lowercase hex pairs separated by colons, ready to paste into a config or test.

The Random MAC Address Generator produces one 48-bit hardware address per click, formatted the way most operating systems print it: six two-digit hexadecimal pairs separated by colons, in lowercase, for example 3e:a1:0c:5f:9b:22. Every hex digit is chosen at random. There are no options to set, and the result is shown as plain text you can select and copy.

What the generated address is and isn't

A MAC address is the 48-bit identifier burned into (or assigned to) a network interface. The first three octets are the OUI, a vendor prefix registered with the IEEE; the last three are assigned by that vendor. Two bits in the first octet carry meaning:

  • Bit 0 (least significant): 0 means unicast, 1 means multicast. Real device addresses are always unicast.
  • Bit 1: 0 means the address is globally assigned by a vendor, 1 means it is locally administered (set by software or an admin).

This tool randomizes all 48 bits, so it doesn't force either flag. That has two practical consequences. About half the results will have the multicast bit set, which makes them unusable as a real interface address, and the OUI will almost never match a registered vendor. If you need an address that a strict driver, hypervisor or switch will accept as a locally administered unicast address, look at the second hex digit of the first pair: it needs to be 2, 6, a or e. Generate again until you get one, or edit that digit yourself.

Formats you might need to convert to

The generator always outputs colon-separated lowercase. Other systems expect other spellings of the same value:

FormatExampleWhere it's used
Colon, lowercase3e:a1:0c:5f:9b:22Linux, macOS, most CLI tools (this tool's output)
Colon, uppercase3E:A1:0C:5F:9B:22Router admin pages, many vendor docs
Hyphen, uppercase3E-A1-0C-5F-9B-22Windows ipconfig /all, IEEE notation
Dot, Cisco style3ea1.0c5f.9b22Cisco IOS, some switch configs
No separators3ea10c5f9b22Databases, APIs, some RADIUS setups

Case never matters to the hardware; separators are only a display convention. A find-and-replace on the colons is all you need to move between them.

Where a random MAC is handy

  • Seeding test data. Inventory, NAC and monitoring tools all key on MAC addresses; a handful of random ones fill a staging database without copying real devices.
  • Virtual machine and container configs. When you need a unique address for a VM NIC or a macvlan interface and don't want to think about it. Check the flag bits first, as described above.
  • DHCP reservation and MAC-filter testing. Add a random address to an allow-list or a reservation, then confirm the router behaves as expected for unknown clients.
  • Documentation and screenshots. Redact a real address by swapping in a random one that still looks right.

One thing this page is not: a privacy tool. Changing the MAC your laptop or phone broadcasts is done in the operating system (Windows, macOS, iOS and Android all have per-network MAC randomization built in), not by copying a value from a website. The generator just gives you a string.

Related generators for network and API test data

Most fake-device records need more than a MAC. The Random IP Generator gives you an IPv4 or IPv6 address to go with it, and the Random User Agent Generator covers the browser string. For secrets rather than identifiers, use the Random API Key Generator or the Encryption Key Generator; for an arbitrary hex or alphanumeric token of any length, the Random String Generator is the general-purpose option. The full set is listed under all developer & test data tools.

Frequently asked questions

Is the generated MAC address unique?

Each one is drawn at random from 2^48 possibilities, so a collision with another generated address or a real device is astronomically unlikely, but nothing checks for it. Treat the address as random, not registered.

Does the address belong to a real vendor?

Almost never. The first three octets are random rather than picked from the IEEE OUI registry, so a MAC lookup site will usually report no manufacturer.

Can I generate several MAC addresses at once?

No, the tool returns one address per click. Press the button again for another; there is no bulk or list mode.

Can I use one of these to spoof my own device?

You can paste it into your OS or router's MAC override field, but check the first octet first: for a valid locally administered unicast address the second hex digit should be 2, 6, a or e. Whether spoofing is allowed on a given network is up to that network's policy.