Generate random IPv4 and IPv6 addresses on demand. Choose your count (1–100), toggle between IP versions, and get instant results. Includes network classification, CIDR hints, and export options. All processing is client-side — zero data leaves your browser.
The Random IP Generator is a versatile networking tool designed for developers, system administrators, QA engineers, security researchers, and students. It produces valid, randomized IPv4 and IPv6 addresses with configurable options including private/reserved address inclusion, bulk generation (up to 100 per batch), and export to plain text or CSV. All generation logic is implemented in pure JavaScript and runs entirely in your browser, ensuring zero latency and complete privacy.
IPv4: 0.0.0.0 – 255.255.255.255 · IPv6: :: – ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
Each address is generated using cryptographically strong pseudo-random number generation (via crypto.getRandomValues()) for high entropy.
IPv4 addresses are 32‑bit integers, typically expressed in dotted‑decimal notation (e.g., 192.168.1.1). Our generator produces four octets (0–255) independently using a uniform random distribution. When private/reserved ranges are excluded, the generator skips RFC 1918 (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), RFC 6598 (100.64.0.0/10, CGNAT), RFC 5737 (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, documentation), and the loopback (127.0.0.0/8).
IPv6 addresses are 128‑bit, represented as eight groups of four hexadecimal digits (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334). Our generator produces random 16‑bit groups, with optional compression according to RFC 5952 (leading zeros omitted, longest run of zeros collapsed to ::). Private IPv6 ranges (RFC 4193, fd00::/8) and link‑local (fe80::/10) can be optionally included.
The generator uses the browser's Web Crypto API (crypto.getRandomValues()) to source entropy, ensuring that the output is suitable for security‑sensitive contexts. For bulk generation, we batch the random number requests to maintain performance.
Each generated IPv4 address is automatically classified into one of the traditional network classes (A, B, C, D, or E) based on its leading bits:
| Class | Leading Bits | Address Range | Default Subnet Mask | Usage |
|---|---|---|---|---|
| A | 0 | 0.0.0.0 – 127.255.255.255 | /8 (255.0.0.0) | Large networks |
| B | 10 | 128.0.0.0 – 191.255.255.255 | /16 (255.255.0.0) | Medium networks |
| C | 110 | 192.0.0.0 – 223.255.255.255 | /24 (255.255.255.0) | Small networks |
| D | 1110 | 224.0.0.0 – 239.255.255.255 | — | Multicast |
| E | 1111 | 240.0.0.0 – 255.255.255.255 | — | Experimental / Reserved |
For IPv6, the tool identifies ULA (Unique Local Addresses, fd00::/8), Link‑Local (fe80::/10), Global Unicast (2000::/3), and Multicast (ff00::/8) ranges where applicable.
A QA engineer needs to simulate 10,000 unique client IPs connecting to a load balancer. Using this generator, they can produce a bulk list of 100 IPs at a time, copy them into a test script, and iterate. The ability to include or exclude private ranges lets them mimic both public internet traffic and internal corporate traffic. The CSV export option integrates directly with data‑driven test frameworks (e.g., JMeter, Locust).
A network security analyst uses random IPs to test firewall ACLs (Access Control Lists). By generating addresses from various classes and reserved blocks, they verify that rules correctly allow or deny traffic from expected ranges. The generator’s immediate feedback and classification badges help quickly identify which IPs are private, multicast, or documentation‑only.
An instructor projects the generator in class, generating sets of 20 random IPv4 addresses. Students practice calculating subnet masks, network IDs, and broadcast addresses. The tool’s CIDR badge and class label provide instant verification, making it an effective interactive teaching aid.
crypto.getRandomValues() API, which is a cryptographically strong pseudo‑random number generator (CSPRNG) available in all modern browsers. This ensures the output is suitable for security‑sensitive applications.
.txt file, or download as a .csv file with a header row. The CSV format is compatible with most spreadsheet applications and data analysis tools.