Generate MAC addresses with a prefix, casing, and separator
All computation runs locally in your browser

64:16:7F:93:D1:A4
The MAC Address Generator creates random MAC addresses in the classic 6-byte format. You can lock in a vendor-style prefix (first bytes), choose a separator, and switch between uppercase and lowercase.
What it solves
Quickly generate valid-looking MAC addresses for lab devices, test data, configs, and documentation.
Why it’s reliable
Random bytes are generated locally in your browser using Web Crypto, and the output is formatted consistently.
If you also need to identify a manufacturer from an existing MAC, try our MAC address lookup tool.
Worked example (with a prefix)
Suppose your prefix is and the tool draws three random bytes.
That final string is what you copy into configs, DHCP reservations, test fixtures, or documentation.
How to read the result
A MAC address is six hexadecimal bytes. With the separator set to , you will see 6 groups of 2 hex characters. If you choose “None”, the 12 hex characters are shown without separators.
Virtual machines and lab NICs
You need unique MACs for a small VM cluster to avoid collisions.
Inputs:
Result:
Paste them into your VM/network configuration and regenerate anytime.
Vendor-like demo data
You want test data that looks like it belongs to a specific vendor prefix.
Inputs:
Result:
Use the generated list in fixtures or sample exports, then verify OUIs with MAC address lookup.
Documentation and runbooks
You’re writing docs and need realistic examples that are consistent in style.
Inputs:
Result:
Keep a consistent format across guides so readers can copy/paste safely.
Working with IP-related configs too? You might also like our IPv4 address converter.
Testing DHCP reservations
Generate stable-looking MACs for config templates and examples.
Mocking network inventory
Create dummy device entries without leaking real hardware identifiers.
CI fixtures for parsers
Feed many valid-looking addresses into your unit tests.
Consistent formatting
Match your preferred separator and casing in documentation.
Prefix-based simulations
Lock a prefix to simulate a vendor or a lab segment.
Quick copy/paste workflows
Generate, refresh, and copy without leaving the page.
When it may not be appropriate: if you need a MAC tied to a specific physical device, use the device’s real hardware address. Random MACs are great for testing and examples, not for identifying real hardware.
Practical tips
Conceptually, a MAC address is six bytes:
Each is a two-digit hexadecimal byte (from to ), and is your chosen separator (like ).
If you provide a prefix of bytes, the generator keeps those bytes and fills the remaining bytes randomly.
Finally, the tool formats the hex string using your separator and applies the casing setting (uppercase or lowercase).
OUI / vendor prefix
The first 3 bytes of many MAC addresses are commonly called an OUI (Organizationally Unique Identifier). In practice, that’s why a prefix like can make your test data look “vendor-like”.
Want to check what a prefix maps to? Use MAC address lookup to see vendor info.
No. Leave it blank to generate a fully random 6-byte MAC address.
It’s convenient when you only know the first byte(s). If you type , the generator will fill the remaining bytes.
They are formatted correctly, but whether a device/OS allows setting them depends on your platform and policies.
Yes. Use Share and enable “share calculator with results” to include your inputs in the URL.
No—only the formatting changes. The same 6 bytes can be displayed with separators or as 12 hex characters.
This generator is designed for testing, examples, and local workflows. It does not validate uniqueness on your network, and it does not guarantee that a given prefix is assigned to a particular organization.
Use a simple chronometer (stopwatch) to track elapsed time down to milliseconds. Runs locally in your browser.
Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning. Runs locally in your browser.
Estimate the time needed to consume a total amount at a constant rate, and get an expected end time. Runs locally in your browser.
Parse and decode your JSON Web Token (JWT) and display its content. All computation runs locally in your browser.
Know which file extensions are associated to a MIME type, and which MIME type is associated to a file extension. Includes a full MIME types table.
Generate random Lorem Ipsum placeholder text with customizable paragraphs, sentences, and word counts. Runs locally in your browser.