mac-address-generator
A MAC address generator produces random media-access-control addresses in any of the standard formats β colon-separated (00:1A:2B:3C:4D:5E), hyphen-separated (00-1A-2B-3C-4D-5E), or dot-separated Cisco style (001A.2B3C.4D5E) β useful for testing network code, seeding fake-data fixtures, simulating new devices in a lab, and demonstrating MAC-related logic in tutorials. The ZTools MAC Address Generator can emit unicast or multicast addresses, force the locally-administered bit so the result will not collide with real OUI-assigned addresses, output specific OUI prefixes (Apple, Cisco, Intel, etc.) when you need realism, and export bulk batches as CSV or JSON.
Use casesβ
Networking lab and tutorial demosβ
Build a tutorial on ARP / DHCP. Generate a fleet of MACs to populate the demo network without real hardware.
Testing inventory / asset systemsβ
Asset-tracking software queries by MAC. Seed the database with synthetic but valid MACs to test reporting.
Spoofing for privacy on home labsβ
Researchers test MAC randomisation features on Wi-Fi. Generate randomised MACs with the locally-administered bit set.
Mock IoT device fleetsβ
IoT platform demos need 500 fake device IDs. MAC addresses are a common identifier; generate in bulk.
How it worksβ
- Pick the type β Unicast (default) or multicast. The least-significant bit of the first octet flips between them.
- Choose administration scope β Locally-administered (default safe) sets the second-least-significant bit of the first octet β guarantees no collision with real OUI-assigned addresses.
- Optional OUI prefix β Force the first 3 octets to a known vendor (Apple 04:0C:CE, Cisco 00:1B:0C, Intel 00:1B:21) for realism in demos.
- Format β Colon, hyphen, or Cisco dot-format. Lowercase or uppercase.
- Bulk and export β 1β10,000 addresses per batch. Copy or download CSV/JSON.
Examplesβ
Input: Random unicast, locally-administered, colon format
Output: 02:7A:F1:9C:33:8D
Input: OUI prefix Apple 04:0C:CE
Output: 04:0C:CE:5B:91:42
Input: Bulk 5, Cisco format
Output: 027A.F19C.338D / 023B.C152.6F94 / 02CD.E831.4A07 / 0269.AB37.94F1 / 0245.6B82.D3A0
Frequently asked questionsβ
Will the generated MAC collide with a real device?
When the locally-administered bit is set (default), the address is in the LAA space and will never collide with real OUI-assigned addresses by definition.
What is the difference between unicast and multicast?
Least significant bit of the first octet. 0 = unicast (one device), 1 = multicast (group). Almost always you want unicast.
Can I spoof a real device's MAC?
You can set any prefix you want β but actually using a duplicate MAC on the same LAN causes ARP confusion. Use an OUI prefix only for demos and labs.
Are MACs case-sensitive?
Hex digits are not case-sensitive (00:aa:bb is the same as 00:AA:BB). Convention varies β Linux prefers lowercase, Cisco prefers uppercase.
How many bits of randomness in the locally-administered space?
46 bits (the 2 administration bits are fixed). Plenty for collision-free batches.
Are EUI-64 addresses supported?
Yes β toggle EUI-64 mode for IPv6 SLAAC-style 64-bit identifiers.
Tipsβ
- Always set the locally-administered bit when using generated MACs in shared networks β guarantees no collision with real hardware.
- For tutorials, prefix with a known OUI so readers see "Apple device" or "Cisco switch" naturally.
- Bulk-export to CSV when seeding a database; JSON when feeding a JS test fixture.
- Document in your test data that MACs are synthetic β future debuggers will not confuse them with real-hardware logs.
- For spoofing privacy tests, also rotate the lower 24 bits β keeping the OUI but changing the device-specific portion.
Try it nowβ
The full mac-address-generator runs in your browser at https://ztools.zaions.com/mac-address-generator β no signup, no upload, no data leaves your device.
Last updated: 2026-05-05 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub