Random IP Generator – IPv4, IPv6, Public & Private
Generator settings
1–10,000 addresses per batch.
Advanced range and export options
Custom values must use one IP version.
Copy and download use this format.
Examples: 192.168.1.0/24 or 2001:db8::/64.
Start and end must use the same IP version, and start must not exceed end.
Generated addresses
Output is ready to copy after generation.
Advertisement
Worked examples
Select an example to load its settings, then generate a fresh batch.
How to use this random IP generator
1. Choose version and mode
Select IPv4, IPv6, or Both. Any spans the numeric address space; Globally Reachable applies the IANA registry checks; Private/Local uses limited-scope blocks; Documentation/Test uses example space.
2. Set the source
Use a preset, enter a CIDR such as 192.168.1.0/24, or provide inclusive start and end addresses. Custom sources use the version detected from the input.
3. Generate and export
Request up to 10,000 values, require uniqueness if needed, and copy or download a newline list, comma-separated list, CSV file, or JSON array.
Address modes and exclusions
The Globally Reachable mode follows the Globally Reachable field in the current IANA IPv4 and IPv6 special-purpose registries. It distinguishes private-use space, shared CGNAT, loopback, link-local, documentation, benchmarking, multicast, reserved, unique-local, and other special-purpose blocks. Passing these numeric exclusion tests does not prove that an address is allocated, active, safe, or currently routable.
Use the right data for the job: choose Documentation/Test for examples and fixtures. Do not probe, scan, or contact a generated address unless you own it or have explicit authorization.
Practical uses and limitations
Good uses
- Firewall-rule and parser test data
- Database seeding and UI mockups
- Subnet exercises and network simulations
- Documentation using reserved example blocks
Know the limits
- No DNS, WHOIS, allocation, or reachability lookup is performed.
- A random address does not hide or change your actual IP.
- IPv4 network and broadcast addresses depend on the prefix. The CIDR option calculates them; it does not assume every
.0or.255is a boundary.
Algorithm and technical details
IPv4 contains 32 bits, so its full numeric space has 232 values. IPv6 contains 128 bits, for 2128 values. A prefix /p leaves 32 − p IPv4 host bits or 128 − p IPv6 host bits.
For CIDR generation, the tool keeps the network prefix and fills the host bits with values drawn from the browser’s cryptographically secure crypto.getRandomValues() source. Rejection sampling avoids modulo bias and rejects excluded special-purpose blocks. With uniqueness enabled, a Set retains only distinct formatted addresses and the tool checks finite custom ranges before starting.
The IPv4 CIDR boundary option removes the calculated all-zero host value (network) and all-one host value (broadcast) only where those concepts apply. It does not claim that every address ending in .0 or .255 is a network or broadcast address.
Primary references: IANA IPv4 Special-Purpose Registry · IANA IPv6 Special-Purpose Registry · RFC 6890 special-purpose registries · RFC 1918 private IPv4 · RFC 6598 shared CGNAT · RFC 5737 IPv4 documentation · RFC 3849 IPv6 documentation · RFC 4193 IPv6 unique-local · RFC 4291 IPv6 architecture.
Random IP generator FAQ
Are generated IP addresses real?
They are correctly formatted numeric addresses, but a generated address is not proof that a host exists, that the address is allocated, or that it is currently routable.
Are random IPs safe for test fixtures?
Use the Documentation/Test preset for examples, fixtures, and published material. Random globally reachable addresses can belong to real organizations, so do not contact them without permission.
Does this generator change or hide my IP address?
No. It only creates text in your browser. It is not a VPN, proxy, anonymity service, or permission to contact a generated host.
What is the difference between public and private IP addresses?
Private IPv4 blocks and IPv6 unique-local or link-local addresses are intended for limited network scopes. The Globally Reachable preset excludes entries marked non-global in the IANA special-purpose registries, but the result is not guaranteed to be allocated, active, safe, or reachable.
Can a generated batch contain duplicates?
Yes unless Unique addresses only is selected. With uniqueness enabled, the generator uses a Set and refuses requests larger than the selected range can supply.
How does CIDR generation work?
Enter a block such as 192.168.1.0/24 or 2001:db8::/64. The prefix fixes the network bits and the generator randomizes the remaining host bits; for IPv4 CIDRs you can also omit the calculated network and broadcast addresses when applicable.
What is the difference between IPv4 and IPv6 here?
IPv4 addresses contain 32 bits and use dotted decimal notation. IPv6 addresses contain 128 bits and are displayed in compressed hexadecimal notation. Both uses a mixture of the two versions.
Does generated data leave my browser?
No. Generation, filtering, formatting, copying, and export happen locally in your browser. Random values come from crypto.getRandomValues().
