RandomNr

Random IP Address Generator

Generate random IPv4 and IPv6 addresses for test fixtures, with private and public ranges.

Random IP Address Generator

203.0.113.42

IPv4 public

How many addresses

Type

How to use the IP address generator

  1. Choose public IPv4, private IPv4 or IPv6.
  2. Generate one address or a batch of up to 500.
  3. Copy or export the addresses for your test data.

What is an IP address generator

An IP address generator produces IPv4 and IPv6 addresses for test fixtures, covering both private and public ranges. Choose the version and the range you need, generate as many as you like, and Random Nr returns well formed addresses, which saves inventing them by hand when you build network tests or sample data.

How big the private IP ranges are

Three blocks of IPv4 are reserved by RFC 1918 for use inside private networks, never routed on the public internet. This tool draws its private addresses only from these.

BlockRangeAddresses
10.0.0.0/810.0.0.0 to 10.255.255.25516,777,216
172.16.0.0/12172.16.0.0 to 172.31.255.2551,048,576
192.168.0.0/16192.168.0.0 to 192.168.255.25565,536

Together the private space holds about 17.9 million addresses. The home router handing out 192.168.1.x addresses is using the smallest of the three, which is why that range feels so familiar.

Public, private and reserved IP blocks

Public mode produces addresses that look like real internet ones by skipping the private ranges above and the other reserved blocks, so nothing it generates would collide with a special use address.

Address typeWhat this tool does
Public IPv4avoids private and reserved blocks
Private IPv4draws from the three RFC 1918 ranges
IPv6builds a full eight group address

IPv4 has only about 4.3 billion addresses in total, which the world has effectively run out of, and that scarcity is exactly why IPv6, with its 128 bit addresses, exists.

How large the IPv6 address space is

IPv6 uses 128 bits against the 32 of IPv4, which is not twice as many addresses but around 79 thousand trillion trillion times as many, enough to give every grain of sand on Earth its own vast network. This generator writes IPv6 in the standard eight group hexadecimal form. Every address here is test data, drawn in your browser. For the hexadecimal that fills an IPv6 group, see the hex generator.

More code and ID generators

Frequently asked questions

What types can I generate

Public IPv4, private IPv4 from the standard internal ranges, and IPv6 in the eight group format.

Do public addresses avoid reserved ranges

Yes. Public mode skips the private and reserved blocks, so the addresses look like real internet addresses.

What are the private ranges

10.x.x.x, 172.16.x.x to 172.31.x.x, and 192.168.x.x, the blocks reserved for internal networks.

Can I make several

Yes, up to 500 at once, ready to copy or export.

Is it free

Yes, free and with no sign up.

Related generators

For a phone test value see the phone number generator, or a device ID with the IMEI generator.