🔌 MAC Address Generator
By ToolNimba Web Dev Team · Updated 2026-06-19
Set your options and press Generate addresses. Everything runs in your browser and nothing is sent anywhere.
A MAC address is the 48-bit hardware identifier burned into every network interface, written as twelve hexadecimal digits such as 00:1A:2B:3C:4D:5E. This generator produces random, well-formed MAC addresses using your browser cryptographic randomness. Choose colon, hyphen or dot formatting, pick upper or lowercase, set the locally-administered bit so the result will not clash with a real vendor, and generate as many as you need with one-click copy. It is built for testing, mock data, and lab setups, everything runs locally and nothing is transmitted.
What is the MAC Address Generator?
A MAC (Media Access Control) address is a 48-bit value that uniquely identifies a network interface on a local network segment. It is usually shown as six pairs of hexadecimal digits, giving values from 00:00:00:00:00:00 to FF:FF:FF:FF:FF:FF. The first three octets are the OUI (Organizationally Unique Identifier) assigned to a hardware vendor by the IEEE, and the last three are chosen by that vendor for each device. Switches use the MAC address to forward Ethernet frames to the right port, and Wi-Fi access points use it to track associated clients.
Two bits in the very first octet carry special meaning. The least significant bit (value 0x01) is the unicast/multicast flag: when it is 0 the frame targets a single interface, and when it is 1 the address is a multicast or group address. The next bit (value 0x02) is the universal/local flag: when it is 0 the address is globally unique and tied to a real OUI, and when it is 1 the address is locally administered, meaning a network owner assigned it rather than a manufacturer. Randomly invented MAC addresses should set the local bit and clear the multicast bit so they look like valid, administratively assigned unicast addresses and will not collide with a registered vendor block.
Formatting is purely cosmetic and does not change the underlying 48 bits. The IEEE prefers hyphen-separated pairs (00-1A-2B-3C-4D-5E), most Unix and networking tools use colons (00:1a:2b:3c:4d:5e), and Cisco devices group the digits into three blocks of four separated by dots (001a.2b3c.4d5e). Case is also cosmetic: hexadecimal A through F mean the same value whether written upper or lower. This tool lets you pick whichever convention matches the system you are testing, while keeping the bits identical.
When to use it
- Creating mock MAC addresses to seed a database, fixture file, or unit test without touching real hardware.
- Populating a network simulation, emulator, or lab topology with plausible but non-conflicting device identifiers.
- Demonstrating DHCP reservations, MAC filtering, or switch port security in documentation and training material.
- Generating a placeholder address when developing or debugging code that parses or validates MAC formats.
How to use the MAC Address Generator
- Pick a separator: colon, hyphen, dot (Cisco style), or none.
- Choose uppercase or lowercase hexadecimal letters.
- Optionally type a fixed prefix or OUI (for example 00:1A:2B) to pin the first bytes.
- Leave the locally-administered and unicast options ticked for safe test addresses, then set how many you want.
- Press Generate addresses and copy any single result, or use Copy all.
Formula & method
Worked examples
Turn a random first octet into a safe locally-administered unicast value.
- Suppose the random first byte is 0xA5 = 1010 0101 in binary.
- Clear the multicast bit: 0xA5 AND 0xFE = 0xA4 (last bit becomes 0).
- Set the local bit: 0xA4 OR 0x02 = 0xA6 (second bit becomes 1).
- The first octet is now 0xA6 = 1010 0110, a local unicast address.
- The remaining 5 octets stay as their random bytes, for example A6:7C:1F:9B:E3:40.
Result: First octet 0xA6, giving a valid locally-administered unicast MAC such as A6:7C:1F:9B:E3:40.
Reformat one address between conventions without changing the bits.
- Start from the bytes 00 1A 2B 3C 4D 5E.
- Colon form (Unix): 00:1A:2B:3C:4D:5E.
- Hyphen form (IEEE): 00-1A-2B-3C-4D-5E.
- Dot form (Cisco): group into fours, 001A.2B3C.4D5E.
- Lowercase is the same value: 00:1a:2b:3c:4d:5e.
Result: All four strings describe the identical 48-bit address; only the punctuation and case differ.
Common MAC address notation styles
| Style | Separator | Example |
|---|---|---|
| Unix / Linux | Colon every 2 digits | 00:1a:2b:3c:4d:5e |
| IEEE standard | Hyphen every 2 digits | 00-1A-2B-3C-4D-5E |
| Cisco | Dot every 4 digits | 001a.2b3c.4d5e |
| Compact | None | 001A2B3C4D5E |
Meaning of the two flag bits in the first octet
| Bit | Value when set | Value when clear |
|---|---|---|
| Bit 0 (0x01) | Multicast / group address | Unicast (single interface) |
| Bit 1 (0x02) | Locally administered | Globally unique (real OUI) |
Common mistakes to avoid
- Generating a multicast address by mistake. If the least significant bit of the first octet is 1, the address is a multicast or broadcast address, not a normal device address. Many tools and switches will reject or mishandle it as a source address. Keep the unicast option on so this bit is cleared.
- Forgetting the locally-administered bit. A purely random address might accidentally match a real vendor OUI and collide with actual hardware. Setting the local bit (0x02) marks the address as administratively assigned, which is the correct convention for invented or test MACs.
- Assuming the format changes the value. Colons, hyphens, dots, upper and lower case are all cosmetic. 00:1A:2B and 00-1a-2b are the same bytes. Do not treat two differently punctuated strings as two different addresses.
- Using random MACs as if they were globally unique. These addresses are for testing and mock data only. They are not registered with the IEEE and provide no guarantee of uniqueness, so never burn one into shipping hardware or rely on it as a permanent identifier.
Glossary
- MAC address
- A 48-bit hardware identifier for a network interface, shown as twelve hexadecimal digits.
- OUI
- Organizationally Unique Identifier, the first three octets assigned to a hardware vendor by the IEEE.
- Octet
- A group of 8 bits, written here as two hexadecimal digits. A MAC address has six octets.
- Locally administered
- A MAC address assigned by a network owner rather than a manufacturer, flagged by bit 0x02 of the first octet.
- Unicast
- An address that targets a single interface, indicated when bit 0x01 of the first octet is clear.
Frequently asked questions
What is a MAC address?
A MAC (Media Access Control) address is a 48-bit identifier assigned to a network interface, written as six pairs of hexadecimal digits like 00:1A:2B:3C:4D:5E. It identifies a device on a local network so switches and access points can deliver frames to the right place.
Are these random MAC addresses safe to use?
They are intended for testing, mock data and lab setups. When you keep the locally-administered and unicast options on, the result is a valid, administratively assigned address that will not clash with a registered vendor block. They are not globally unique and should never be used as a permanent hardware identifier.
What is the locally-administered bit?
It is bit 0x02 of the first octet. When set, it marks the address as assigned by a network owner rather than burned in by a manufacturer. Random or invented MAC addresses should set this bit so they are not mistaken for, or collide with, a real vendor OUI.
What is the difference between colon, hyphen and dot formats?
They are purely cosmetic. Unix tools use colons (00:1a:2b:3c:4d:5e), the IEEE standard uses hyphens (00-1A-2B-3C-4D-5E), and Cisco devices group the digits into three blocks of four with dots (001a.2b3c.4d5e). The underlying 48 bits are identical in every case.
Can I set a specific vendor prefix or OUI?
Yes. Type a prefix such as 00:1A:2B into the prefix field and the first bytes will be fixed to those values while the rest stay random. Note that if you supply a real vendor OUI the address is no longer locally administered, so the local bit may be overridden depending on your option choices.
Is anything sent to a server?
No. Every address is generated in your browser using the Web Crypto API (crypto.getRandomValues). Nothing you enter and nothing that is generated leaves your device, so the tool works offline and keeps your data private.
Sources
- Guidelines for Use of Extended Unique Identifier (EUI), MAC and Other Identifiers , IEEE Registration Authority
- MAC address , Wikipedia