Dev TooloraLocal dev tools

> Network

MAC Address Generator

Generate locally administered unicast MAC addresses using secure random bytes.

Runs locallyWorks offline
Back to results
Input

Source data

MAC format
Output

Result

Your result will appear here.

Tool guide

About this tool.

A 48-bit MAC address identifies an interface at the link layer. Its six bytes are often displayed as colon-separated hexadecimal pairs.

This generator sets the local-administration bit and clears the multicast bit in the first byte. The other 46 bits come from secure runtime randomness.

The output is a candidate address, not a vendor-assigned identity or a change to your device. Generation does not inspect or configure an interface.

  • Create fixtures for MAC-address parsers and configuration forms.
  • Prepare virtual-interface candidates after checking the target network for conflicts.
  • Compare colon, hyphen, dotted and plain representations of a 48-bit address.

Choose a count from 1–100 and the representation expected by your application, or apply a sample.

Run explicitly to generate a batch. Changing options does not silently replace a previously generated set.

Review the candidates and keep a chosen address stable if assigned. Regeneration does not update an interface using an older address.

Copy or save mac-addresses.txt. Check conflicts and follow the device’s configuration procedure separately.

  • 02:34:56:78:9a:bc is a local unicast example, not a vendor OUI.
  • Hyphen style: 02-34-56-78-9a-bc.
  • Dotted style: 0234.5678.9abc.
  • Plain style: 023456789abc.
  • The first octet’s last digit is 2, 6, a or e because local/unicast bits are fixed.
  • Count 5 produces five newline-separated candidates; every explicit run draws fresh bytes.

  • Addresses are lowercase, 48-bit, locally administered and unicast. EUI-64 and multicast generation are not supported.
  • Local administration means leading bytes must not be treated as an assigned manufacturer OUI.
  • Collisions are unlikely, not impossible. No registry or network is checked; uniqueness is not guaranteed.
  • Secure crypto.getRandomValues is required. Without it, generation fails instead of falling back to Math.random.
  • Count must be an integer from 1–100. Text input and deterministic seeds are not used.
  • Formats change separators, not semantics. New runs generate new values; samples specify settings rather than fixed addresses.
  • Generation does not change your MAC address, promise anonymity or bypass network access rules.

FAQ

Questions about MAC Address Generator

What is a locally administered MAC address?

It is an address with the local-administration bit set in the first byte, marking it as assigned by you rather than a manufacturer. With the multicast bit cleared, the first byte’s second hex digit is always 2, 6, a or e.

Are the generated MAC addresses random?

Yes. 46 of the 48 bits come from crypto.getRandomValues; only the local and unicast bits are fixed. There is no seed, so every run produces new addresses.

Can two generated addresses be the same?

It is unlikely but possible. Nothing checks the batch, a registry or your network for duplicates, so check for conflicts before assigning an address.

Will this change my device’s MAC address?

No. The tool only prints candidate addresses. Set an address through your operating system, hypervisor or container settings.

Which MAC address formats are available?

Colon (02:34:56:78:9a:bc), Hyphen (02-34-56-78-9a-bc), Dotted (0234.5678.9abc) and Plain (023456789abc), all in lowercase hexadecimal.

Continue with

IPv6 ULA GeneratorGenerate a correctly grouped local fd00::/8 site prefix with a random 40-bit Global ID.IPv4 Subnet CalculatorCalculate aligned CIDR boundaries, masks and host counts, including /31 and /32 cases.UUID GeneratorGenerate 1–100 random UUID v4 identifiers, one value per line.