Format Code Now
/
Random generatorsRandom MAC Address Generator Next: Random Time Generator ›

Random MAC Address Generator

RG-07

Press Generate for random 6-byte MAC addresses. Pick colon, hyphen or Cisco dot format, and optionally type the first bytes to keep, such as 00:1A:2B.

Runs in your browser. Nothing is uploaded.

Optional fixed start, such as 00:1A:2B (empty means fully random)

MAC addresses

How to use it

  1. Choose How many addresses to make, up to 500.
  2. Choose the format: colons, hyphens, Cisco dots or no separator, and tick UPPERCASE if you want capitals.
  3. Optionally type a fixed start in the box, such as 00:1A:2B.
  4. Press Generate and copy the list.

Locally administered addresses

By default the first byte is set so the address is unicast and locally administered. The two lowest bits of that byte mean group or individual, and vendor or local. Setting them this way gives addresses meant for made-up use, so they are not taken from a real manufacturer. That is useful for test labs, virtual machines and examples in documentation.

Keeping a prefix

If you type a start such as 00:1A:2B, those bytes are kept exactly and only the rest is random. The Locally administered option is then ignored, because you decided the first byte yourself. A prefix may be 1 to 5 whole bytes, in colons, hyphens, dots or plain hex. The page does not look the prefix up in any vendor list.

Formats and limits

The same 6 bytes can be written AA:BB:CC:DD:EE:FF, AA-BB-CC-DD-EE-FF, aabb.ccdd.eeff or AABBCCDDEEFF. Only the writing changes. Addresses are not checked for clashes on any network, and you should not copy a real device address to impersonate it. Random choices use crypto.getRandomValues.

Error messages and what to do

MessageWhat it meansFix
The start of the address must be 1 to 5 whole bytes of hex, such as 00:1A:2B. Got: xyzThe prefix is not made of whole hex bytes.Use pairs of hex digits, up to 5 bytes.

Questions people ask

How do I generate a random MAC address?

Press Generate. Each line is a random 6-byte address in the format you choose. By default the addresses are locally administered unicast, which is the range intended for made-up values.

What does locally administered mean in a MAC address?

It is the second lowest bit of the first byte. When it is 1 the address was assigned locally, not by a manufacturer. Together with the lowest bit being 0 for unicast, this is why the first byte of a generated address ends in 2, 6, A or E, such as 02 or 4E.

Can I keep the vendor prefix and randomize the rest?

Yes. Type the first bytes, for example 00:1A:2B, into the box. Those bytes stay fixed and the remaining bytes are random. You can enter 1 to 5 bytes.

What is the Cisco dot format?

Cisco devices often write a MAC as three groups of four hex digits separated by dots, like 001a.2b8d.552a. Choose it under Format to get that style.

Are these MAC addresses real?

No. They are random and not registered to any device. A random address can still match a real one by chance, so use them for tests and examples only, not on a live network.

Is anything sent to a server?

No. The addresses are made in your browser, and the page keeps no copy.

About this tool

Makes 6-byte addresses from crypto.getRandomValues. With "Locally administered unicast" ticked, the first byte is set so the address is unicast (lowest bit 0) and locally administered (second lowest bit 1), which is the range meant for made-up addresses and keeps them clear of real vendor ranges. If you type a start such as 00:1A:2B, those bytes are kept exactly, the tick box is ignored, and only the remaining bytes are random. These addresses are made up and not checked against any vendor list or network. Do not use them to impersonate a real device.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.