Random MAC Address Generator
Batch generation of random MAC addresses, supporting custom colon, hyphen, dot, or no separator formats, with case switching. Generates up to 100 entries per request, suitable for network testing and device simulation.
Documentation
API Capabilities
This API provides the functionality for batch generation of random MAC addresses. Developers can quickly obtain random MAC addresses that conform to standard formats by calling this API. The API supports various common separator formats, including colon (:), hyphen (-), dot (.), and no separator format, and supports specifying letter case, meeting the format requirements of different systems and network devices.
Request and Response
When making a request, you need to specify the generation count (count, maximum 100 per request), separator format (format, e.g., colon for colon), and whether to use uppercase (uppercase, boolean value). The return result will include a status code and message. Upon success, the data field will return a string array containing the generated MAC addresses. For example, requesting uppercase colon-separated MAC addresses will return results like 02:1A:3B:4C:5D:6E.
Use Cases
- Network Device Testing: When developing or testing network devices such as routers and switches, batch generate virtual MAC addresses for stress testing or functional verification.
- Software Development and Simulation: Used for assigning network card MAC addresses in virtual machine, container, or emulator environments.
- Data Anonymization and Population: In database testing or demonstration systems, use random MAC addresses to replace real user data.
Usage Notes and Limitations
- The number of MAC addresses generated per request does not exceed 100.
- The generated MAC addresses are all randomly generated, intended for testing and simulation only. They do not guarantee uniqueness in a real network environment and should not be used for illegal purposes or as real device identifiers in production environments.
- If the request parameters are incorrectly formatted or the quantity exceeds the limit, the API will return corresponding error messages. Please troubleshoot based on the returned information.
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"count": 10,
"format": "colon",
"uppercase": true
}Response Example
{
"code": "SUCCESS",
"message": "success",
"data": [
"02:1A:3B:4C:5D:6E"
]
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| count | number | 10 |
| format | string | colon |
| uppercase | boolean | true |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| code | string | SUCCESS |
| message | string | success |
| data | array | "02:1A:3B:4C:5D:6E" |
| data[] | string | 02:1A:3B:4C:5D:6E |