MAC Address Generator

Generate random MAC addresses for testing and development

Generation Settings

Range: 1-1000 MACs

IEEE 802 colon notation

First 3 bytes (6 hex digits). Leave blank for random OUI.

MAC Address Information

OUI: Organizationally Unique Identifier (first 3 bytes)
NIC: Network Interface Controller specific (last 3 bytes)
Local Admin: Generated MACs use locally administered addresses
Unicast: All generated addresses are unicast (individual device)

Generated MAC Addresses

No MACs Generated

Configure settings and click "Generate MACs" to create network addresses.

MAC Address Generator Tips

  • Format Options: Choose between Standard colon, Windows hyphen, or Cisco dot notation
  • Custom OUI: Specify vendor prefix (first 3 bytes) or use random for testing
  • Local Administration: Generated MACs are locally administered for safe network testing
  • Export Options: Download TXT for documentation or CSV for network management tools
  • Unicast Only: All addresses are unicast (individual device addressing)

About MAC Address Generator

Generate random MAC (Media Access Control) addresses for testing, development, and network simulation purposes. Create valid MAC addresses with different formats and customize prefixes for specific use cases.

  • Generate random valid MAC addresses
  • Support multiple output formats
  • Bulk generation for testing scenarios
  • Custom prefix support for specific vendors
  • Locally administered address generation

How to Use MAC Address Generator

  1. Select Format - Choose your preferred MAC address format (colon, hyphen, or no separator)
  2. Set Quantity - Specify how many MAC addresses to generate
  3. Choose Options - Select locally administered or universally administered addresses
  4. Generate - Click to create random MAC addresses instantly

Frequently Asked Questions

How to generate a random mac address?

Use the utilAZ MAC generator: select your format (colon, hyphen, or dot notation), choose unicast and locally-administered bits, then click Generate. The tool uses crypto.getRandomValues() for 6 random bytes and sets the appropriate flag bits before formatting as XX:XX:XX:XX:XX:XX.

What is the Mac address used for?

A MAC address is a 48-bit hardware identifier burned into every network interface card. It is used for layer-2 Ethernet frame delivery, ARP resolution, DHCP leases, 802.1X port authentication, network access control lists, and device tracking by Wi-Fi access points.

How to spoof mac addresses?

On Linux use 'ip link set dev eth0 address XX:XX:XX:XX:XX:XX'. On macOS use 'sudo ifconfig en0 ether XX:XX:XX:XX:XX:XX'. On Windows change the NetworkAddress registry key or use Device Manager. Always set the locally-administered bit to avoid collisions with real OUIs.

What is oui in mac address?

OUI (Organizationally Unique Identifier) is the first 3 bytes (24 bits) of a MAC address assigned by IEEE to hardware manufacturers. For example 00:1A:2B belongs to a specific vendor. The remaining 3 bytes are assigned by the vendor to individual devices.

Difference between unicast and multicast mac?

The least-significant bit of the first byte determines the type. If 0 the address is unicast (single destination). If 1 it is multicast (group destination). Broadcast FF:FF:FF:FF:FF:FF is a special multicast that reaches all hosts on the segment.

How to generate bulk mac addresses?

Set the quantity field in the utilAZ generator to your desired count (up to 10,000), choose format and options, then click Generate. Results can be exported as CSV, JSON, or plain text for use in scripts, test harnesses, or configuration management tools.

Common Use Cases

  • Network testing and simulation
  • Virtual machine configuration
  • Development environment setup
  • Network protocol testing
  • Security testing scenarios
  • Educational demonstrations
  • Load testing with unique identifiers
  • Network device simulation

Technical Details

MAC Address Generation Rules:

  • Length: Always 48 bits (6 bytes) represented as 12 hexadecimal digits
  • Format Options: XX:XX:XX:XX:XX:XX, XX-XX-XX-XX-XX-XX, or XXXXXXXXXXXX
  • Local Bit: Second LSB of first byte indicates local administration
  • Multicast Bit: LSB of first byte indicates multicast (usually 0 for unicast)
  • Randomness: Cryptographically secure random generation

Programming Examples

Python:

import random

def generate_mac():
    return ':'.join(['%02x' % random.randint(0, 255) for _ in range(6)])

def generate_local_mac():
    # Set locally administered bit
    first_byte = random.randint(0, 255) | 0x02  # Set bit 1
    first_byte = first_byte & 0xFE  # Clear bit 0 (unicast)
    rest = [random.randint(0, 255) for _ in range(5)]
    return ':'.join(['%02x' % first_byte] + ['%02x' % b for b in rest])
            

JavaScript:

function generateMAC() {
    return Array.from({length: 6}, () => 
        Math.floor(Math.random() * 256).toString(16).padStart(2, '0')
    ).join(':');
}

function generateLocalMAC() {
    const bytes = Array.from({length: 6}, () => Math.floor(Math.random() * 256));
    bytes[0] = (bytes[0] | 0x02) & 0xFE; // Set locally administered, clear multicast
    return bytes.map(b => b.toString(16).padStart(2, '0')).join(':');
}