Free MAC Address Generator
Generate random MAC addresses instantly, up to 1,000 at once: locally administered by default, or from a vendor's block or a VM's range, every bit explained.
The coloured digit is the second hex digit: its last two bits are the U/L and I/G flags.
Locally administered unicast: safe for tests, VMs and labs, and never a maker's address.
Hover or tap a digit to read its bits
Made in your browser with crypto.getRandomValues; nothing is sent.
Never makeAddresses already in use
Your phone's private Wi-Fi address? Phones make their own: see each systemCheck any address in MAC Lookup
What is a MAC address generator?
A MAC address generator, or MAC generator for short, makes valid 48-bit hardware addresses for virtual machines, test data and labs. Generate MAC addresses one at a time or a thousand at once. This one draws them with your browser's cryptographic random generator, or repeatably from a seed you choose, and sets the two flag bits so each address is what you asked for: locally administered unicast unless you pick a vendor, a virtual machine, multicast or the documentation range.
Valid means three things: 48 bits (12 hex digits), the I/G bit clear so it names one interface, and the U/L bit right for the job. No registry can confirm more than that: a locally administered address belongs to no maker, and whoever uses it keeps it unique on their own network.
Every address is made on this page; none is sent anywhere. Pick Vendor or Virtual machine only when you need that block: those addresses sit inside a company's real assignment, and a vendor search sends the company name you type so we can look up its IEEE blocks.
- random: drawn in your browser
- Z Y = 0 0: the AAI quadrant
- U/L = 1: locally administered
- I/G = 0: unicast, one interface
02:4F:9A:1C:77:E3, an address of the kind this page makes on arrival. The first octet 02 is 0000 0010: its last two bits make it locally administered unicast, so its second hex digit is 2.
Pick a kindRandom local by default; a vendor's block, a hypervisor's range, multicast or the documentation range.The addressClick it to copy. The coloured digit carries the U/L and I/G flags.Every bitThe anatomy shows which bits are fixed, which are random, and what the flags say.This addressType, quadrant, holder, the chance of a repeat, every notation and a ready command.Up to 1,000Different every time, as text, CSV or JSON, with a seed to make the same list again.When do you need a random MAC address?
Reach for a random MAC address generator when something needs an address that no real device has: a virtual machine, a lab switch, a container network, a test fixture. Random locally administered addresses are made for exactly that: no maker is ever assigned one, so none can be a real device's burned-in address.
Phones and laptops make random addresses too, for privacy on Wi-Fi. That is the operating system choosing its own address for each network; the private Wi-Fi section below shows how each system does it.
Two jobs are exceptions. A virtual machine is often best in its hypervisor's own range, which the hypervisor recognises, and hardware you ship needs a block bought from the IEEE. A random address only has to be unique where it is used: inside one network, not worldwide.
- Docs, screenshots and test fixturesReserved so examples never collide with real devices.The documentation range
00:00:5E:00:53:5A - A lab, a test rig, a container networkAny second digit 2, 6, A or E; 2 (AAI) where SLAP is followed.Random local
42:79:4A:D5:C6:02 - A virtual machine on your networkVMware Workstation and Fusion accept only their manual range.Its hypervisor's range, or random local
00:50:56:19:CC:19 - A new address for your own adapterA local address overrides the burned-in one; drivers and systems allow it.Random local only
92:CA:60:D5:42:B0 - Hardware you sellOnly an assignment makes addresses unique worldwide.Your own IEEE block
MA-L · MA-M · MA-S - A multicast groupGroup addresses come from the protocol: this one is mDNS on IPv4.That protocol's group address
01:00:5E:00:00:FB
What is the MAC address format?
A MAC address is 12 hexadecimal digits, 48 bits, usually written as six pairs. The pairs are joined by colons on Linux and macOS (02:4f:9a:1c:77:e3), by hyphens on Windows (02-4F-9A-1C-77-E3), or written as three groups of four on Cisco equipment (024f.9a1c.77e3).
All of them are the same address. Case doesn't matter, and most software reads every notation; a few tools want the bare 12 digits, such as VirtualBox's VBoxManage and Hyper-V's PowerShell. The IEEE writes addresses with hyphens and calls that the hexadecimal representation.
| Format | The same address | Characters | Who writes it this way |
|---|---|---|---|
| Colon | 02:4f:9a:1c:77:e3 | 17 | Linux, macOS, Android, Xen |
| Hyphen | 02-4F-9A-1C-77-E3 | 17 | Windows; the IEEE and the IETF write it this way |
| Cisco dot | 024f.9a1c.77e3 | 14 | Cisco IOS: three groups of four |
| No separator | 024F9A1C77E3 | 12 | VirtualBox, Hyper-V, code and databases |
| Space | 02 4F 9A 1C 77 E3 | 17 | Hex dumps and some printed labels |
Reads all of them, either case^[0-9A-Fa-f]{2}([:\- ]?)(?:[0-9A-Fa-f]{2}\1){4}[0-9A-Fa-f]{2}$|^([0-9A-Fa-f]{4}\.){2}[0-9A-Fa-f]{4}$
Locally administered or universal: which bit decides?
A locally administered MAC address has the U/L bit set: bit 1 of the first octet. You can see it in the second hex digit, which is 2, 6, A or E for local unicast addresses. A universally administered address has the bit clear and comes from a block the IEEE assigned to one company.
The IEEE never assigns an address with the local bit set, so a local address can't equal any device's burned-in address. That is why this generator defaults to local unicast. It doesn't make the address unique by itself: whoever assigns local addresses keeps them unique on their own network.
IEEE 802c divides local addresses into four quadrants by the next two bits, and RFC 9542 sets out the table. Random addresses belong in AAI, second digit 2, which is this page's default. SLAP is optional and nothing on the wire says whether a network follows it. A 2, 6, A or E on a Wi-Fi network is often a phone's privacy address, but it is no more than a guess: every locally administered address starts that way, including the ones this page makes and the ones virtual machines use.
- 0
- 1
- 2AAI
- 3AAI
- 4
- 5
- 6reserved
- 7reserved
- 8
- 9
- AELI
- BELI
- C
- D
- ESAI
- FSAI
- U/L bit 1 of the first octet: 0 universal (an IEEE block), 1 local
- I/G bit 0: 0 one interface, 1 a group
- Z Y pick the 802c quadrant of a local address: AAI, ELI, SAI or reserved
02:4F:9A:1C:77:E3.Unicast or multicast: what is the difference?
A unicast MAC address names one network interface; a multicast address names a group, and every interface that joined the group accepts frames sent to it. Bit 0 of the first octet decides which: 0 for unicast, 1 for multicast, so an odd second hex digit means multicast.
A device can't use a multicast address as its own. Protocols take their group addresses from fixed mappings: IPv4 multicast in 01:00:5E:00:00:00 to 01:00:5E:7F:FF:FF, IPv6 multicast in 33:33 followed by the last 32 bits of the group. FF:FF:FF:FF:FF:FF is broadcast, the group of everyone.
This generator's Multicast kind makes random local group addresses (second digit 3, 7, B or F) for testing switches and filters. For a real protocol, use that protocol's own group address.
02:4F:9A:1C:77:E3one interface takes it; the others drop it01:00:5E:00:00:FBevery member of the group (here mDNS) takes itFF:FF:FF:FF:FF:FFBroadcast: every device on the network01:00:5E:00:00:01IPv4 group 224.0.0.1 · all hosts01:00:5E:00:00:FBIPv4 group 224.0.0.251 · mDNS33:33:00:00:00:01IPv6 group ff02::1 · all nodes01:80:C2:00:00:0ELLDP, switch discovery01:80:C2:00:00:00Spanning Tree bridges
$ ip link set dev eth0 address 03:4f:9a:1c:77:e3 Cannot assign requested address
Which MAC address should a virtual machine use?
Hypervisors give virtual adapters addresses from their own prefix, so a VM's address tells you what made it. Most use a universally administered block registered to the vendor; libvirt's 52:54:00 and Docker's random addresses are locally administered.
For a static address, stay inside the hypervisor's range or use a random local one. VMware is the strict case: Workstation and Fusion accept only 00:50:56:00:00:00 to 00:50:56:3F:FF:FF, with two lines in the .vmx: ethernetN.address = "00:50:56:12:34:56" and ethernetN.addressType = "static" (VMware's documentation). The presets above follow each hypervisor's rule.
| Hypervisor | Prefix | Block | Who assigns it |
|---|---|---|---|
| VMware (manual) | 00:50:56:00–3F | universal | You, in the .vmx, with addressType = "static" |
| VMware vCenter | 00:50:56:80–BF | universal | vCenter, by its server ID |
| VMware ESXi host | 00:0C:29 | universal | The host, from the VM's UUID |
| VirtualBox | 08:00:27 | universal | VirtualBox, 3 bytes from a GUID |
| Hyper-V | 00:15:5D | universal | The host: 256 addresses per host by default |
| QEMU/KVM (libvirt) | 52:54:00 | local | libvirt, 3 random bytes; QEMU's own start at :12:34:56 |
| Proxmox VE | BC:24:11 | universal | Proxmox, its own block; extend it per cluster |
| Xen | 00:16:3E | universal | The xl toolstack |
| Parallels | 00:1C:42 | universal | Registered to Parallels; its documents don't name it |
| Docker 28 and later | random | local | Docker: 46 random bits; up to version 27, 02:42 and the IPv4 |
What is a private Wi-Fi address?
Phones and laptops use a private Wi-Fi address, a random locally administered address chosen for each network, so places they join can't follow one hardware address around. You don't type it in: each system has its own MAC address randomizer built in, and the table below names the switch and what it changes.
To find which company made a device behind a private address, look up its hardware address instead; MAC Lookup explains where each system shows it, and why a private address shows no vendor.
- Choices
- Off · Fixed · Rotating (iOS 18, macOS 15)
- Default
- Fixed on WPA2 and better; Rotating every 2 weeks on open or weak networks
- Since
- iOS 14 · macOS 15
- Default
- On since Android 10, one address per network
- Changes
- Kept until a factory reset; open networks may re-randomize where the maker allows it
- Since
- Android 10
- Toggles
- One for all networks, one per known network
- Needs
- Wi-Fi hardware that supports it
- Where
- Settings › Network & internet › Wi-Fi
A second digit of 2, 6, A or E is a hint that a device made its own address, not proof. Check an address in MAC Lookup
How do you build an IPv6 address from a MAC address?
A host can build the last 64 bits of an IPv6 address from its MAC address: split the address in half, insert FF:FE, and invert the U/L bit. This is modified EUI-64, defined in RFC 4291; the bit is inverted so that short hand-written IDs like ::1 count as local.
It is no longer the default. RFC 8064 says hosts should not put a stable hardware address in their IPv6 addresses, and current systems use random or hashed interface IDs instead, so an IPv6 address rarely shows the MAC now.
To work the other way, shorten an IPv6 address to its canonical form, or map an IPv4 address into IPv6.
- Split the address in half
02:4F:9A | 1C:77:E3 - Insert FF:FE in the middle
02:4F:9A:FF:FE:1C:77:E3 - Flip bit 1 of the first octet: 02 → 00
00000010 → 00000000 - The interface ID
4f:9aff:fe1c:77e3 - Link-local address
fe80::4f:9aff:fe1c:77e3
02:4F:9A:1C:77:E3: the inserted FF:FE and the flipped U/L bit are what make it recognisable. The generator's EUI-64 → IPv6 tab shows the same for any address it makes.Can two devices get the same random MAC address?
Yes, but with random locally administered addresses it is very unlikely: 1,000 addresses picked independently have about a 1 in 35 million chance of containing a repeat in the AAI quadrant. The risk grows fast when fewer bits are random: with a fixed vendor prefix, 1,000 addresses repeat with a chance of about 3%.
A repeat only matters inside one network, where two interfaces with the same address confuse switches. Lists from this page are all different, and the Never make box keeps out addresses you already use, pasted from arp -a or your DHCP leases.
| Addresses drawn from | Possible | 100 picked | 1,000 picked | 10,000 picked | 50% at |
|---|---|---|---|---|---|
| Random local, AAI (this page's default) | 1.76 × 1013 | 1 in 3.6B | 1 in 35M | 1 in 350K | 4,937,811 |
| Random local, any quadrant (phones, Docker) | 7.04 × 1013 | 1 in 14B | 1 in 140M | 1 in 1.4M | 9,876,529 |
| One vendor block (MA-L) | 16,777,216 | 1 in 3.4K | 2.9% | 95% | 4,823 |
| VMware's manual range | 4,194,304 | 0.12% | 11% | ≈ 100% | 2,412 |
| A 4-octet prefix | 65,536 | 7.3% | ≈ 100% | ≈ 100% | 302 |
| A 5-octet prefix | 256 | ≈ 100% | impossible | impossible | 20 |
MAC address generator: questions and answers
How do I generate a random MAC address?
What is a locally administered MAC address?
Why does the second digit have to be 2, 6, A or E?
Is a random MAC address valid?
Can I use a generated MAC address on my virtual machine?
Which MAC address range does VMware use?
What is a multicast MAC address?
What is the documentation MAC address range?
Can two devices have the same MAC address?
Can I change my device's MAC address?
What is an alternate MAC address?
Are the addresses made here sent anywhere?
Missing something?Suggest a feature or a new tool
Related tools
MAC Address Lookup
Identify device vendor from MAC address using IEEE database
IPv4 to IPv6
Every IPv6 form of an IPv4 address: mapped, NAT64 and 6to4, each marked in use or rare
UUID Generator
Generate UUID v4, v7, v1, v5 and v3 or GUIDs in bulk, in any format, and decode a UUID's version and timestamp
Password Generator
Strong random passwords, passphrases and PINs made in your browser, each with its exact bits and crack time
Subnet Calculator
Network, broadcast, usable hosts and masks for any IPv4 or IPv6 block, plus VLSM, splits and cloud subnets
IPv6 Compression
Shorten or expand IPv6 addresses the RFC 5952 way and see which rule removed each zero