Guides

How to Extract & Normalize MAC Addresses from Logs & Text Online

To extract all hardware MAC addresses from DHCP leases, Cisco switch tables, ARP outputs, or firewall logs—and convert them into a single uniform notation—parse the text for IEEE 802 EUI-48 48-bit hexadecimal patterns directly in your browser using the EasyExtract MAC Address Extractor. It recognizes standard colon-hex (00:1A:2B:3C:4D:5E), Windows hyphenated (00-1A-2B-3C-4D-5E), and Cisco dot-quad (001a.2b3c.4d5e) formats simultaneously in local RAM with zero server uploads.

Network engineers, sysadmins, and cybersecurity responders spend hours correlating hardware addresses across heterogeneous vendor equipment: a Cisco Catalyst `show mac address-table` dump uses lowercase four-character dot groups (`001b.6384.45e6`), a Windows Server DHCP export uses uppercase hyphens (`00-1B-63-84-45-E6`), and Linux `ip neigh` or syslog uses colons (`00:1b:63:84:45:e6`). Trying to `VLOOKUP` or `JOIN` those tables fails unless every MAC address is extracted and normalized to the exact same format.

This guide covers the three IEEE 802 EUI-48 hardware notations, how OUI vendor prefixes work, and how to extract and reformat MAC addresses in bulk.

The 3 Standard IEEE 802 MAC Address Notations Explained

Every Ethernet, Wi-Fi (802.11), and Bluetooth network interface controller (NIC) is assigned a 48-bit (6-byte / 12-hex-digit) **Media Access Control (MAC / EUI-48)** address. The first 24 bits (3 bytes) represent the **IEEE Organizationally Unique Identifier (OUI)** assigned to the hardware manufacturer (such as Apple, Intel, Cisco, or Dell), and the last 24 bits identify the unique interface card.

Notation Name Example Format Where It Appears
IEEE / Linux Colon-Hex 00:1A:2B:3C:4D:5E Linux (`ip link`, `arp -a`), macOS (`ifconfig`), Wireshark, BSD, DHCPd logs.
Windows / IEEE Hyphen-Hex 00-1A-2B-3C:4D-5E Windows `ipconfig /all`, `getmac`, Microsoft NPS / RADIUS logs.
Cisco / HP Three-Group Dot 001a.2b3c.4d5e Cisco IOS / NX-OS (`show mac address-table`, `show ip arp`), Aruba switches.

Method 1: Extract & Normalize MAC Addresses in Your Browser (Zero Uploads)

Never paste internal network topology logs or NAC allowlists into cloud-hosted web tools. Extract and normalize your MAC addresses locally in your browser instead:

  1. Open the free MAC Address Extractor on EasyExtract.
  2. Paste your raw switch output, DHCP log, or configuration file into the text box.
  3. Instant Multi-Format Detection: The parser simultaneously captures colon-separated, hyphen-separated, and Cisco dot-separated 48-bit MAC addresses while ignoring false-positive IPv6 segments or timestamps.
  4. Normalize & Deduplicate: Choose your preferred output format (Uppercase Colon `AA:BB:CC:DD:EE:FF`, Hyphen `AA-BB-CC-DD-EE-FF`, Cisco `aabb.ccdd.eeff`, or bare 12-char hex) and export to `.txt` or `.csv`.

Method 2: Universal MAC Address Regex for Python, `grep` & Splunk

If you need a single regular expression that matches all three vendor notations (`:`, `-`, and Cisco `.`) with strict word boundaries:

\b(?:[0-9A-Fa-f]{2}([-:]))(?:[0-9A-Fa-f]{2}\1){4}[0-9A-Fa-f]{2}\b|\b(?:[0-9A-Fa-f]{4}\.){2}[0-9A-Fa-f]{4}\b
  • Why the `\1` backreference matters: Using `([-:])` followed by `\1` ensures that mixed strings like `00:1A-2B:3C-4D:5E` are rejected, matching only consistent `:` or `-` separators.
  • Avoiding IPv6 False Positives: When logs contain both IPv6 addresses (`fe80::1ff:fe23:4567:890a`) and MAC addresses, use our IPv4 & IPv6 Address Extractor alongside the MAC Extractor to cleanly separate Layer 2 and Layer 3 identifiers.

Frequently Asked Questions

How can I tell if a MAC address is a randomized mobile address (iOS / Android Private Wi-Fi)?

Check the second hexadecimal character of the MAC address (the least significant bits of the first byte). If the second hex character is **`2`, `6`, `A`, or `E`** (meaning bit 1, the *Locally Administered Address / U/L bit*, is set to `1`), the MAC address is a locally administered or privacy-randomized address rather than a globally burned-in IEEE OUI hardware address.

Can I convert Cisco `001a.2b3c.4d5e` MAC addresses to standard `00:1A:2B:3C:4D:5E`?

Yes. Paste your Cisco `show mac address-table` output into the EasyExtract MAC Address Extractor and select the colon-separated format to convert the entire list in one click.

Are my network logs uploaded to any server?

No. Everything runs 100% locally in your browser’s RAM with zero network transmissions.

Shah Abrar Ahmad - Founder & Lead Engineer
Lead Architect & Founder

Software architect and technical web engineer specializing in browser-based zero-knowledge file parsing, technical SEO, and data extraction security. Built EasyExtract to give users 100% private in-browser tools with zero cloud uploads.

Keep reading