1. Home
  2. Developer
  3. MAC Address Generator

MAC Address Generator

Make MAC addresses for VMs and test data in the type and format you need.

Runs in your browser · No upload
1 to 1,000 addresses
The second hex digit is 2, 6, A or E. This range does not collide with real hardware addresses, so it is safe for tests.
Example: 02:00:5E or 02-00-5E. Leave empty for fully random addresses.

Do not use these to change a real device address or impersonate someone else. They are meant for testing and documentation examples.

How to use

  1. Enter the Count and choose an Address type. For virtual machines or test data, the default locally administered unicast is the safe choice.
  2. Pick the Format (colon, hyphen or Cisco-style dots) and letter case.
  3. To pin the first few bytes, type them into Fixed leading bytes, for example 02:00:5E.
  4. Copy the result or save it as a .txt file. Generate again gives new values.

How a MAC address is built

A MAC address is 6 bytes (48 bits), usually written as 12 hex digits. The first 3 bytes are the OUI that identifies the manufacturer and the last 3 are a serial number the manufacturer assigns. But the two lowest bits of the first byte carry their own meaning.

Bit Value 0 Value 1
Lowest (I/G bit) Unicast: the address of one device Multicast: a group address
Second lowest (U/L bit) Universal: assigned by a manufacturer Local: set by a person or software

So an address whose first byte is 02, 06, 0A or 0E, that is whose second hex digit is 2, 6, A or E, is locally administered unicast. For example AA:BB:CC:DD:EE:FF has first byte AA (1010 1010), with the lowest bit 0 and the second bit 1, so it is locally administered unicast. 01:00:5E:00:00:01, on the other hand, has the lowest bit set, so it is multicast.

The three address types

  • Locally administered unicast: lives outside manufacturer assignments, so it is the safest label for virtual machines, containers and test devices. Many virtualization tools draw addresses from this range.
  • Vendor-assigned style unicast: both low bits of the first byte are 0. Random values can match a real manufacturer prefix by chance, so avoid them for anything connected to a real network.
  • Multicast: group addresses with the lowest bit set. They are not the address of a single device. Use them to test protocols or filter rules.

Formats

Format Example Common use
Colon 02:1A:2B:3C:4D:5E Linux, macOS, most tools
Hyphen 02-1A-2B-3C-4D-5E Windows, IEEE notation
Dots (groups of 4) 021a.2b3c.4d5e Cisco devices
Plain 021A2B3C4D5E Some databases and config files

Good to know

  • You can fix 1 to 5 leading bytes, and the first byte must match the chosen address type. If it does not, the tool tells you why.
  • Addresses from one run never repeat. With 5 fixed bytes there are only 256 possible addresses, so you cannot ask for more.
  • Randomness comes from the browser’s crypto.getRandomValues, and nothing is sent to a server or stored.
  • This tool is for tests and documentation examples. Do not use it to change a real device’s address or impersonate another device.
  • To work out subnets use the IP Subnet Calculator, and to convert hex and decimal use the Number Base Converter.

FAQ

Which type should I use for a virtual machine?

Locally administered unicast. It does not overlap manufacturer prefixes, so it cannot collide with real hardware on the same network. You only need to keep addresses unique within that network.

Why do many example MAC addresses start with 02?

The first byte 02 is 0000 0010 in binary: only the locally administered bit is set and the multicast bit is clear. It is the simplest locally administered unicast starting value, so it shows up often in documentation.

Can I set a generated address on a real network card?

A locally administered unicast address can technically be used, but you must make sure it does not clash with an address already in use on that network. This tool is not meant for changing real hardware.

How do I get Cisco style notation?

Choose the dot format. The 12 digits are grouped by four with dots, like 021a.2b3c.4d5e.

Is anything sent to a server?

No. Everything is generated in your browser and is never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.