Random IP Address Generator

Generate random IPv4 or IPv6 addresses for test data, mock logs, and load tests. Skip private and reserved ranges, or draw every address from one CIDR block.

Updated
Generated in your browser with a cryptographic random source.
Version

A CIDR block such as 192.168.0.0/16 or 2001:db8::/32. Addresses are then drawn only from it.

IP addresses

    How to use the Random IP Generator

    1. Pick the Version and set How many addresses you want.
    2. Keep Public addresses only ticked for realistic internet traffic, or enter a block in Only from this block, such as 10.0.0.0/8.
    3. Press Generate, then copy the list or download it as a .txt file.

    How it works

    Each address is a random number in the allowed range, drawn from your browser's cryptographic source and rejected and redrawn if it falls outside the range:

    • IPv4, public only: any 32-bit value, redrawn if it lands in a special-purpose range such as 10.0.0.0/8, 127.0.0.0/8, 169.254.0.0/16, 224.0.0.0/4, or the documentation blocks.
    • IPv6, public only: a value in global unicast space (2000::/3), redrawn if it lands in 2001:db8::/32, Teredo, or 6to4.
    • From a block: a value between the first and last address of that block. In IPv4 blocks of /30 and larger, the network and broadcast addresses are left out.

    Duplicates are dropped, so every address in the list is different.

    Examples

    • 5 public IPv4 addresses might be 73.62.187.73, 206.74.231.15, 117.103.170.112, 45.9.201.8, and 188.34.12.250.
    • 10 addresses from 192.168.10.0/24 are all between 192.168.10.1 and 192.168.10.254.
    • Asking for 10 addresses from 10.0.0.0/30 returns only 2, 10.0.0.1 and 10.0.0.2, with a note that the block has no more.

    Limitations

    • A random public address may belong to a real host. Use the addresses as test data, and don't send traffic to them.
    • For documentation and examples, the safe choices are 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, and 2001:db8::/32. Enter one of them as the block.
    • The public-only filter follows the IANA special-purpose registries. It doesn't know which public ranges are actually in use.

    Frequently asked questions

    Which IP addresses are safe to use in examples?

    The documentation ranges: 192.0.2.0/24, 198.51.100.0/24, and 203.0.113.0/24 for IPv4, and 2001:db8::/32 for IPv6. They are never assigned to real hosts.

    Are the generated addresses unique?

    Yes. Duplicates are dropped within each run. If the block you pick has fewer usable addresses than you asked for, you get all of them once.

    How are the addresses randomized?

    With crypto.getRandomValues in your browser, the same source used for keys and UUIDs. Nothing is fetched from a server.

    Often used together with the Random IP Generator.