MAC Address Generator
Generate random MAC addresses with a chosen separator, case and optional OUI prefix, locally.
Random hardware addresses for testing and lab use
This tool draws 6 random bytes per address from the Web Crypto API, formats them with the separator style and case you choose, and can optionally override the leading octets with an OUI prefix you supply, generating up to 50 addresses at once. It's useful for seeding test fixtures, populating a mock device inventory, or producing placeholder hardware addresses for a lab exercise. Generation is local random-byte formatting, with nothing submitted to a server and no check against a real vendor database.
How to use the MAC Address Generator
- Choose a separator style: colon, hyphen, Cisco-style dot, or none.
- Set Count, up to 50, for how many addresses to generate at once.
- Optionally enter an OUI prefix like 00:11:22 to fix the vendor octets.
- Toggle Uppercase and click Generate to produce a fresh batch.
- Copy a single address, or use Copy all to grab the whole list.
Addresses are drawn from the Web Crypto API rather than Math.random, which makes them suitable for filling test data, but they are not checked for uniqueness and won't belong to a real vendor's assigned range unless you supply that vendor's OUI as the prefix.
Frequently asked questions
- how do I generate a fake MAC address for testing?
- Set the count and separator you want and click Generate. Each address is 6 random bytes formatted as colon-, hyphen- or dot-separated hex, suitable for test fixtures or mock device inventories.
- can I generate a MAC address with a specific vendor prefix?
- Yes, enter the OUI, such as 00:11:22, in the prefix field. The tool keeps those leading octets fixed and randomizes the remaining bytes for each generated address.
- what's the difference between the colon and Cisco dot separator styles?
- Colon and hyphen formats write six two-digit hex groups like aa:bb:cc:dd:ee:ff. The Cisco-style dot format instead groups the same 12 hex digits into three four-character blocks, like aabb.ccdd.eeff, matching IOS conventions.
- how many MAC addresses can I generate at once?
- Up to 50 per batch. The Count field is capped at that limit, and each address in the batch is independently randomized unless you've fixed an OUI prefix.