Random IPv4 Address Generator, Private & Public Ranges

Generate random IPv4 addresses, private RFC 1918 ranges by default, or any valid public-shaped address. For testing and mock data.

—

How it works

Default mode picks uniformly across the three private ranges reserved by RFC 1918 (10.0.0.0/8, 172.16.0.0–172.31.255.255, 192.168.0.0/16), the addresses used inside home and office networks. Loopback mode gives 127.0.0.x; 'any' gives a validly-shaped public address.

Examples

InputResult
5 addressesprivate-range test data
loopback127.0.0.x for local testing
anypublic-shaped addresses, see the honesty note

Frequently Asked Questions

Are the 'any' addresses safe to scan or use?

No, 'any' mode produces validly-shaped numbers that may belong to a real server or router on the public internet. Never use random public IPs for anything except format testing. The default private mode is the safe choice for mock data.

Why private ranges by default?

RFC 1918 private addresses (10.x, 192.168.x, 172.16-31.x) are guaranteed not to route to anyone else's network, exactly what you want in test fixtures, firewall rules and lab setups.

Are these IPv4 only?

Yes, 32-bit dotted-quad IPv4. IPv6 needs a different generator (its 128-bit addresses are written with hexadecimal colons).

Related Generators

Random Number GeneratorRandom Number List Generator (No Repeats)Random Number Generator 1-10Random Number Generator 1-100Random Number Generator 1-1000Random Serial Number GeneratorRandom Date GeneratorRandom Phone Number Generator (US)