MAC Address Generator
Generate random MAC addresses with custom separator, case, OUI prefix, and multicast options
About MAC Addresses
A MAC (Media Access Control) address is a unique hardware identifier assigned to network interface controllers. It consists of 6 octets (bytes), typically written as 6 groups of 2 hexadecimal digits separated by colons or dashes, for example: 00:1A:2B:3C:4D:5E.
The first 3 bytes form the OUI (Organizationally Unique Identifier), assigned by the IEEE to hardware manufacturers. The last 3 bytes are assigned by the manufacturer to each device.
Bit 1 of the first byte (the "locally administered" bit): when set to 1, the address is locally administered (not globally unique). When 0, the OUI is globally assigned by the IEEE.
Bit 0 of the first byte (the "multicast" bit): when set to 1, the address is a multicast address. When 0, the address is unicast (addressed to a single device).
Generate valid, random MAC addresses in bulk — with your choice of separator, case, OUI prefix, and locally-administered or multicast bit settings. Grab one address or a hundred, then copy individually or all at once. And everything runs in your browser. Nothing gets uploaded.
How It Works
The generator pulls 6 random bytes from crypto.getRandomValues for each address. It then applies your bit preferences — flipping the U/L bit for locally administered addresses or the I/G bit for multicast — formats the hex with your chosen separator and case, and displays the result. No math shortcuts, no weak random sources.
Examples
Standard colon-separated address
The classic format you'd see in ifconfig or ip link output.
Separator: Colon
Case: Lowercase
Count: 3
4a:7f:b2:91:c3:e8
d1:03:5e:af:72:6b
8c:e4:19:d6:50:a3
Cisco-style dot notation with OUI prefix
Cisco configs group hex digits in fours separated by dots. Locking the OUI to a known vendor prefix (like Cisco's 00:26:CB) keeps the first three bytes consistent while randomizing the rest.
Separator: Dot
Case: Lowercase
OUI: 00:26:CB
Count: 2
0026.cb4e.a917
0026.cb82.f3d0
Locally administered unicast — safe for VMs
When you spin up virtual machines, you want addresses that can't collide with any real NIC. The locally-administered bit (second-least-significant bit of octet 1 set to 1) guarantees that. Notice the first octet always has that bit flipped — values like x2, x6, xA, xE.
Separator: Dash
Case: Uppercase
Locally Administered: On
Cast: Unicast
Count: 4
A6-3F-D8-14-7B-C2
E2-91-4A-B6-05-8D
72-C8-1E-A3-69-F4
5A-07-BC-E2-D1-46
Who Uses This
Generating addresses for lab switches, routers, and VLAN testing without touching production allocations.
Assigning unique MACs to Docker containers, VMs, or Vagrant boxes in automated provisioning scripts.
Creating randomized addresses for penetration testing labs and network traffic simulations.
Learning how MAC address structure works — OUI vs NIC-specific bytes, unicast vs multicast, universal vs local.
Common Mistakes
Random addresses are for testing and virtual environments. Changing a physical NIC's MAC can cause IP conflicts, break 802.1X authentication, or violate network policies. Stick to locally-administered addresses if you must override a real NIC.
The OUI field expects exactly 3 hex octets like 00:1A:2B. Typing fewer bytes, using non-hex characters, or forgetting the separators will give you an error. Double-check the format before generating.
If you assign a universally-administered random MAC to a VM, there is a tiny chance it matches a real manufacturer address. Not likely, but easy to avoid — just flip on "Locally Administered" and the problem disappears entirely.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- Randomness Source: Web Crypto API (
crypto.getRandomValues) - Address Format: IEEE 802 standard, 48-bit (6 octets)
- Max Batch Size: Limited only by browser memory
- Browser Support: Chrome, Firefox, Safari, Edge
Frequently Asked Questions
What is a MAC address used for?
A MAC address identifies a network interface at the hardware level — Layer 2 in the OSI model. Your router uses it to figure out which device on the local network should receive an incoming packet. It is also used for DHCP reservations, access control lists, and network monitoring.
How many possible MAC addresses are there?
A MAC address is 48 bits, so there are 2^48 — roughly 281 trillion — possible combinations. That's a big number. The chance of two randomly generated addresses colliding is effectively zero for any realistic use case.
What is the difference between unicast and multicast MAC addresses?
The least significant bit of the first byte decides this. If it's 0, the address targets one specific device (unicast). If it's 1, it targets a group (multicast). Almost all real NICs use unicast. Multicast addresses are mainly for protocols like OSPF, IGMP, or streaming to multiple receivers at once.
What does locally administered mean on a MAC address?
The second bit of the first byte is the U/L flag. When it is set to 1, the address is "locally administered" — meaning it was assigned by software, not burned into hardware by a manufacturer. VMs, containers, and privacy-focused devices all use locally administered addresses so they don't overlap with real vendor allocations.
Can I change my computer's MAC address to a generated one?
You can on most operating systems. On Linux, ip link set dev eth0 address XX:XX:XX:XX:XX:XX does it. macOS and Windows have their own methods. Just make sure you use a locally administered address so it won't conflict with manufacturer assignments. And be aware that some networks use MAC-based authentication — changing yours there will lock you out.