MAC Address Generator

Random MAC addresses for virtual machines, test data and documentation.
Never generate these (paste addresses already in use)

Example: 10 random private MAC addresses. Choose your options and click Generate.

How to Generate Random MAC Addresses

A MAC address generator makes random 48-bit hardware addresses for virtual machines, lab networks, test data and documentation. By default it makes private (locally administered) unicast addresses, whose second hex digit is 2, 6, A or E, so they are not globally unique, manufacturer-assigned addresses.

Pick the type, the quantity (up to 1,000), the format and the case, then copy or download the list. Tick the IPv6 option to add, next to each MAC, the IPv6 link-local address (fe80::) a device forms from it with EUI-64. Links like /mac-address-generator?mode=vendor&prefix=3C:22:FB&count=50 open with those settings. To put an address on a device, see how to change your MAC address.

Which Type of MAC Address to Generate?

Use random private addresses for anything you assign yourself, your hypervisor's prefix for virtual machines, and documentation-only addresses in examples; keep a vendor prefix only when software expects a given maker's addresses.

TypeWhat you getGood for
Random privateUnicast, locally administered: second hex digit 2, 6, A or E; the other 46 bits randomVirtual machines, containers, lab networks, sample configs, a spare address for a network card
Virtual machineYour hypervisor's prefix, the rest random (VMware: kept in 00:50:56:00:00:00–3F:FF:FF)A static address for a VM that the hypervisor and DHCP rules recognise
Documentation only00:00:5E:00:53:00 to 00:00:5E:00:53:FF (256 addresses, RFC 9542)Docs, tutorials, screenshots, sample configs: set aside for documentation, so no manufacturer assigns them to a device
Vendor prefixYour 6-digit OUI (or 7-digit MA-M, 9-digit MA-S prefix), the rest randomTest data that must look like one maker's devices, for parsers, inventories and MAC lookup tests

A vendor prefix belongs to the company the IEEE assigned it to, so an address made with one can match a real device's. Use those only on networks and in data you control.

MAC Address Format and Examples

A MAC address is 12 hex digits (0–9, A–F), usually written as six pairs. The same address has four common spellings, and capitals don't matter; this generator makes all four.

FormatExampleWhere you see it
Colon3C:22:FB:12:34:56Most systems
Hyphen3C-22-FB-12-34-56Windows
Cisco dot3c22.fb12.3456Cisco devices
Plain3C22FB123456The Windows "Network Address" field

Example of a manufacturer's address: 3C:22:FB:12:34:56 (3C:22:FB is an Apple prefix). Example of a private, locally administered one: B2:D6:E4:D0:8F:7A. Example of a multicast address, never a device's own: 01:00:5E:00:00:01.

How to Read the First Byte of a MAC Address

The two lowest bits of the first byte say what kind of address it is: the lowest bit is unicast (0) or multicast (1); the next one is a manufacturer's address (0) or a locally administered one (1).

Second hex digitKindExample
0, 4, 8, CUnicast, assigned by a manufacturer (globally unique)3C:22:FB:…
2, 6, A, EUnicast, locally administered: what this generator makes by defaultB2:D6:E4:…
1, 3, 5, 7, 9, B, D, FMulticast (group): never a device's own address01:00:5E:…

Android uses the same rule for its private (randomized) Wi-Fi addresses: it sets the locally administered bit, clears the multicast bit and randomizes the other 46 bits. To see who made a device from its address, use the MAC address lookup; for the basics, read what is a MAC address.

Which MAC Address Should a Virtual Machine Use?

Let the hypervisor assign one unless you need a fixed address; then stay in its prefix, and for VMware in its manual range, 00:50:56:00:00:00 to 00:50:56:3F:FF:FF.

HypervisorPrefixNote
VMware00:50:56Manual addresses must have a 4th byte from 00 to 3F; set ethernet0.addressType = "static" and ethernet0.address in the .vmx file.
QEMU / KVM (libvirt)52:54:00The prefix libvirt uses for the addresses it makes; a locally administered prefix (second digit 2), so it isn't registered to anyone. In the domain XML: <mac address='52:54:00:…'/>.
VirtualBox08:00:27Registered to PCS Systemtechnik; the prefix VirtualBox gives new adapters (versions up to 7.2).
Hyper-V00:15:5DMicrosoft's prefix; by default the next two bytes come from the last two bytes of the host's IP address, and the last byte runs from 00 to FF (256 dynamic addresses per host).
Xen00:16:3ERegistered to XenSource.

Two VMs with the same address on one network can break each other's connection, so paste the addresses already in use under "Never generate these" before you pick one.

How This Generator Works

ItemDetail
Where it runsIn your browser; nothing is sent to our server.
RandomnessYour browser's secure generator (crypto.getRandomValues).
Random private48 random bits; then the multicast bit is cleared and the locally administered bit set.
Virtual machineThe hypervisor's 3-byte prefix, then 3 random bytes; for VMware the 4th byte is limited to 00–3F.
Documentation only00:00:5E:00:53 plus a random last byte (RFC 9542, section 2.1.4).
Second digit 2 onlyAlso clears the two bits IEEE 802c uses to pick a local quadrant, giving the AAI quadrant that RFC 9542 says is meant for random assignment.
Never generate theseEvery MAC address found in the pasted text (any of the four formats) is skipped.
Vendor prefixYour 6, 7 or 9 hex digits, then random digits up to 12; a multicast prefix is refused.
IPv6 link-localfe80:: plus the modified EUI-64 interface ID: the locally administered bit flipped and ff:fe inserted in the middle (RFC 4291, appendix A).
LimitsUp to 1,000 addresses per list; "No duplicates" keeps each address once in the list.
Last verified24 November 2026

Frequently Asked Questions

How do I generate a random MAC address?
Choose "Random private" or "Keep a vendor prefix", the quantity (up to 1,000) and a format, then click Generate. Everything runs in your browser; copy the list or download it as text, CSV or JSON.
What is an alternate MAC address?
An address used in place of the factory one. Phones make one on their own for Wi-Fi privacy (Android sets the locally administered bit and randomizes the other 46 bits), and many network cards let you type one: Windows lists it as "Network Address" or "Locally Administered Address" in the adapter's Advanced tab.
What is the alternate MAC address on Xbox?
A field in the console's network settings (Settings › General › Network settings › Advanced settings › Alternate MAC address) where you can enter another address, for example one already approved on a network that only lets listed devices join. It is empty by default. Clearing it is a common support step mainly because it makes the console restart fully. A random address from this page won't be on such a list until whoever runs the network adds it.
Is a random MAC address valid?
Yes, if it is unicast. The default mode always clears the multicast bit and sets the locally administered bit, so the second hex digit is 2, 6, A or E: the kind of address an administrator assigns by hand or a phone uses as its private Wi-Fi address.
Can a random MAC address hide my device?
Only on the local network. Routers don't pass your MAC address on, so websites see your IP address, not the MAC. One exception: a device that builds its IPv6 address from its MAC (EUI-64) carries the MAC inside that address. To hide your IP you need a VPN, a proxy or Tor: see how to hide your IP address.
How do I generate MAC addresses with a vendor prefix?
Choose "Keep a vendor prefix" and type the first 6 hex digits (the OUI, for example 3C:22:FB), or 7 or 9 digits for the IEEE's medium (MA-M) and small (MA-S) blocks; the generator fills in the rest. Find who owns a prefix with the MAC address lookup.
Can two random MAC addresses be the same?
It is very unlikely: random private mode draws from 246 (about 70 trillion) addresses. "No duplicates" keeps each address once in your list, and "Never generate these" skips addresses you paste, such as the output of arp -a or your DHCP leases.
Which MAC address should a virtual machine use?
Usually the one the hypervisor gives it. To set one yourself, choose "Virtual machine" and your hypervisor: VMware addresses stay in its manual range, 00:50:56:00:00:00 to 00:50:56:3F:FF:FF; QEMU/KVM default to 52:54:00, VirtualBox to 08:00:27, Hyper-V to 00:15:5D and Xen to 00:16:3E.
What MAC addresses are safe to use in documentation?
00:00:5E:00:53:00 to 00:00:5E:00:53:FF, reserved for documentation by RFC 9542 (01:00:5E:90:10:00 to 01:00:5E:90:10:FF for multicast). Choose "Documentation only" to get addresses from that range.

Next steps

Related Tools

MAC Address Lookup
Who made a device, from its MAC address or prefix.
Random IP Generator
Random IPv4 or IPv6 addresses for test data and docs.
IPv6 Subnet Calculator
Prefix, range and size of any IPv6 network.

Related Guides

Guide What is a MAC address?
how to read one and find yours.
Guide How to hide your IP
what websites actually see, and how to change it.