Free online tools to generate, calculate,
convert, format, encode, and play.
 

MAC Address Generator

Generate random valid MAC addresses for testing, development, and network configuration.


Generate MAC Addresses

Fix the first 3 bytes (vendor prefix). Leave empty for fully random.

How It Works

A MAC (Media Access Control) address is a 48-bit identifier assigned to network interfaces. It consists of 6 bytes (12 hex digits) split into two halves:

  • First 3 bytes (OUI): Organizationally Unique Identifier — assigned by IEEE to hardware manufacturers
  • Last 3 bytes (NIC): Device-specific portion — unique per device from that manufacturer

Two special bits in the first byte control address behavior:

  • Bit 0 (least significant): 0 = Unicast, 1 = Multicast
  • Bit 1: 0 = Universally Administered (UAA), 1 = Locally Administered (LAA)

This generator uses crypto.getRandomValues() for cryptographically strong randomness and sets the appropriate flag bits based on your selections.


Common Use Cases

  • Network Testing: Populate test environments with unique addresses
  • Virtual Machines: Assign MAC addresses to VMs and containers
  • Development: Generate test data for network applications
  • Privacy: Create locally administered addresses for MAC spoofing
  • Documentation: Use realistic example addresses in docs
  • Education: Learn MAC address structure and formats


Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.



Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with