Random IP Address Generator
| # | Address | Type |
|---|
Generate random IP addresses in one click: IPv4, IPv6, or a mix, in batches up to 25, drawn from the browser's cryptographic random number generator - not Math.random - so the addresses are uniform across the whole space and safe to use as test fixtures.
Bottom line: the Scope switch is what makes this useful. Public-looking mode draws from the routable IPv4 space while quietly excluding the reserved blocks - 0.0.0.0, the 127.0.0.0/8 loopback, 169.254.0.0/16 link-local and 255.255.255.255 - so nothing broken lands in your demo; private mode draws only from the RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) that real internal networks actually use.
Typical uses: form-field and API payloads that need a syntactically valid address, database seed data, logging and parsing tests, QA fixtures, and teaching - the private-range mode doubles as a demonstration of which addresses your home router hands out and why they never appear on the public internet.
How to use
- Pick the version (IPv4, IPv6 or mixed) and a batch size, then hit Regenerate - every draw is fresh from crypto.getRandomValues.
- Switch Scope to private-only when you need addresses from the ranges home and office networks actually use (10.x, 172.16-31.x, 192.168.x).
- Copy any address from the table, or set the batch size in the URL (?n=25) to share a pre-sized link.
Frequently asked questions
Are these random IPs safe to use in tests?
Yes - that is the design. Public-looking mode excludes the reserved blocks (loopback, link-local, broadcast and the 0.0.0.0 any-address) so every address parses, routes on paper, and will not break form validation or parsers. They are, of course, placeholders: some may belong to real hosts on the internet, so use them in fixtures and demos, not as traffic targets.
What are the private IP ranges?
RFC 1918 reserves three blocks for internal networks that never route on the public internet: 10.0.0.0-10.255.255.255, 172.16.0.0-172.31.255.255, and 192.168.0.0-192.168.255.255 - about 17.9 million addresses. Your home router hands out 192.168.x.x addresses for exactly this reason; the private mode draws only from these ranges.
How many IPv4 and IPv6 addresses exist?
IPv4 has 4.29 billion (2 to the 32nd) and they are exhausted as a public pool - which is why IPv6 exists: 2 to the 128th, about 340 undecillion addresses, written as eight groups of four hex digits. The generator draws uniformly from both spaces so you can see the format difference directly.
Why do the results say crypto.getRandomValues?
It is the browser's cryptographic random source - the same primitive behind key generation - rather than the predictable Math.random. For address-shaped test data the difference rarely matters, but uniform draws cost nothing here, and the stats block shows it as provenance so you know what produced the batch.
Can I generate IPs for load testing or scanning?
Do not point traffic at random public addresses - that is someone's server, and probing it can be illegal in many jurisdictions. This generator is for syntax: fixtures, seeds, validation demos and teaching. For network testing, use the private ranges on networks you own.