Everyday Utilities

MAC Address Generator

Generate random MAC addresses for testing and virtual machines.

What is a MAC address?

A MAC (Media Access Control) address is a hardware identifier given to every network interface, such as a Wi-Fi card or Ethernet port. It is 48 bits long and usually written as six pairs of hexadecimal digits, like 3C:52:82:1A:2B:3C. Devices on the same local network use MAC addresses to deliver data to each other. The first three bytes, called the OUI (Organizationally Unique Identifier), normally identify the manufacturer.

Why generate random MAC addresses?

How to use the generator

  1. Choose how many addresses you need and the format: colons (Linux, macOS), hyphens (Windows), dotted (Cisco) or plain.
  2. Keep Locally administered and unicast ticked for safe test addresses.
  3. Optionally enter a fixed prefix, for example 52:54:00, the prefix commonly used by QEMU/KVM virtual machines.
  4. Click Generate and copy the list.

The two special bits

The first byte of a MAC address contains two flag bits:

Bit0 means1 means
Least significant bit (I/G)Unicast: one deviceMulticast: a group
Second bit (U/L)Universally administered (assigned by the manufacturer)Locally administered (set by software or an admin)

With the option ticked, the generator sets the first byte so it is unicast and locally administered, giving a second hex digit of 2, 6, A or E (for example x2:…). These addresses can never clash with a real manufacturer's address, which is why they are recommended for virtual machines and testing.

Frequently asked questions

Can I change my real device's MAC address?

Many operating systems allow it, and phones already use random "private" MAC addresses on Wi-Fi for privacy. Only do this on networks you own or have permission to use.

Are generated addresses guaranteed unique?

They are random with about 246 possibilities, so duplicates are extremely unlikely in a small batch, but check if uniqueness is critical.

Where can I check my IP address too?

Use What Is My IP Address.