You don't have javascript enabled. Please enable javascript to use this website.

Random IP Generator

Generate random IPv4 and IPv6 addresses in standard, binary, hexadecimal, or decimal integer format — up to 1,000 per batch.
IP Version:
IP Format:
Options:
Range:
Quantity: (Max 1,000)
Delimiter:
Generate IPs Clear
Copy to Clipboard Download .txt
More Tools

What Is a Random IP Generator?

A random IP generator (also called a random IP address generator) creates syntactically valid IPv4 or IPv6 addresses on demand using a pseudo-random number algorithm. IPv4 addresses are 32-bit values expressed as four decimal octets (0–255 each), as defined in RFC 791. IPv6 addresses are 128-bit values expressed as eight colon-separated hexadecimal groups (0x0000–0xFFFF each), per RFC 8200. Generated addresses are structurally correct but not assigned to any device — they are safe for use in test environments, mock datasets, and software validation pipelines.


Property IPv4 IPv6
Address size 32 bits 128 bits
Address space ~4.3 billion addresses ~340 undecillion addresses
Governing RFC RFC 791 RFC 8200
Format 4 decimal octets (0–255) 8 colon-separated hex groups (0–FFFF)
CIDR constraint Any /0–/32 prefix Any /0–/128 prefix (standard or compressed notation)
Max batch 1,000 addresses 1,000 addresses

Use the Random IP Generator

Configure your options and click Generate IPs to see your addresses.

1

Choose IP Version

Select IPv4 for a 32-bit dotted-decimal address (e.g. 93.184.216.34) or IPv6 for a 128-bit hexadecimal address (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
2

Select Output Format

Choose Standard notation (default), Binary (each octet/group in base-2), Hexadecimal (0x-prefixed integer), or Decimal (unsigned 32-bit integer for IPv4; BigInt string for IPv6).
3

Optionally Constrain to a CIDR Block

Check "Limit to CIDR block" and enter a prefix — for example, 192.168.1.0/24 for IPv4 or 2001:db8::/32 for IPv6. The tool randomizes only the host portion, keeping the network prefix fixed.
4

Set Quantity and Delimiter

Enter a quantity from 1 to 1,000. Select a delimiter — newline (default), comma, semicolon, or space. Check "Public IPs only" to exclude RFC 1918 private ranges, loopback, and link-local addresses.
5

Generate and Copy

Click "Generate IPs". Results appear in the output textarea. Click "Copy to Clipboard" to capture the full list.

Technical Details

IPv4 generation applies Math.random() independently to each of the four octets, producing a uniform distribution across the full 32-bit space (RFC 791). By default, all ranges are included — private (RFC 1918: 10/8, 172.16/12, 192.168/16), link-local (RFC 3927: 169.254/16), documentation (RFC 5737: 192.0.2/24, 198.51.100/24, 203.0.113/24), loopback (RFC 1122: 127/8), and multicast (RFC 5771: 224–239/4). Enable "Public IPs only" to exclude all reserved prefixes and generate publicly routable addresses only.

IPv6 generation applies Math.random() to each of the eight 16-bit groups, producing addresses anywhere in the 128-bit space defined by RFC 8200. Output is always the full expanded colon-hex form before any format conversion is applied.

CIDR-constrained generation masks the network bits of the input prefix and randomizes only the host portion. For IPv4, a /24 leaves 8 host bits (256 possible addresses); a /16 leaves 16 host bits (65,536 possible addresses). For IPv6, both standard notation (2001:0db8:0000:0000::/64) and compressed notation (2001:db8::/64) are accepted.

Output format conversions: Binary renders each octet (IPv4) or 16-bit group (IPv6) as a zero-padded base-2 string. Hexadecimal renders the address as a 0x-prefixed uppercase integer (8 hex digits for IPv4, 32 hex digits for IPv6). Decimal renders a 32-bit unsigned integer for IPv4 (max 4,294,967,295) or a BigInt decimal string for IPv6 (up to 39 digits, using JavaScript's native BigInt type).

Common Uses for a Random IP Generator

Test fixture population: A backend developer building an IP-based rate limiter needs thousands of diverse addresses to verify throttling logic without using real user IPs. Generating 1,000 addresses as a newline-delimited list takes one click — the output pastes directly into test fixtures or seeded database tables.

Firewall ACL verification: A network engineer needs to confirm that an access control list correctly permits traffic from a specific internal subnet — for example, 10.20.0.0/16. CIDR-constrained generation produces random addresses guaranteed to fall within that prefix, enabling systematic rule testing without touching production traffic.

Networking education and subnetting practice: A student studying for a networking certification generates 50 random IPv4 addresses in Binary format and manually determines which fall within a given CIDR block — hands-on binary arithmetic practice without needing a live network or a real address pool.


Frequently Asked Questions

What is the difference between a random IP generator and a VPN?
A random IP generator creates structurally valid address strings for use in testing and development. It does not assign those addresses to your device or alter your network identity in any way. A VPN routes your internet traffic through a different server, actually changing the IP address visible to websites and services you contact.
Do the generated IP addresses work on the internet?
Generated addresses are structurally valid per RFC 791 (IPv4) or RFC 8200 (IPv6) but are not assigned to your device. They cannot replace your actual IP address for internet communication. Some may coincidentally match addresses assigned to real devices on the public internet — they should only be used in test environments, mock datasets, or technical documentation, never to interact with real systems.
How accurate is the format — can the tool produce an invalid address?
Every generated address is validated before output. IPv4 octets are constrained to 0–255 per RFC 791. IPv6 groups are constrained to 0x0000–0xFFFF per RFC 8200. Structural validity is guaranteed. By default, the tool does not exclude RFC 1918 private ranges, RFC 5737 documentation blocks, or other reserved prefixes — enable "Public IPs only" to restrict output to publicly routable addresses.
Do you log or store the addresses I generate?
No. All generation runs in your browser using JavaScript. No address data is sent to any server, logged, or retained after your session ends. The tool has no server-side component.
Can I generate addresses within a specific subnet?
Yes. Enable "Limit to CIDR block" and enter a prefix in CIDR notation — for example, 10.0.0.0/8 or 192.168.1.0/24 for IPv4, or 2001:db8::/32 for IPv6. The tool masks the network portion and randomizes only the host bits, guaranteeing every generated address falls within the specified prefix.
What does Decimal (Integer) output format mean?
For IPv4, Decimal format converts the 32-bit address to an unsigned integer — for example, 192.168.1.1 becomes 3,232,235,777. For IPv6, it converts the 128-bit address to a full decimal BigInt string, which can be up to 39 digits (e.g. 42540488161975842760550356425300246576). This format is commonly used in database schema for IP storage and mathematical range calculations.

Related Guides

Guide What Is an IP Address?
covers IPv4 and IPv6 structure, address classes, and how addresses are assigned by IANA and the Regional Internet Registries.
Guide What Is IPv4?
explains the 32-bit address space, RFC 791 specification, private ranges, exhaustion timeline, and the transition to IPv6.
Guide What Is IPv6?
covers the 128-bit address format, RFC 8200, compressed notation, address types (global unicast, link-local, unique local), and deployment status.