This free MAC address generator makes up to 100 random MAC addresses at a time, in colon, hyphen, Cisco dot or plain format. At the defaults it returns 5 unicast, locally administered addresses with 46 random bits each, because two bits of the first byte are fixed. Nothing you enter reaches our server.
Generated address
- Generated address
- Address type
- Addresses generated
Generated addresses
| # | MAC address |
|---|
How this works
- How it works
- Randomness comes from your browser's cryptographic generator. Locally administered addresses set the second-least-significant bit of the first byte and are made in the IEEE 802c AAI quadrant (second hex digit 2), the range meant for arbitrary use: the ELI quadrant holds Company IDs that IEEE registers, and universal vendor blocks have the bit clear. A new set is made every time you change an option or press Regenerate.
- Privacy
- What you enter never reaches our server. It is processed on your device, inside this page.
- Corrections
- Report a wrong result to media@sqmagazine.co.uk; every report is reviewed and confirmed errors are corrected. Include the inputs and the answer you expected. With your permission, we thank you by name on this page.
- Updates
- Published.
- Feedback
- How useful was this tool?
Table of Contents
How to Use the MAC Address Generator
The MAC address generator takes a count, a format and two address settings, then returns that many random addresses. Each one starts as six random bytes from your browser’s cryptographic generator, the one the W3C specifies for web pages.
- Set “How many” to the number of addresses you need, from 1 to 100.
- Pick a “Format”. The four options differ only in their separators, as the formats table below shows.
- Leave “Uppercase” ticked for capital hex letters, or untick it for lowercase.
- Keep “Administration” on “Locally administered (safe for labs and VMs)”, which marks each address as set by you rather than by a manufacturer. “Universally administered” puts random addresses in the range the IEEE assigns to manufacturers; an owned prefix belongs in “Vendor prefix (optional)” instead.
- Set “Type” to “Unicast” for an address that names one interface, or “Multicast” for a group address.
- Leave “Vendor prefix (optional)” empty, or type three bytes to fix the start of every address. A prefix replaces the “Administration” and “Type” choices, and the tool rejects anything that isn’t exactly three bytes.
- Read “Generated address”, “Address type” and “Addresses generated”. The table under the result lists the whole set.
“Copy” puts the address shown in the result on your clipboard, and “Copy all details” copies the whole result panel. “Regenerate” draws a fresh set with the same settings, while “Reset” returns every control to its default. Three “Examples” chips load presets. One restores the default lab set, “Cisco dot format” gives three lowercase addresses in dot notation, and another fills in a sample vendor prefix.
“Share result” copies a link that carries your settings, never the addresses, so whoever opens it gets a new set. “Download CSV” saves the list to your device. Generated addresses suit virtual machines, containers and test data; our explainer on what a VPS is covers the virtual servers that need them.
Two bits in the first byte, defined by the IEEE and summarized by the IETF, decide what kind of address you get.
How a MAC Address Is Generated
The generator fills six bytes with random values, then forces two bits of the first byte. The bit worth 1 sets unicast or multicast, and the bit worth 2 sets universal or local.
RFC 9542 calls them the M and X bits: when the M bit is zero, the MAC address is unicast; when it is one, the address is groupcast (multicast or broadcast). When the X bit is zero, the MAC address is a global address under the control of the owner of the IEEE-assigned prefix.
The IEEE Registration Authority’s guidelines on EUIs, OUIs and CIDs place both at the bottom of the byte. In its words, The least significant bit of Octet 0 (the I/G bit) indicates either an individual address (I/G=0) or group address (I/G=1). Next to it sits the U/L bit.
With b as the random first byte, a value from 0 to 255, the tool applies one rule per setting:
| Setting | Rule on b | Effect |
|---|---|---|
| Locally administered | b OR 2 | X bit on |
| Universally administered | b AND 253 | X bit off |
| Unicast | b AND 254 | M bit off |
| Multicast | b OR 1 | M bit on |
Source: the tool’s byte rules; bit meanings per RFC 9542 and the IEEE Registration Authority guidelines
OR switches a bit on; AND with a mask switches one off. 253 is every bit except the one worth 2, and 254 is every bit except the one worth 1. Bytes two to six stay exactly as drawn, so 48 minus the 2 forced bits leaves 46 random bits and 70,368,744,177,664 possible addresses per setting.
Where the Randomness Comes From
Each address takes six bytes from the browser’s `crypto.getRandomValues()`. The W3C describes the Crypto interface as including a cryptographically strong pseudo-random number generator seeded with truly random values. MDN adds that the algorithm may vary across user agents, but is suitable for cryptographic purposes. If a browser offers no secure source, the tool’s code stops with an error instead of falling back to a weaker generator.
Run the default settings through those rules and you get the tool’s own example.
MAC Address Generator Example: Five Local Unicast Addresses
By default, “How many” is 5, “Format” is colon and “Uppercase” is ticked. “Administration” is “Locally administered (safe for labs and VMs)”, “Type” is “Unicast” and the vendor prefix is empty. Four steps turn six random bytes into one address:
- The browser supplies six random bytes.
- The tool switches on the bit worth 2 in the first byte, which makes the address local.
- It switches off the bit worth 1, which makes it unicast.
- It writes the bytes as six colon-separated pairs in capital letters.
In the tool’s pinned example, the address opened with the byte 02, or 00000010 in binary. Its M bit is 0, so the address is unicast, and its X bit is 1, so it’s locally administered. “Address type” reads “Unicast, locally administered” and “Addresses generated” reads 5.
Your addresses will differ. The tool draws a fresh set on every page load and every “Regenerate”, and “Address type” describes only the address shown above the table. The shape of the first byte stays constant: only 64 of its 256 values can appear, and its second digit is always 2, 6, A or E.
What the Generated Address Means
A locally administered unicast address names one interface on networks you control and claims no manufacturer’s registered range.
RFC 9724 explains that Locally administered addresses override the burned-in address, and they can be set up by either the network administrator or the Operating System (OS) of the device. The burned-in address is the one a manufacturer assigned, and it starts with the maker’s OUI, the three-byte vendor prefix the IEEE hands out. RFC 9542 adds that when the local bit is set, the holder of an OUI has no special authority over MAC identifiers whose first 3 octets correspond to their OUI.
“Universally administered” is the opposite case. MA-L, MA-M, and MA-S MAC prefixes are assigned with the Local bit zero; those are the IEEE’s large, medium and small prefix blocks. A universal address without a prefix lands at random in the space the IEEE hands to manufacturers, where it can match a real network card. If your organization owns a prefix, type it into “Vendor prefix (optional)” instead, which overrides the “Administration” setting.
Three mistakes to avoid:
- Publishing a generated address in documentation. IANA’s Ethernet numbers registry marks 00-53-00 to 00-53-FF under its 00-00-5E prefix as Documentation, a block this tool never targets.
- Giving a device a “Multicast” address. A group address names a set of listeners, not one interface.
- Treating the local bit as proof. The IEEE notes that Approximately 18 organizational identifiers assigned to early Ethernet implementers have the X bit set, so a few old vendor prefixes look local.
The Four Local Quadrants
Choosing “Locally administered” fixes one bit and leaves the next two random, which matters on networks that follow the IEEE’s Structured Local Address Plan (SLAP).
RFC 9542 says those Y and Z bits divide the formerly uniform “local” MAC address space into four quadrants. The IEEE guidelines give the order: The four least significant bits of Octet 0 are designated the M bit, X bit, Y bit, and Z bit, respectively, beginning with the least significant bit. The right-hand hex digit of a local unicast address’s first byte therefore names its quadrant.
| First byte ends in | Y bit | Z bit | SLAP quadrant |
|---|---|---|---|
| 2 | 0 | 0 | Administratively Assigned |
| 6 | 1 | 0 | Reserved |
| A | 0 | 1 | Extended Local |
| E | 1 | 1 | Standard Assigned |
Source: quadrants per RFC 9542 Table 2; bit order per the IEEE Registration Authority guidelines
The Administratively Assigned quadrant is the one meant for output like this tool’s: RFC 9542 says it is intended for arbitrary local assignment, such as random assignment. Reserved addresses could be locally assigned for now, but there is a danger that future SLAP use would conflict with such local assignments. Extended Local addresses are not actually “local” under SLAP.
Nothing in the code steers between quadrants, so about 25% of its local addresses land in the Administratively Assigned one; the pinned example’s 02 is among them. SLAP is optional, and There isn’t any automated way to determine if or to what extent a local network is configured for and/or operating according to SLAP.
If your network follows the plan, or you aren’t sure, keep the addresses whose first byte ends in 2 and press “Regenerate” for more.
MAC Address Formats
Every format holds the same 48 bits; only the separators and the grouping change. The four “Format” options follow these patterns:
| Separator | Pattern | Grouping |
|---|---|---|
| Colon | XX:XX:XX:XX:XX:XX | Six pairs |
| Hyphen | XX-XX-XX-XX-XX-XX | Six pairs |
| Dot | XXXX.XXXX.XXXX | Three groups of four (Cisco style) |
| None | XXXXXXXXXXXX | Twelve hex digits |
Source: the tool’s “Format” options
“Uppercase” only changes the letters A to F. Registries lean on hyphens: the IANA registry writes its own prefix as 00-00-5E, for instance. Pick whichever form the destination expects.
Random MAC Addresses on Phones and Laptops
Phones and laptops now pick random, locally administered addresses for Wi-Fi on their own. RFC 9724 explains that random addresses decouple the globally unique identifier from the device and therefore make it more difficult to track a user device from its address.
- Apple: by default, your device improves privacy by using a different MAC address for each Wi-Fi network, per Apple’s support page. Its Rotating setting moves to a new private address every 2 weeks.
- Windows: If your Wi-Fi hardware supports it, you can turn on random hardware addresses to make it harder for people to track you, per Microsoft’s support page.
Note the wording. “More difficult” is not “impossible”, and our look at public Wi-Fi security risks covers what else a shared network can see. This generator doesn’t change your device’s address; it only prints addresses. A random MAC address and a VPN also solve different problems, and our guide to how VPNs work covers the other.
Can two generated MAC addresses be the same?
Yes, though rarely without a vendor prefix. The tool doesn’t check a batch for repeats, so the odds depend on how many bits stay random. A batch of 100 addresses holds 4,950 pairs that could match.
- No prefix: 46 random bits and 70,368,744,177,664 possible addresses. A batch of 100 repeats about once in 14.2 billion batches.
- Vendor prefix: 24 random bits and 16,777,216 possible addresses. The same batch repeats about once in 3,389 batches, a 0.0295% chance.
Both figures use the standard birthday approximation: pairs divided by possible addresses. Assigned hardware addresses carry no promise either: the IEEE says its registration authority does not guarantee that duplicate assignments have not occurred. Under a shared prefix, sort the downloaded CSV and look for repeats before you assign a lab’s addresses.
Good to Know Before You Use It
The MAC address generator runs in your browser, and nothing you enter reaches our server. It assumes the browser’s cryptographic generator is sound and treats every bit other than the two flag bits as uniform. “Address type” describes only the address shown above the table.
Behind it sits a simple method: six random bytes per address, with the M and X bits forced. A vendor prefix, when you give one, replaces three of the bytes. Outside it: the tool doesn’t choose a SLAP quadrant, remove duplicates, look up which vendor owns a prefix or produce IANA documentation addresses. It also can’t change the address of any device.
SQ Magazine publishes this page for information. A random, locally administered address helps reduce the risk of clashing with a manufacturer’s hardware address. It promises no security outcome. Nor does it make a device anonymous on a network.
Conclusion
At the defaults, the MAC address generator returns 5 unicast, locally administered addresses with 46 random bits each. Every first byte ends in 2, 6, A or E. Keep the ones ending in 2 if your network follows SLAP, and scan for repeats whenever you work under a vendor prefix. Every device on a home network needs an address like these; our smart home statistics track how many devices households now run.
























































