๐Ÿฆ IP Animals
๐Ÿงฎ Subnetting & IP Math

Random IP Address Generator

Generate random IPv4 and IPv6 addresses for testing. Choose how many, pick the version, and optionally exclude every private and reserved range โ€” all with your browser's secure random generator.

1โ€“1000 addresses.

Random IPs for testing, done right

Realistic sample data makes for better tests. This generator produces random IPv4 or IPv6 addresses using crypto.getRandomValues, the browser’s cryptographically secure random source, so the values are high-quality and unpredictable rather than the weak output of Math.random. Use them to seed databases, exercise log parsers, populate load-test fixtures, or fuzz an input field.

The Public only option keeps the output realistic for internet-facing scenarios by rejecting any IPv4 address that falls into a non-routable or special-use block. Specifically it excludes the private ranges 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16; loopback 127.0.0.0/8; link-local 169.254.0.0/16; carrier-grade NAT 100.64.0.0/10; the 0.0.0.0/8 “this network” block; and everything from 224.0.0.0 up, which covers multicast and reserved space.

โš ๏ธ These may be real addresses

A random public IPv4 can belong to a live network, so never send unsolicited traffic to generated addresses. When you need guaranteed-safe examples for docs or screenshots, use the documentation ranges 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, or IPv6 2001:db8::/32 instead.

Curious which ranges are private and why they are filtered out? Our guide to reserved IP addresses lists every special-use block, and if you want the difference between the two address families, see IPv4 vs IPv6. To confirm a generated address lands where you expect, drop it into the IP in Subnet Checker, or summarise a batch with the CIDR Aggregator.

Generation happens entirely in your browser โ€” nothing is requested from or sent to a server.

Frequently asked questions

What does the "public only" option exclude?

Public only skips every address that would not be routable on the open internet: the RFC 1918 private blocks 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, loopback 127.0.0.0/8, link-local 169.254.0.0/16, carrier-grade NAT 100.64.0.0/10, the 0.0.0.0/8 this-network block, and all multicast and reserved space from 224.0.0.0 upward.

Are the addresses truly random?

They are drawn from your browser’s cryptographically secure generator, crypto.getRandomValues, rather than Math.random. That gives high-quality, unpredictable values, which is ideal for load testing and generating varied sample data.

Can I generate random IPv6 addresses too?

Yes. Switch the version toggle to IPv6 and the tool produces random 128-bit addresses in canonical compressed form. The public-only filter applies to IPv4 ranges; IPv6 addresses are generated across the global unicast space.

Are these addresses assigned to anyone?

A random public IPv4 address may well belong to a real network, so never send unsolicited traffic to generated addresses. For safe, guaranteed-unused examples in documentation, prefer the reserved documentation ranges such as 192.0.2.0/24 or 2001:db8::/32.

Want the theory? Read the guides โ†’ ยท Visit the zoo โ†’