About Random IP and MAC Address Generator
Fill fixtures, seed databases, write firewall examples or fuzz a parser with addresses that look real. Pick IPv4, IPv6 or MAC, choose where the addresses come from (private networks, the documentation ranges set aside for examples, public space, or any CIDR block you type) and generate up to 500 at a time.
MAC addresses are locally administered by default, so they can never belong to a real network card. Everything is drawn from the browser’s cryptographic random source and nothing leaves the page.
How it works
- Each address is drawn uniformly from the range you pick, using crypto.getRandomValues with rejection sampling so that no address is more likely than another.
- Private IPv4 addresses come from 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 together; documentation addresses from the three RFC 5737 blocks. Public only redraws until the address falls outside every special-purpose block.
- In a CIDR block the prefix bits are kept and the host bits are random. For IPv4 blocks of four or more you can leave out the network and broadcast addresses.
- A MAC address is six random bytes with the multicast bit cleared. Locally administered also sets the bit that marks it as assigned by software rather than by a manufacturer.
Questions
Which range should I use for examples and documentation?
Use Documentation: 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 for IPv4, and 2001:db8::/32 for IPv6. They are reserved for examples and are never routed, so nothing you publish can point at a real machine.
Can the same address come up twice?
Yes. Every address is drawn independently, as in real traffic, so a small block such as a /29 will repeat quickly in a long list. Large ranges make repeats very unlikely, but they are never ruled out.
What is the difference between the two MAC types?
Locally administered addresses have a bit set that no manufacturer uses, so they cannot clash with real hardware. Any unicast leaves that bit random, which looks more like vendor addresses but may match a real manufacturer prefix.
How many addresses can I make at once?
Up to 500 per batch. Copy them all or download them as a text file, one address per line, then generate again for more.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.