MAC Address Generator

Generate random MAC addresses for testing, development, and network simulation. Choose between unicast or multicast, locally administered or universally administered, and generate single or bulk addresses — all processed locally in your browser.

MAC Address Generator
Figure 1 — MAC Address Generator

What Is a MAC Address?

A MAC (Media Access Control) address is a unique 48-bit identifier assigned to every network interface controller (NIC). It operates at Layer 2 of the OSI model and is used for communication within a local network segment. Every device that connects to your network — from laptops to smart home devices — has at least one MAC address.

MAC addresses are essential for MAC address filtering, network diagnostics, and security configurations. You can look up vendor information with our MAC Address Lookup tool to identify which manufacturer produced a given network adapter.

MAC Address Structure and Format

A MAC address consists of six octets (bytes) written as hexadecimal pairs separated by colons or hyphens:

ComponentBitsDescription
OUI (Organizationally Unique Identifier)Bits 0-23Assigned to manufacturer by IEEE
NIC SpecificBits 24-47Assigned by manufacturer to individual device
Bit 0 (LSB of first octet)1 bit0 = Unicast, 1 = Multicast
Bit 1 (second LSB)1 bit0 = Universally Administered, 1 = Locally Administered

Unicast vs Multicast MAC Addresses

The least significant bit (LSB) of the first octet determines whether an address is unicast or multicast. This distinction is critical for network switches and routers when forwarding frames:

TypeFirst Octet LSBExampleUse Case
Unicast002:xx:xx:xx:xx:xxSingle destination device
Multicast103:xx:xx:xx:xx:xxGroup of devices (IGMP, mDNS)
BroadcastAll 1sff:ff:ff:ff:ff:ffAll devices on the LAN segment

Most generated addresses for testing should be unicast. Multicast addresses are used for protocols like ARP broadcast, mDNS, and IGMP snooping on managed switches.

Locally Administered vs Universally Administered

The second least significant bit of the first octet controls whether the address is locally or universally administered:

  • Universally Administered (UAA) — Assigned by the manufacturer using their IEEE-registered OUI. This is the default for physical hardware.
  • Locally Administered (LAA) — Set manually by the network administrator or software. Used in virtual machines, containers, VPNs, and testing environments.

When generating MAC addresses for testing or virtual machines, always use locally administered addresses to avoid conflicts with real hardware. This is especially important when configuring virtual networks on your router or setting up IoT network segmentation.

Pro Tip: When generating random MAC addresses for VM environments, always use locally administered addresses (second hex digit of first octet is 2, 6, A, or E). This prevents conflicts with real hardware OUIs and is the industry standard for virtualization platforms like VMware, Hyper-V, and Docker.

Common OUI Prefixes by Vendor

The first three octets (OUI) identify the manufacturer. Use our MAC Address Lookup to find the vendor for any MAC address. Here are some well-known OUIs:

OUI PrefixVendorCommon Devices
00:1A:2BAyecom TechnologyNetworking equipment
00:50:56VMwareVirtual machines
DC:A6:32Raspberry PiIoT / SBC devices
AC:DE:48Private (locally administered range)Testing / development
00:0C:29VMwareVirtual adapters
08:00:27Oracle VirtualBoxVirtual machines

How to Find Your MAC Address

Before generating random addresses, you may want to know your current MAC. Here are the commands for each platform:

Windows

ipconfig /all
:: Look for "Physical Address" under your network adapter

macOS

ifconfig en0 | grep ether

Linux

ip link show
# or
cat /sys/class/net/eth0/address

You can also find your MAC address in your router's admin panel under connected devices. If your router is at 10.0.0.1, look under the DHCP client list or attached devices section. Our router IP finder guide can help locate your router's address.

Use Cases for Random MAC Addresses

There are many practical reasons to generate random MAC addresses in networking:

  • Virtual machine provisioning — Each VM needs a unique MAC for proper network bridging.
  • Network testing and simulation — Populate test environments with realistic device addresses.
  • Privacy protection — Modern devices use MAC randomization to prevent tracking in public WiFi. Learn how to extend your WiFi range securely.
  • Bypassing MAC filtering — Testing MAC address filtering rules on your own network.
  • Container networking — Docker and Kubernetes assign locally administered MACs to containers.
  • IoT device simulation — Testing smart home bandwidth capacity by simulating multiple devices.
Note: MAC addresses operate at Layer 2 and are only visible within the local network segment. They are not transmitted across routers — each hop replaces the source and destination MAC while preserving IP addresses. This is why MAC-based security is only effective within a single broadcast domain.

MAC Address Formats Across Platforms

PlatformFormatExample
IEEE StandardColon-separated02:42:ac:11:00:02
WindowsHyphen-separated02-42-AC-11-00-02
Cisco IOSDot notation (3 groups of 4)0242.ac11.0002
Linux/macOSColon-separated lowercase02:42:ac:11:00:02
EUI-64 (IPv6 SLAAC)Extended 64-bit02:42:ac:ff:fe:11:00:02
Key Takeaways
  • Always use locally administered addresses (LAA) for testing to avoid conflicts with real hardware OUIs.
  • The first octet's two least significant bits control unicast/multicast and local/universal flags.
  • MAC addresses are Layer 2 only — they don't cross router boundaries.
  • Modern devices use random MAC addresses for privacy on public WiFi networks.
  • Use our MAC Address Lookup to identify vendors from OUI prefixes.
  • For virtual machines and containers, locally administered MACs prevent address conflicts.

Video: MAC Addresses Explained

Related Guides

Frequently Asked Questions

Is it legal to change my MAC address?

Yes, changing your MAC address is legal in most jurisdictions. It's a common practice for privacy, testing, and troubleshooting. However, using a spoofed MAC to bypass access controls you don't own or to commit fraud is illegal.

Will a random MAC address work on my network?

Yes, as long as the MAC is unique on the local network segment. If you have MAC address filtering enabled on your router, you'll need to add the new address to the allowed list.

What is a locally administered MAC address?

A locally administered address has bit 1 of the first octet set to 1 (e.g., x2:xx:xx:xx:xx:xx). It signals that the address was assigned by software rather than burned in by the manufacturer. All major virtualization platforms use this convention.

How do I change my MAC address on Windows?

Open Device Manager, find your network adapter, go to Properties → Advanced → Network Address, and enter the new MAC without separators. Alternatively, use PowerShell: Set-NetAdapter -Name "Ethernet" -MacAddress "02-42-AC-11-00-02".

Can two devices have the same MAC address?

On the same network segment, duplicate MACs cause connectivity issues. Across different networks, duplicates don't matter because MAC addresses aren't forwarded by routers. The chances of two manufactured devices having the same MAC are extremely low.

Why do phones randomize MAC addresses on WiFi?

Since iOS 14 and Android 10, phones use random MAC addresses when scanning for and connecting to WiFi networks. This prevents retailers, advertisers, and network operators from tracking your physical location based on your device's unique hardware address.

What is the broadcast MAC address?

The broadcast MAC address is ff:ff:ff:ff:ff:ff. Frames sent to this address are delivered to every device on the local network segment. ARP requests, DHCP discovery, and other broadcast protocols use this address.

About Tommy N.

Tommy is the founder of RouterHax and a network engineer with 10+ years of experience in home and enterprise networking. He specializes in router configuration, WiFi optimization, and network security. When not writing guides, he's testing the latest mesh WiFi systems and helping readers troubleshoot their home networks.

Promotion for FREE Gifts. Moreover, Free Items here. Disable Ad Blocker to get them all.

Once done, hit any button as below