Skip to content

Menu

MAC Address Generator

Generate random MAC addresses

Runs entirely in your browserNetworkFree, no sign-up
Loading tool

01What is MAC Address Generator?

Spinning up a VM, a container on a macvlan network or a fake device for a DHCP test? You need a MAC address that looks right and will not fight with real hardware. This generator makes random ones and sets the two flag bits that decide what kind of address it is. Under the hood, all six bytes come from crypto.getRandomValues, the browser's cryptographic random source. Then the tool adjusts the lowest two bits of the first byte, as defined in IEEE 802. Bit 0 is the I/G bit: 0 means unicast (an individual address), 1 means multicast (a group). Bit 1 is the U/L bit: 0 means globally administered by a vendor, 1 means locally administered by you. There are three Type options. The default, locally administered unicast (LAA), clears the multicast bit and sets the local bit. That forces the second hex digit to 2, 6, A or E. This is the one to use for VMs, containers and lab gear, because the IEEE never hands out that space to manufacturers. Globally administered unicast clears both bits, so the result looks factory-assigned. The first three bytes are random, though, not a registered OUI, so they could match a real vendor. The tool shows a warning about that. Multicast sets the I/G bit and leaves the rest random. A real run in the default mode produced AA:99:AA:96:06:F4. The second digit is A, the badges read Unicast and Local, and the row shows First 3 bytes: AA:99:AA. Switch the Format and you get the same structure as AA-BB-CC-DD-EE-FF, Cisco-style AABB.CCDD.EEFF or bare hex. You can make 1 to 50 addresses per click. Each row has its own copy button, and an All button copies the whole list one per line. A few limits are worth knowing. Randomness does not guarantee uniqueness, so on a large fleet you should still check for duplicates. The tool does not look up vendor names or check the IEEE registry. It also cannot tell you whether an address is already in use on your network. Generation happens inside your browser tab with the Web Crypto API, and no address is sent to our servers.

Virtualisation admins and network engineers who need collision-safe test MAC addresses for VMs, containers and lab switches. The tool runs entirely in your browser, so your data never leaves your device.

02How to use MAC Address Generator

  1. Choose a Type: Unicast, locally administered (LAA, recommended), Unicast, globally administered, or Multicast.
  2. Pick a Format from the dropdown: colon, dash, Cisco dotted or bare hex.
  3. Set Count anywhere from 1 to 50.
  4. Click Generate and check the Unicast or Multicast and Local or Global badges on each row.
  5. Copy one address with its row button, or click All to copy the list. The reset button clears the results.

03Worked examples

Input: Type: locally administered unicast, Format: colon
Result: AA:99:AA:96:06:F4 (Unicast, Local, First 3 bytes: AA:99:AA)
Output is random every time. The second hex digit is always 2, 6, A or E in this mode.
Input: Type: globally administered unicast, Format: colon
Result: 48:30:FE:63:67:75 (Unicast, Global, OUI (random, unregistered): 48:30:FE)
Both flag bits are cleared. The prefix is random, so it may belong to a real vendor, which is why the tool warns you.
Input: Type: multicast, Format: colon
Result: C5:4D:FE:EC:5A:17 (Multicast, Global)
First byte C5 is odd, which means the I/G bit is set. The U/L bit is left random in this mode.
Input: Type: locally administered unicast, Format: Cisco dotted
Result: E68F.D22C.72A2
Same six bytes grouped as three blocks of four hex digits, the way Cisco IOS prints them.
Input: Type: locally administered unicast, Format: dash
Result: 22-49-2D-46-74-40
Dash form is what Windows tools such as ipconfig /all display.
Input: Type: locally administered unicast, Format: bare
Result: AED19F13A7A6
Twelve hex digits with no separators, handy for config files and database columns.

04Common use cases

  • Assigning fixed MAC addresses to QEMU, VirtualBox or Proxmox VMs so DHCP reservations survive a rebuild
  • Giving Docker macvlan or ipvlan containers stable addresses on a lab network
  • Filling a network inventory, DHCP or RADIUS test database with plausible device records
  • Writing unit test fixtures for code that parses or normalises colon, dash, dotted and bare MAC formats
  • Producing multicast addresses to show students how the I/G bit changes frame handling
  • Preparing Cisco-style dotted addresses to paste into switch port-security or static MAC configs

05Tips

  • An LAA always has 2, 6, A or E as its second hex digit. Grep your DHCP logs for that pattern to spot virtual interfaces fast.
  • Never put a multicast address on a network interface. It is only valid as a frame destination, and Linux refuses to set one with ip link.
  • Clicking one of the examples switches the Type and generates a fresh batch at once, using the Count and Format you already set.
  • VirtualBox gives guests addresses under its own 08:00:27 vendor prefix by default. Pick an LAA instead if you want addresses outside every vendor block.
  • When you generate many addresses for a fleet, run a quick sort and uniq over the list before using it.

06Related concepts

MAC address, OUI, Locally administered address, Multicast, Ethernet.

Frequently Asked Questions

What is MAC Address Generator?

MAC Address Generator is a free, browser-based developer tool on AIDToolStack. Generate random MAC addresses It requires no installation or sign-up and works entirely in your browser.

Is MAC Address Generator free to use?

Yes. No sign-up, no fees and no usage cap.

Does MAC Address Generator store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe