Random IPv4 Address Generator — Inside the CIDR Block You Choose
Generate bulk random IPv4 addresses inside any chosen /8–/30 CIDR subnet.
Block 10.20.0.0/16 holds 65,536 addresses. Host bits come from the browser's cryptographic generator and no address repeats.
When to use the Random IPv4 Address Generator (Custom CIDR)
Always inside the block
Enter a block such as 10.20.0.0/16 or 192.168.1.0/24 and choose how many. Every address is guaranteed to sit inside that block, so test data never touches another network.
No network or broadcast
Hosts mode drops the network and broadcast addresses in /30 or larger blocks, following the same subnet rule as Python's hosts(). /31 and /32 blocks use all their addresses.
Unique and unbiased
Host bits come from the browser's cryptographic generator with rejection sampling, so every address is equally likely, and none appears twice. If you ask for more than the block holds, every address is shown in random order.
Ready for testing
Use the result to fill test databases, simulate clients in load tests or build documentation samples from 192.0.2.0/24, up to 10,000 addresses at a time.
Frequently asked questions
How many addresses can a /24 give?
At most 254 in hosts mode, or 256 if the network and broadcast addresses are included.
Can the result be sorted?
Yes. Tick Sort the result to order the addresses numerically without changing which ones were picked.
What about IPv6?
Use the Random IPv6 Generator, which works with prefixes such as /48 or /64.
Can an address repeat after another click?
Each click makes a new list that is unique within itself; a later list may contain addresses from an earlier one.
Is my data sent to a server?
No. The addresses are made in your browser.
Similar tools
- 32-Bit Binary Octets to Dotted-Decimal IPv4 ConverterConvert 32-bit binary bitstreams or dotted binary octets back into IPv4.
- IPv4 Address to Hexadecimal (0x) ConverterConvert IPv4 octets into dotted hex and 32-bit hex (for DHCP Options & /proc).
- Hexadecimal (0x) to Dotted-Decimal IPv4 ConverterDecode hex bytes from packet dumps, /proc/net/tcp or DHCP logs back into IPv4.
- IPv4 Address to 32-Bit Unsigned Integer ConverterConvert dotted IPv4 addresses into a single 32-bit unsigned decimal integer.