Random IP address generator
Generate random IPv4 and IPv6 addresses for testing, with public, private and CIDR options.
Related tools
Random IP address generator
Generate a list of random IP addresses — IPv4, IPv6 or a mix of both — in one click. Each address lands on its own line, ready to paste into a firewall rule you are testing, a log-file generator, a database seed script or a spreadsheet. The count goes up to 1000 addresses per run, and the Unique option guarantees no address appears twice in the list.
The IPv4 range filter controls what kind of addresses you get. Any draws from the entire 32-bit space. Public only excludes everything that would never appear on the internet as a source address: the RFC 1918 private blocks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.0/8), link-local (169.254.0.0/16), the 0.0.0.0/8 block, and multicast plus reserved space from 224.0.0.0 upward. Private only does the opposite and picks one of the three RFC 1918 blocks at random — ideal for mock LAN data.
IPv6 addresses are drawn from the full 128-bit space and formatted per RFC 5952: lowercase hex, no leading zeros, and the longest run of zero groups compressed with ::. Tick CIDR suffix to append a random prefix length — /8 to /30 for IPv4, /32 to /64 for IPv6 — when you need networks rather than hosts.
These are random values for testing and mock data, not addresses assigned to you. Every byte comes from crypto.getRandomValues and the whole tool runs locally in your browser — nothing is uploaded, logged or stored.