IP Address Generator

Random IPv4 and IPv6 addresses for testing

Ad placeholder (leaderboard)

This generator produces random IPv4 and IPv6 addresses for network testing. You can keep output inside the RFC 1918 private ranges, generate globally routable public addresses, or constrain everything to a specific CIDR subnet so the addresses are valid for the network you are modelling.

How it works

For IPv4 each address is four octets. Private mode draws from one of the RFC 1918 blocks; public mode picks globally routable octets while skipping reserved ranges; CIDR mode fixes the network prefix and randomises only the host bits:

private  : 10.x.x.x  |  172.16-31.x.x  |  192.168.x.x
loopback : 127.x.x.x
cidr     : keep top /n bits, randomise the rest

For IPv6 the tool generates eight random 16-bit groups, then applies the canonical compression rule — the longest run of consecutive all-zero groups is replaced by :: and leading zeros within each group are dropped — to produce the standard shortened form.

Tips and notes

Use private mode for any test data you never want to accidentally route to a real host, and public mode only when you specifically need globally routable values. CIDR mode is ideal for seeding addresses inside a lab subnet, firewall rule, or DHCP scope. For IPv6, remember that :: may appear at most once in an address — the generator respects that, so the output is always valid and parseable.

Ad placeholder (rectangle)