Random IP Address Generator
This random IP address generator makes lists of IPv4 or IPv6 addresses in private, documentation or public-looking ranges, using your browser's secure random numbers.
These ranges are reserved for examples. They are never assigned to real devices.
1 to 1,000
Why use this random IP address generator
Safe by default
It starts in Documentation mode, whose ranges are reserved for examples, so a list you paste into a tutorial or a bug report points at no real device.
Three kinds of range
Pick private addresses for internal-network test data, documentation addresses for published examples, or public-looking addresses when a field needs something that resembles a real one.
Honest about risk
Public-looking mode says on the page, and again after you copy, that some of its addresses may belong to real hosts and must not be scanned.
What the random IP address generator makes
Choose IPv4 or IPv6, choose a range, set how many addresses you need, and press Generate. The list appears one address per line. Each draw comes from the secure random numbers your browser provides through Web Crypto, not from Math.random. To check an address, paste it into the IP address validator, which takes one address at a time.
The tool makes addresses that are valid in format. It does not check whether an address answers, who holds it, or where it is. A random address does not hide anyone, and nothing here traces anyone either.
The ranges
- IPv4 privateAddresses in 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16, the three blocks set aside for private networks.
- IPv4 documentationAddresses in 192.0.2.0/24, 198.51.100.0/24 or 203.0.113.0/24, the three blocks RFC 5737 reserves for examples. Together they hold 768 addresses.
- IPv4 public-lookingA first number from 1 to 223, with every reserved block left out: 0/8, 10/8, 100.64/10, 127/8, 169.254/16, 172.16/12, 192.0.0/24, 192.0.2/24, 192.88.99/24, 192.168/16, 198.18/15, 198.51.100/24, 203.0.113/24 and everything from 224 up.
- IPv6 privateAddresses that start with fd, taken from the fc00::/7 unique local range, followed by 120 random bits.
- IPv6 documentationAddresses in 2001:db8::/32, the range reserved for IPv6 examples, followed by 96 random bits.
- IPv6 public-lookingA first group from 2000 to 3fff, which skips 2001:db8::/32, 3fff::/20, 2001::/23 and 2002::/16.
- IPv6 styleShort drops leading zeros and compresses the longest run of zero groups to ::, the way a browser writes it. Full writes eight groups of four hex digits.
- No repeatsOn by default. The list holds no address twice. In IPv4 Documentation mode only 768 addresses exist, so a larger count returns 768 and says so.
- CountA whole number from 1 to 1,000. The number is checked before anything is generated, and anything else clears the list and shows an error.
Common Use Cases
Documentation
Use Documentation mode for a README, a tutorial or a support article, so readers cannot mistake the sample for a real server.
Test data
Fill a database column, a log fixture or a form test with addresses that are valid in format.
Network labs
Private mode gives addresses that look like those on a home or office network.
Parser checks
Generate a long IPv6 list in Full and Short style to test a parser that must accept both spellings.
How to generate random IP addresses
Choose IPv4 or IPv6
Pick the address version you need.
Choose a range
Pick Private, Documentation or Public-looking.
Set how many
Enter how many addresses you need, up to 1,000.
Generate
Press Generate, then copy the list or download it as a text file.
Why this page is easy to rely on
Secure random numbers
Every number comes from Web Crypto with rejection sampling, so no value is favoured.
No repeats on request
Leave No repeats on and each address appears once.
Ranges you can read
Every block the tool uses or avoids is printed on this page.
Tips
- •Check an address Paste one address at a time into the IP address validator to see whether it is valid, private or documentation.
- •Publishing examples Use Documentation mode for anything you publish. Public-looking addresses may belong to real hosts.
- •Do not scan Never scan, ping or connect to a public-looking address. It may belong to a real person or company.
Make a list now
Pick a version and a range, then press Generate.
Need plain random numbers instead? Use the random number generator.
Related tools
Frequently Asked Questions
Are randomly generated IP addresses real?
They are valid in format. Private and documentation addresses are not routed on the public internet. A public-looking address is not reserved, so it may belong to a real host. These addresses are not reserved, so some may belong to real hosts. Do not scan or connect to them.
How many IPv4 addresses exist?
IPv4 has 4,294,967,296 addresses, which is 2 to the power of 32. IPv6 has 2 to the power of 128.
Is it safe to use 192.0.2.x in examples?
Yes. RFC 5737 reserves 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 for documentation, so none of them is assigned to a real device.
What is 169.254.x.x?
It is the link-local range, used when a device cannot get an address from a network. Public-looking mode leaves it out.
Is 192.168.1.256 a valid IP address?
No. Each of the four IPv4 numbers runs from 0 to 255, so 256 is out of range. The IP address validator flags it.