Random MAC Address Generator
Generate random MAC addresses with custom format, separator, vendor OUI prefix, unicast/multicast and UAA/LAA bit control. Copy or export instantly.
About
A MAC (Media Access Control) address is a 48-bit identifier assigned to network interface controllers. It consists of 6 octets, where the first 3 form the OUI (Organizationally Unique Identifier) assigned by IEEE, and the last 3 are vendor-assigned. Misconfigured or duplicate MAC addresses on a LAN segment cause frame delivery failures, ARP table corruption, and intermittent connectivity that is notoriously difficult to diagnose. This generator produces cryptographically random addresses with correct bit-flag control for unicast/multicast and UAA/LAA fields, avoiding the common mistake of generating addresses with invalid administrative flags.
The tool supports vendor OUI prefixes from major manufacturers. Bit 0 of the first octet (b0) determines unicast (0) vs. multicast (1). Bit 1 (b1) determines universally administered (0) vs. locally administered (1). When testing virtual machines, containers, or network simulations, always use LAA addresses to avoid collisions with real hardware. Note: this tool generates syntactically valid addresses but cannot guarantee global uniqueness across physical networks.
Formulas
A MAC address is a 48-bit value partitioned into 6 octets. The generator produces random bytes and applies bitmask operations on the first octet to enforce administrative flags:
Where multicastbit ∈ {0, 1} controls bit 0 (least significant) of the first octet. LAAbit ∈ {0, 1} controls bit 1. Masking with 0xFE (111111102) clears bit 0; masking with 0xFD (111111012) clears bit 1. The OR operation then sets the desired value. Full address format:
Each octeti is an unsigned integer in range [0, 255]. When a vendor OUI prefix is selected, octet0..2 are fixed to the vendor values and only octet3..5 are randomized. Randomness is sourced from crypto.getRandomValues, which provides a CSPRNG compliant with NIST SP 800-90A.
Reference Data
| Vendor | OUI Prefix | Common Devices |
|---|---|---|
| Apple | A4:83:E7 | iPhones, MacBooks, iPads |
| Intel | 00:1B:21 | Ethernet adapters, Wi-Fi modules |
| Samsung | 00:16:32 | Galaxy phones, Smart TVs |
| Cisco | 00:1A:2F | Routers, switches, access points |
| Dell | 00:14:22 | Servers, workstations, laptops |
| Huawei | 00:E0:FC | Routers, LTE modems, phones |
| Netgear | 00:1E:2A | Home routers, switches, NAS |
| TP-Link | 50:C7:BF | Wi-Fi routers, range extenders |
| Microsoft | 00:50:F2 | Surface, Xbox, Hyper-V virtual NICs |
| VMware | 00:0C:29 | Virtual machine NICs |
| Raspberry Pi | B8:27:EB | Raspberry Pi boards (pre-Pi 4) |
| 3C:5A:B4 | Chromecast, Nest, Pixel | |
| Amazon | 74:C2:46 | Echo, Fire TV, Kindle |
| Sony | 00:04:1F | PlayStation, Bravia TVs |
| HP | 00:1A:4B | ProLiant servers, printers |
| Lenovo | 00:06:1B | ThinkPad, ThinkCentre |
| LG Electronics | 00:1C:62 | Smart TVs, phones |
| Broadcom | 00:10:18 | Embedded chipsets, NICs |
| Juniper | 00:05:85 | Enterprise routers, firewalls |
| Ubiquiti | 04:18:D6 | UniFi APs, EdgeRouters |