This random IP generator with CIDR-based safe ranges generates addresses only from three RFC 5737 documentation blocks, RFC 1918 private IPv4 blocks, or the RFC 3849 IPv6 documentation prefix; it does not accept a custom CIDR.
That distinction matters when a task literally requires every result to come from a specific, user-supplied subnet. This tool is fixed-range: you select an address category, and it samples individual addresses from the corresponding approved blocks. It does not create new subnet definitions, accept an arbitrary CIDR, or combine documentation, private, and IPv6 modes in one batch.

CIDR ranges the generator can use
CIDR notation identifies a network block with an address prefix and prefix length. In this tool, the CIDR blocks define where generated addresses may appear; they are not editable input fields. Choose one of the supported modes below, then work within the boundaries associated with that mode.
| Address mode | Supported CIDR blocks | Appropriate uses | Important limitation |
|---|---|---|---|
| IPv4 documentation | 192.0.2.0/24, 198.51.100.0/24, and 203.0.113.0/24 | Tutorials, test fixtures, screenshots, training material, configuration samples, and offline development | These are documentation addresses and should not be routed on the public Internet. |
| Private IPv4 | 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 | Local-network examples, private configuration samples, and offline development | They are not globally routable or globally unique, and they may already exist inside a local environment. |
| IPv6 documentation | 2001:db8::/32 | IPv6 examples in documentation, fixtures, screenshots, training material, and offline projects | The prefix is reserved for documentation and should not be routed on the public Internet. |
RFC 5737 defines the three IPv4 documentation blocks, while RFC 1918 defines the private IPv4 blocks. The IPv6 documentation prefix is reserved by RFC 3849. The IANA IPv4 Special-Purpose Registry provides additional reference information about special-purpose IPv4 ranges and their designated uses.
The generator also excludes IPv4 host octets 0 and 255 from its generated examples. It returns individual IP addresses rather than a list of CIDR subnet definitions, so record the selected mode and block separately if your fixture needs that context.
Generate addresses from the supported blocks
- Open the Random IP Address Generator in your browser.
- Choose IPv4 documentation, private IPv4, or IPv6 documentation. This selection determines the permitted address family and CIDR blocks; there is no separate custom-CIDR field.
- Enter a count from 1 through 100. Larger or smaller values fall outside the tool’s supported range.
- Select Generate addresses. Secure browser randomness chooses the allowed blocks and host values for the selected mode.
- Review the returned list. The current result is deduplicated, so it contains no repeated address values within that list.
- Copy the list into your fixture, document, or lab plan. Before using private addresses, check them against existing hosts, subnets, VPNs, and routes in the target environment.
Generation uses rejection-sampled Web Crypto indices and a bounded retry loop to remove duplicates. The tool does not probe networks, ping addresses, reserve addresses, or claim ownership of anything it produces. Its uniqueness guarantee applies only inside the current generated result, not across separate runs or separate networks.
Choose the mode that matches the task
The best mode depends on how the generated value will be used. A documentation address is appropriate when the address only needs to look like a realistic example. A private address is more relevant when the example must represent a host inside a local network. Neither mode is intended to produce an arbitrary public Internet target.
| Scenario | Suitable mode | Reason and final check |
|---|---|---|
| Tutorial, screenshot, or training example | IPv4 documentation or IPv6 documentation | Uses reserved example space and avoids unintentionally representing a real public system. |
| Offline fixture representing a local host | Private IPv4 | Reflects RFC 1918 addressing, but the value still needs a local conflict check. |
| Documentation that should use a standard example prefix | IPv4 documentation or IPv6 documentation | Select the family required by the document and record the associated block in your notes. |
| Output restricted to one exact, user-supplied CIDR | No supported mode | The generator does not accept a custom CIDR, so it cannot satisfy this requirement. |
| A live public Internet target | No supported mode | Arbitrary public IPv4 targets are intentionally excluded. |
Choose documentation mode when the address is only one detail in an example. Choose private mode when the address has to behave like part of an internal network plan. If the address will later drive a real connection, neither label makes it safe by itself; the target environment’s controls still apply.
Move the output into test data
Copy the generated list into a fixture, document, training example, configuration sample, or offline development plan. For a structured fixture, preserve the address exactly as displayed and record the selected family and documentation or private category in the accompanying metadata. That prevents a later reader from mistaking an example value for a verified or reserved target.
Documentation addresses are intended for examples and must not be routed on the public Internet. Private IPv4 addresses are not globally routable, but they can still route inside a local environment. Because the same private value may appear on many unrelated networks, a generated address cannot establish that it is unused or appropriate for a particular organization.
Before operational deployment, use a subnet calculator and the target environment’s address-management process. Check for conflicts with current hosts, assigned subnets, VPN routes, and other network configuration. The generator intentionally supplies example values; it does not interact with the environment that might eventually use them.
Uniqueness, safety, and local conflicts
“Unique” has a narrow meaning here. The addresses in the current output list do not repeat, but that does not mean they are globally unique, currently unused, or reserved for you. Documentation ranges are designated for examples, while private ranges are reusable across unrelated networks.
Private addresses require particular care because they may already be present in the network where a fixture is later deployed. Review each value against the relevant inventory and routing configuration. Possible conflicts include an existing host address, a subnet assignment, a VPN route, or another local system. A clean-looking random value provides no evidence that those checks have passed.
Generation happens locally in the browser using cryptographic randomness. The tool does not upload the generated values, contact a network service, ping an address, reserve it, or claim ownership. Those privacy and safety properties make the fixed RFC ranges useful for offline work, but they do not expand the supported input from predefined blocks to arbitrary CIDR input.
When a custom CIDR is essential
An exact requirement such as restricting every result to one organization-specific prefix is outside this product’s verified contract. The supported controls are the three address modes, the 1-through-100 count, and the Generate addresses action. A value produced from one of the built-in RFC blocks cannot be presented as belonging to a different custom block.
A custom-range workflow requires a separate implementation that explicitly accepts CIDR input, derives the eligible host range, excludes inappropriate host values, and enforces the requested count and uniqueness. Such an implementation should also preserve the safety objective by excluding public Internet targets when that is the purpose of the data.
Use this generator when one of its predefined RFC documentation or private blocks meets the requirement. Before generating a list, confirm that:
- You need documentation, private IPv4, or IPv6 documentation addresses rather than arbitrary public targets.
- The selected mode’s CIDR blocks are acceptable for the intended document or fixture.
- The requested count falls between 1 and 100.
- Every private value will be checked against the eventual local environment.
- The output will remain in an example, offline, or properly reviewed network context.
For an exact custom-CIDR assignment, choose a purpose-built custom-range generator or script instead of forcing this fixed-range tool outside its documented limits.
For a deeper look, see Is a Random Letter Generator Safe? Privacy and Limits.