NathanTools

Random MAC Address Generator

Generate up to 500 MAC addresses. Choose the format, letter case, class and scope, or enter a custom prefix.

100% free No sign-up Works on any device

Report a bug

Random MAC Address Generator

A custom prefix fixes the class and scope. Clear it to choose them for random prefixes.

Presets

MAC addresses

Updated November 2026 · Follows IEEE 802 address rules · Generated in your browser

How to generate a random MAC address

  1. Choose how many addresses you need, from 1 to 500.
  2. Choose a format and letter case for your output.
  3. Use Locally administered and Unicast for virtual machines, containers and test data.
  4. To use a fixed prefix, choose a preset or enter one to five hex bytes. Then copy or download the list.

How a MAC address is built

A MAC address is 48 bits, written as six bytes in hexadecimal, such as 02:1A:2B:3C:4D:5E. The first three bytes are normally the manufacturer's OUI (organisationally unique identifier), registered with the IEEE; the last three identify the individual device. Two bits in the first byte have special meaning:

Bit (first byte)0 means1 meansWhat to use
Lowest bit (I/G)Unicast: one deviceMulticast: a groupUnicast for any network card
Second-lowest bit (U/L)Universally administered (from a manufacturer)Locally administered (set by software)Local for made-up addresses

A unicast, locally administered address always has 2, 6, A or E as its second hex digit, for example x2:…, x6:…, xA:… or xE:…. That's an easy way to spot a random or virtual address.

MAC prefixes used by virtual machines

PlatformPrefix
VMware (manually assigned)00:50:56
VMware (automatically generated)00:0C:29
Oracle VirtualBox08:00:27
Microsoft Hyper-V00:15:5D
QEMU / KVM52:54:00
Xen00:16:3E
Docker containers02:42

Using a hypervisor's own prefix keeps generated addresses recognisable in DHCP leases and switch tables.

How to change your MAC address

  • Windows: Device Manager > Network adapters > your adapter > Advanced > Network Address, or in PowerShell as administrator: Set-NetAdapter -Name "Ethernet" -MacAddress "02-1A-2B-3C-4D-5E". Wi-Fi adapters on Windows only accept locally administered addresses.
  • Linux: sudo ip link set dev eth0 down, sudo ip link set dev eth0 address 02:1a:2b:3c:4d:5e, then sudo ip link set dev eth0 up. The change lasts until reboot unless you set it in NetworkManager or systemd-networkd.
  • macOS: sudo ifconfig en0 ether 02:1a:2b:3c:4d:5e. Recent versions also have a built-in Private Wi-Fi address setting per network.
  • Phones: iOS, iPadOS and Android already use a random, locally administered address for each Wi-Fi network by default.

Only change MAC addresses on networks and devices you're allowed to manage. Some networks register devices by MAC address, so a new one can disconnect you until it's registered again.

Frequently asked questions

A MAC (media access control) address is a 48-bit hardware address that identifies a network interface on a local network, such as an Ethernet port or Wi-Fi card. It's written as six pairs of hex digits, for example 02:1A:2B:3C:4D:5E. Unlike an IP address, it isn't used beyond your local network.

The default settings generate locally administered unicast addresses. The browser supplies the random bytes, and the selected class and scope set the two corresponding bits in the first byte.

They shouldn't on the same network: duplicates cause dropped connections. With 46 random bits, the chance that two generated locally administered addresses match is about 1 in 70 trillion, so collisions on a real network are very unlikely.

A locally administered address is assigned by software or a network administrator. The second-lowest bit of the first byte is set. For a local unicast address, the second hex digit is 2, 6, A or E.

On Windows run ipconfig /all and look for Physical Address. On macOS or Linux run ifconfig or ip link. On phones it's under Wi-Fi settings for the network, but note that phones show a per-network random address by default.

No. They are generated in your browser and never sent to our server.

Comments

No comments yet.

Share this tool

Random MAC Address Generator

Favorites

Drag to reorder, or use the arrows. Categories and the tools inside them can both be moved.

Saved in this browser. Sign in to keep them on every device.

Esc
↑ ↓ to moveEnter to open