This MAC Address Generator creates random, correctly formatted Media Access Control (MAC) addresses for lab work, documentation, and testing. You can optionally supply a prefix (OUI or partial address), and the tool will preserve what you enter while randomizing the remaining octets.
All generation happens in your browser only. No prefixes, generated addresses, or results are sent to a server or stored on the site.
A MAC address uniquely identifies a network interface at the data link layer (Layer 2). The most common format is 48 bits, split into six octets, usually written as hexadecimal pairs separated by colons or hyphens, for example:
00:1A:2B:3C:4D:5E
Each octet is 8 bits, and each hexadecimal pair represents 0 to 255 in decimal. Overall, a 48-bit MAC address provides the following number of possible values:
Traditionally, the first three octets (24 bits) form the Organizationally Unique Identifier (OUI), assigned by the IEEE to a vendor. The remaining three octets are assigned by that vendor to individual devices.
Two important bits live in the first octet:
The OUI identifies the vendor or organization that owns a block of MAC addresses. For example, a vendor might have an OUI like 00:1A:2B, meaning every device they manufacture in that block begins with those three octets.
In this tool, you can treat the prefix field as:
00:1A:2B.The prefix field accepts hexadecimal pairs in several common styles. Internally, the generator normalizes separators and case before generating the final address.
AA:BB:CC, AA:BB:CC:DD, etc.AA-BB-CC, AA-BB-CC-DD-EE, etc.AABBCC or up to AABBCCDDEEFF.You can enter from 1 up to 6 hexadecimal pairs (1–12 hex characters). The generator will:
If you leave the prefix blank, all six octets are chosen randomly from the full MAC address space.
00:1A:2B02AA:BB:CC:DD:EEYou can use the tool to quickly produce:
The output is always a 48-bit unstructured random MAC address, possibly constrained by your prefix. The generator does not check the prefix against the real IEEE OUI database, and it does not guarantee uniqueness across runs or sessions.
For lab and documentation purposes, this is usually sufficient, as you typically control the scope of use and can avoid collisions by not reusing the same values across many devices.
Suppose you want a locally administered MAC address range for virtual machines. A simple approach is to choose a first octet whose binary representation sets the local bit (second least significant bit) and clears the multicast bit.
One such value is 02, whose binary form is:
Steps:
02 in the prefix field.02:3F:9A:7C:11:58.
In this example, the first octet 02 is preserved exactly as entered. The last five octets are random. You can repeat the process to obtain as many different locally administered MACs as you need for a small lab.
| Use case | Prefix input | Result characteristics |
|---|---|---|
| Completely random MAC | Leave prefix blank | All six octets are random; suitable for quick one-off tests. |
| Vendor-like MAC (OUI-based) | AA:BB:CC (example OUI) |
First three octets fixed; last three randomized, mimicking a vendor block. |
| Locally administered MAC range | 02 or similar first octet |
First octet enforces local admin bit; remaining octets random. |
| Mostly fixed address | 00:11:22:33:44 |
First five octets fixed; last octet random, useful for small internal pools. |
When using generated MAC addresses beyond a small lab, consider defining your own controlled addressing scheme, documenting it clearly, and avoiding overlap with any real hardware already on the network.