Random IP Generator

Generate random IPv4 and IPv6 addresses for testing, development, and network configuration mockups.

runs locally on your browser. Your data never leaves your device.

Quantity

Type

IPv4 Range

Configure your options and click Generate

IPv4, IPv6, or a mix, up to 1000 addresses at once

Common Use Cases

Populate a database fixture with realistic-looking IP addresses for integration testing
Test a geolocation or IP validation library against a large variety of IPv4 and IPv6 inputs
Generate mock access log entries with random client IPs for firewall or analytics demos
Create sample network configuration documents with plausible private IP addresses

About Random IP Generator

IP addresses are the foundational identifiers of networked devices. IPv4, introduced in 1981, uses a 32-bit address space expressed as four decimal octets (e.g. 203.0.113.42), yielding roughly 4.3 billion unique addresses. Despite exhaustion of the public IPv4 pool, it remains dominant in practice thanks to NAT (Network Address Translation), which allows millions of devices to share a single public IP behind a router.

IPv4 reserves several ranges for private use under RFC 1918: 10.0.0.0/8 (10.x.x.x), 172.16.0.0/12 (172.16.x.x–172.31.x.x), and 192.168.0.0/16 (192.168.x.x). These ranges are non-routable on the public internet and are used freely within intranets, home networks, and cloud VPCs. The 127.x.x.x range is reserved for loopback, 169.254.x.x for link-local (APIPA), and 224.x.x.x and above for multicast and reserved uses.

IPv6 was designed to replace IPv4, using a 128-bit address space expressed as eight groups of four hexadecimal digits separated by colons (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This provides approximately 3.4 × 10³⁸ unique addresses, enough for every atom on Earth's surface to have its own address. The prefix 2001:db8::/32 is specifically reserved for documentation and examples (RFC 3849), making it ideal for testing and mockups.

When building applications, generating realistic-looking test IP addresses is useful for populating database fixtures, testing geolocation parsers, simulating log files, verifying network validation logic, and creating realistic demo data. This tool generates cryptographically unsecured but structurally valid IP addresses entirely in your browser using JavaScript, with no server calls and no data stored.

Frequently Asked Questions

Are the generated IP addresses real?
No. The addresses are randomly generated and structurally valid (correct format and range), but they are not tied to any real device or network. They are safe to use in test fixtures, mockups, and documentation. The IPv4 'Public only' mode avoids RFC 1918 private ranges and other reserved blocks, so the output looks like real public IPs, but they are not guaranteed to be assigned to any actual host.
What is the difference between Public, Private, and Any for IPv4?
Public only generates addresses outside the reserved private ranges (10.x.x.x, 172.16–31.x.x, 192.168.x.x), loopback (127.x), link-local (169.254.x), and multicast (224.x+). Private only generates addresses within one of the three RFC 1918 private ranges. Any generates a completely random address across the full 0.0.0.0–255.255.255.255 space, which may land in reserved ranges.
What format is the IPv6 output in?
Each IPv6 address is displayed in full uncompressed format: eight groups of four hexadecimal digits separated by colons (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This is the most explicit and unambiguous form, ideal for testing parsers that must handle all valid IPv6 representations.
Can I generate both IPv4 and IPv6 addresses in the same batch?
Yes. Select 'Both' in the type selector and the generator will produce a mixed list, alternating between IPv4 and IPv6 addresses. The total count you specify is split evenly, so requesting 10 gives you 5 IPv4 and 5 IPv6 addresses.
Is the generation truly random?
The tool uses JavaScript's Math.random(), which is a pseudo-random number generator (PRNG). It is not cryptographically secure, but it is more than sufficient for generating test data, demo fixtures, and mockup content. Each click of 'Regenerate' produces a fresh independent batch.
Is anything sent to a server?
No. All address generation happens locally in your browser using JavaScript. No data is transmitted, logged, or stored anywhere. The tool works fully offline once the page is loaded.