Random IP / MAC Generator
Generate random IPv4, IPv6 ULA or MAC addresses for mocking.
Overview
The random IP / MAC generator produces fake-but-syntactically-valid IPv4 addresses, IPv6 ULA addresses, and MAC addresses for mocking, testing, and demos. Pick the type and how many you need; the tool emits them in a copyable block, never reusing reserved or documentation ranges unless you explicitly ask for them.
QA engineers seeding test data, demo creators populating a dashboard with realistic-looking entries, and security trainers building fake firewall logs all need a quick fake-network-data generator. Long-tail keywords covered: generate random fake IP addresses for testing, mock MAC addresses for unit tests, and create dummy IPv6 ULA examples.
How it works
For IPv4, the generator draws from the global unicast space and avoids the reserved blocks (RFC 1918 private ranges, loopback, link-local, multicast, documentation) unless those are the requested type. For IPv6 ULAs, it composes addresses under the fd00::/8 prefix per RFC 4193. For MACs, it produces locally-administered addresses (U/L bit set) so they cannot collide with a real vendor's OUI.
The randomness is uniform within the chosen range. Distinct calls produce independent draws — no streak detection, no bias toward "nice-looking" numbers. If you need deterministic test fixtures, copy the output once and commit it.
Examples
- 10 random public-routable IPv4 addresses (avoiding reserved space) for a log-generator fixture.
- 5 ULA IPv6 addresses under a single
/48for a lab network mockup. - 20 locally-administered MAC addresses for a switch port-table demo.
- A single documentation-range IPv4 from
203.0.113.0/24for a public example in a tutorial.
FAQ
Are the generated IPs really safe to use in screenshots?
Use the documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24) for anything public-facing — they are guaranteed by RFC 5737 never to be routed.
Why are the generated MACs all locally administered?
So they cannot collide with real hardware. A randomly drawn globally-administered MAC could match a real device by luck; the locally-administered bit guarantees it does not.
Can I generate IPv4 inside a specific CIDR?
This generator gives you whole-space draws. For a specific CIDR, use the Subnet Divider tool to enumerate, or write a quick script around random.randint(network, broadcast).
Is the randomness cryptographically secure?
It uses the browser's crypto.getRandomValues where available — strong enough for any non-cryptographic use. Do not use the output as a secret.