Skip to content
TextArray
100% local

Random IP address generator

Generate random IPv4 and IPv6 addresses for testing, with public, private and CIDR options.

Output

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.

FAQ

Is anything sent to a server?
No. The addresses are generated in your browser with the Web Crypto API and never leave your device.
Are these real IP addresses?
They are random values meant for testing and mock data. A generated public address may coincidentally belong to a real machine somewhere, so treat the list as sample data — do not scan or connect to it.
What does "Public only" exclude?
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 up.
How are IPv6 addresses formatted?
Per RFC 5952: lowercase hex digits, no leading zeros in a group, and the longest run of zero groups compressed with :: — the same canonical form modern tooling expects.
What does the CIDR suffix do?
It appends a random prefix length to each address — /8 to /30 for IPv4, /32 to /64 for IPv6 — turning plain host addresses into network notation for testing parsers and firewall rules.