Generator Adresów MAC

Generator Adresów MAC tworzy losowe 48-bitowe adresy sprzętowe (MAC / EUI-48) do użytku w testach, symulacjach sieci, danych fixture lub spoofingu urządzeń. Wygenerowane MACs mają ustawiony bit zarządzany lokalnie i wyczyszczony bit multicast, co oznacza, że nie kolidują z żadnym prawdziwym zakresem OUI dostawcy — bezpieczne w użyciu w testach w stylu produkcyjnym.

Built by Bob Article by Lace QA by Ben Shipped

Jak używać

  1. 1

    Wybierz format. Z dwukropkami (AA:BB:CC:DD:EE:FF) to standard IEEE. Z myślnikami to domyślny Windows. Cisco kropki to to, co używa IOS.

  2. 2

    Wybierz wielkość liter (wielkie lub małe).

  3. 3

    Ustaw ilość, jeśli potrzebujesz wielu.

  4. 4

    Kliknij Generuj. Każdy MAC ma swój przycisk Kopiuj.

Często zadawane pytania

Ratings & Reviews

Rate this tool

Sign in to leave a written review.
Loading reviews…

What a MAC Address Is, and Why You'd Generate Random Ones

A MAC address is the 48-bit hardware identifier baked into every network interface — your laptop's Wi-Fi card, your phone's Bluetooth radio, the NIC in your router. Three octets of vendor identifier (the OUI — Organizationally Unique Identifier — assigned by IEEE to Apple, Intel, Cisco, etc.) plus three octets the vendor picks per device. Together they identify the interface uniquely on a local network segment.

You'd generate a random MAC for one of three reasons. Testing: you're writing network code, ARP-table fixtures, or VLAN logic and need plausible MACs that don't accidentally match real hardware. Privacy: many networks track devices by MAC; randomizing yours periodically defeats the tracking (iOS and Android do this automatically now). Spoofing for access: your real MAC is blacklisted or your captive portal limits per-MAC, and you want to look like a different device.

How the Microapp MAC Address Generator Works

Pick a format (colon, hyphen, Cisco dotted-quad, or raw), pick a case (upper or lower), pick how many you need (1 to 50). Click Generate. Each MAC has a copy button; with multiple, there's also a Copy All.

Every byte of randomness comes from crypto.getRandomValues. The generator sets two specific bits on the first octet: it sets the locally-administered bit (so the MAC is explicitly marked as not-from-a-real-vendor) and clears the multicast bit (so it's a unicast destination). This combination guarantees the generated MACs never collide with real OUIs and never accidentally look like a broadcast or multicast address.

Worked example. You're seeding 25 fake devices into a network simulator. Generate 25 MACs in colon format, lowercase. Result: 0a:b3:7c:5e:1f:9d, 2a:fe:34:6c:8b:01, etc. The first octet always has the LAA bit set (low nibble is 2, 6, A, or E) — proof they won't conflict with real Apple, Intel, or Cisco hardware.

Why the Locally-Administered Bit Matters

The IEEE 802 spec reserves the second-least-significant bit of the first octet to indicate whether a MAC was assigned by the manufacturer (cleared = OUI-based) or chosen locally (set = LAA, locally-administered address). Real hardware almost always has this bit cleared. Random MACs that happen to clear this bit can look exactly like a real Apple or Intel device — and might collide with one if they happen to land on the same network.

Setting LAA solves this entirely: any MAC with the bit set is, by definition, not a real vendor MAC. It's the same convention used by VirtualBox virtual NICs, VMware adapters, and the randomized MAC privacy features in iOS and Android. Your generated MACs join that family — guaranteed-safe-to-use, indistinguishable in capability from real ones, and impossible to confuse with hardware OUIs.

Format Cheatsheet

FormatExampleWhere you'll see it
Colon-separatedAA:BB:CC:DD:EE:FFIEEE standard. Linux ifconfig, macOS, most Unix tools.
Hyphen-separatedAA-BB-CC-DD-EE-FFWindows default. Microsoft docs.
Cisco dottedAABB.CCDD.EEFFCisco IOS, Cisco docs, some enterprise switches.
RawAABBCCDDEEFFEmbedded systems, config files, packed network data.

The bits are identical across all four formats — only the visual separator differs. Pick whichever matches the tool or config file you're pasting into.

What You Can (and Can't) Do With a Generated MAC

Can: use it in test fixtures, set it as your own NIC's MAC for spoofing (the OS will accept it because of the LAA bit), seed a network simulator, populate a fake ARP table, generate documentation examples.

Can't: impersonate a specific real device (you don't know the target's MAC), bypass MAC-based authentication on a network whose AP whitelists specific real MACs (you'd need to know the whitelisted MAC first), guarantee the generated MAC isn't already in use somewhere in the world (collision probability is astronomically low — about 1 in 70 trillion per pair — but not zero).

How to Set a Custom MAC on Your Real NIC

Linux: sudo ifconfig eth0 down && sudo ifconfig eth0 hw ether 02:11:22:33:44:55 && sudo ifconfig eth0 up

macOS: sudo ifconfig en0 ether 02:11:22:33:44:55 (some newer macOS versions block this — you may need to disable SIP).

Windows: Device Manager → your network adapter → Properties → Advanced → Network Address (or Locally Administered Address) → enter the MAC without separators (raw format). Some adapters don't expose this property.

Always note your real MAC first (ifconfig on Unix, ipconfig /all on Windows) so you can restore it.

Related Tools

For random IPv4 addresses (the layer-3 equivalent of MACs), use the Random IP Generator. For unique IDs in the cryptographic sense, see the UUID Generator. For tokens that grant access (the application-layer equivalent of MAC), the Token Maker is the right tool. For inspecting the User-Agent strings that often appear alongside MACs in network logs, see the User Agent Parser.