Random IP address generator

Generate random IPv4 and IPv6 addresses in your browser. Choose a range, then copy a batch as text or JSON.

Generate random IP addresses

Create test addresses locally. No generated address is contacted.

Reserved example ranges for documentation and offline fixtures, not live traffic.

Only addresses in both this CIDR and the selected pool are eligible. Leave empty to use the full pool.

Ready. Nothing generated yet.

How a random address batch is created

  1. Choose a pool

    Select a family, documented pool and optional CIDR.

  2. Find eligible intervals

    Intersect the range with the selected address policy.

  3. Draw unbiased ranks

    Use cryptographic bytes and the chosen duplicate policy.

  4. Format the batch

    Copy or download one-per-line text or a JSON array.

The diagram describes local generation of test strings. Generated addresses are never probed.
On this page

Learn more about Random IP address generator

Use the random IP address generator for test data

This random IP address generator creates address strings inside your browser. Choose IPv4 or IPv6, set a count from one to 100, and select an address pool before pressing Generate addresses. The default produces ten different IPv4 documentation addresses. Opening the page does not generate a batch, contact a generated destination, or change your connection's public address.

Read more

Start with Documentation when preparing examples, screenshots or offline test fixtures. The generator uses ranges reserved for that purpose instead of borrowing an ordinary organization's address. For a private-address parser test, choose Private / local. Select Public candidates only when your data needs addresses outside this tool's special-purpose exclusions; the label does not mean that a destination is reachable.

The generator supports a narrower range through Range and duplicates. Enter an optional CIDR such as 192.0.2.0/28. The filter intersects the selected pool, so a private prefix combined with Documentation produces an explanatory error. It does not silently switch modes or ignore your restriction. Leave the field empty to sample from the entire selected pool.

Choose a random IP address generator pool deliberately

The IPv4 documentation pool contains 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24: 768 literals reserved by RFC 5737 for examples. They are not live integration endpoints.

IPv6 documentation includes 2001:db8::/32 and 3fff::/20, defined by RFC 3849 and RFC 9637. Sampling is weighted by address count, so the larger block dominates. Filter to 2001:db8::/32 when you want that familiar prefix.

Private IPv4 uses the three RFC 1918 ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Private IPv6 draws from fd00::/8. Neither option detects conflicts or reserves addresses.

Understand random IP address generator results

The generator labels each batch with its family, selected pool and duplicate policy. The eligible-address count is exact, including for enormous IPv6 intervals. It counts the addresses that satisfy the pool and optional CIDR together. It is not a count of online devices, free addresses, registered owners or available connections. No scan occurs while calculating it.

Read more

Use One per line for plain-text fixtures or JSON array for quoted strings. Changing this presentation preserves the existing batch. Copy batch transfers the chosen format to the clipboard; Download batch saves the same bounded result as a text or JSON file. Neither action adds row numbers or performs destination lookups.

With No duplicates in this batch selected, the generator samples without replacement. Requesting more unique values than the eligible space contains produces an error with the exact capacity. For example, an IPv4 /30 contributes four literals when it lies entirely inside your pool. You can request all four, but not five different members of that same interval.

If repeats are allowed, the generator samples independently with replacement. A /32 IPv4 filter or /128 IPv6 filter can then produce the same single address repeatedly. Duplicate policy applies only to this operation. Separate batches may overlap, and the page does not maintain a global history or promise uniqueness across visitors, tabs or later generations.

What counts as a public candidate here?

The public-candidate policy, reviewed September 28, 2026, excludes recorded IPv4 special-purpose, multicast and reserved ranges. IPv6 starts within 2000::/3 and excludes recorded special-purpose intersections. The policy is versioned locally; generation does not fetch live IANA or BGP data.

Public candidates may be unallocated, unannounced, firewalled or already assigned to someone else. The generator does not obtain permission to use them. For an actual integration test, use a service or test endpoint you control and expect to answer. If your application normally sends traffic to every imported address, keep generated fixtures in an isolated test path with that behavior disabled.

How the random IP address generator samples large spaces

Random bytes come from Web Crypto. Missing or failed secure randomness returns an error, with no clock or Math.random fallback. A batch is shown only when complete.

Exact integers describe eligible intervals. Rejection sampling avoids uneven rank mappings, and sparse index swaps permit sampling without replacement without allocating the entire IPv6 space. Retries are bounded.

Random IP address generator privacy and limits

Settings and generated values stay in working memory, without generation requests, destination probes, URL parameters or browser storage. Ordinary page delivery and site analytics are separate network activity.

Read more

Changing generation settings removes the previous batch. Clear resets controls and results. Leaving the page discards working data; following an article section link keeps it available.

Copying deliberately transfers values out of the generator to your system clipboard. Clipboard history, synchronization or the application where you paste may retain them. Clearing this page does not erase those copies. If you need repeatable test data, save an approved fixture in your own project; the generator does not accept a deterministic seed or recover an earlier batch.

Random IP address generator questions

Will the random IP address generator change my IP address?

No. The address generator creates strings for your use as test data. It does not change a browser's network route, configure a VPN or assign a new address to your internet connection. The homepage shows the public address observed for your actual request. A generated candidate and that observed connection address describe different things.

homepage

Can the random IP address generator find unused addresses?

No. The address generator does not query DHCP leases, neighboring devices, registries or routing tables while creating a batch. It cannot identify a safe unoccupied address on your LAN or reserve public space. For deployment, work within the address allocation and configuration process of the network you control. Treat an unanswered probe as a separate observation, not proof of availability.

Why does the random IP address generator reject my CIDR?

The address generator requires a complete address and valid prefix length in the selected family. URLs, ports, zone identifiers and ambiguous leading-zero formats are rejected. An otherwise valid prefix can also have no intersection with the chosen pool. Check both controls: 10.0.0.0/24 belongs with the private option, while 2001:db8::/48 requires IPv6 and Documentation.

Does the random IP address generator work offline?

After the page and its tool code have loaded, the address generator can create another batch without a remote generation service. Loading a fresh page offline is not guaranteed, and clipboard access still depends on browser support and permissions. Copy-format selection remains local. No address is contacted to make offline output look more realistic.

Can the random IP address generator prove my validator is correct?

A address generator supplies varied examples, not a correctness proof. Keep expected results for carefully chosen fixtures and compare your parser's behavior against its documented contract. This tool's own checks cover exact interval boundaries, exclusion policy, tiny-space exhaustion, rejection sampling, duplicate control and browser lifecycle behavior. Its range policy is transparent, but it does not certify another application's validation or security decisions.

Which pool should I choose for documentation?

Choose Documentation for examples, screenshots and parser fixtures. Those ranges are reserved for that role. Private or local ranges answer a different test question, and a public candidate is not evidence that an address is available for your use.

Does generating an address send traffic to it?

No. The tool constructs test strings locally; it does not ping, scan or resolve a generated destination. Copying the results into another program is a separate action, so understand that program’s behavior before using the fixture there.

Does a unique batch stay unique across future runs?

Uniqueness applies to the generated batch rather than a global registry of every value previously produced. If your test dataset requires uniqueness across several sessions, keep an explicit dataset and check it when combining batches.