Random MAC Address Generator

Valid random MAC addresses in any format — colon, hyphen, Cisco.

Generate random, valid MAC addresses with colon, hyphen, Cisco dotted or no separator, in upper or lowercase. Sets the locally-administered unicast bit so addresses never collide with real hardware. Runs in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is a locally-administered MAC address?

It is a MAC whose second-least-significant bit of the first octet is set, marking it as assigned locally rather than by a hardware vendor. Random MACs should set this bit so they cannot collide with real OUI-assigned addresses.

Generate valid random MAC addresses in any common notation — colon (01:23:45:67:89:ab), hyphen, Cisco dotted (0123.4567.89ab), or no separator — in upper or lowercase. Useful for test fixtures, network labs, virtual machines, and documentation.

How it works

A MAC address is 48 bits, shown as six bytes. The tool draws six random bytes from the browser’s secure random generator, then adjusts the first octet’s two low-order bits so the result is a proper, safe address: it sets the locally-administered bit (so the address is marked as locally assigned, not allocated to a hardware vendor via an OUI) and clears the multicast bit (so it is unicast). This guarantees the address is a valid, locally-administered unicast MAC that cannot collide with real vendor-assigned hardware.

The remaining bits are fully random. The bytes are then formatted with your chosen separator and letter case.

Understanding the two control bits

The first octet of a MAC address encodes two status flags in its least-significant bits:

BitPositionValue 0Value 1
Multicast bitLeast-significantUnicast (single device)Multicast (group address)
Locally-administered bitSecond-least-significantGlobally unique (OUI-assigned)Locally administered

For test and lab use you want unicast + locally administered: unicast because you are addressing a single interface, and locally administered because it signals the address is not assigned by a hardware vendor. Setting the locally-administered bit (bit 1 of byte 0) while clearing the multicast bit (bit 0 of byte 0) achieves this.

The first octet a2 in hexadecimal is 1010 0010 in binary. Bit 1 (the locally-administered bit) is 1 and bit 0 (the multicast bit) is 0 — exactly what a valid random unicast, locally-administered MAC requires.

Common use cases

Virtual machines. Hypervisors including VMware, VirtualBox, and QEMU assign locally-administered MACs to virtual network interfaces. Generating one here lets you pre-configure VM network settings before the VM is started, or assign a consistent MAC so DHCP reservations work reliably.

Network testing and automation. Test scripts that simulate multiple network devices need MAC addresses for each simulated interface. A batch of random locally-administered MACs avoids collisions with any physical hardware on the same segment.

Documentation and examples. Technical writing, diagrams, and tutorials need realistic-looking addresses that are obviously not real hardware. Locally-administered addresses are the correct choice — they are structurally valid but unambiguously not from any real manufacturer.

MAC address spoofing for privacy. Many operating systems allow temporary MAC address randomisation for Wi-Fi scanning to prevent tracking. The locally-administered bit is used as the signal that the address is ephemeral. This calculator generates addresses in the same format.

Format comparison

FormatExampleCommon use
Colon (lowercase)a2:3f:9c:14:7b:e0Linux, macOS, most documentation
Colon (uppercase)A2:3F:9C:14:7B:E0Windows Device Manager
Hyphen (uppercase)A2-3F-9C-14-7B-E0Windows ipconfig output
Cisco dotteda23f.9c14.7be0Cisco IOS show commands
No separatora23f9c147be0Some APIs and database storage

Generation happens entirely in your browser; nothing is sent anywhere.