Random IP address generator

Generate random IP addresses for test data, logs and docs: public addresses, private ones, the ranges reserved for documentation, or any IPv4 CIDR block you give it.

runs in your browser · nothing uploaded

loading tool…

How to use it

  1. Choose IPv4 or IPv6.
  2. Choose a range. For documentation and examples, pick documentation.
  3. For IPv4 you can also pick "inside a CIDR block" and type a block such as 10.20.0.0/16.
  4. Set how many, then copy or download.

Which range to use

Documentation ranges are the polite choice for blog posts, docs and screenshots: 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 for IPv4 (RFC 5737) and 2001:db8::/32 for IPv6 (RFC 3849). They are never routed on the internet, so your example can't point at someone's server.

Private ranges (10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 from RFC 1918, and fd00::/8 unique local addresses for IPv6) suit test networks and container configs. Public addresses skip every reserved block, including loopback, link-local, carrier-grade NAT and multicast, so they look like real client addresses in a log, which is what they are for.

IPv6 formatting

IPv6 addresses are printed in the canonical form from RFC 5952: lowercase, leading zeros dropped, and the longest run of zero groups shortened to ::. That is the form to compare against, because one address can be written many ways.

Questions

Is anything sent to a server?

No. The data is generated in your browser and nothing you set or generate is uploaded or stored by us.

Are the addresses random enough to use as IDs?

They use the browser's secure random source, but an IP address is not an identifier. Use a UUID for that.