Random IP Address Generator

Choose IPv4, IPv6, or both, pick a class or address type, and press Generate addresses. Each address is listed with its type and binary form, ready to copy for test data, firewall rules, or lessons.

Try a preset

About this IP address generator

Developers, testers, and network students often need realistic IP addresses that are not tied to a real person: to fill test databases, check input validation, write firewall examples, or practice subnetting. This generator makes IPv4 addresses in a chosen class or in the private and loopback ranges set aside by RFC 1918, and leaves out reserved first octets when you ask for public addresses. It also makes IPv6 addresses of each common type: global unicast, link-local, unique local, multicast, and loopback, written in the RFC 5952 short form if you like. Each address shows its binary form, and you can add the class default prefix or a typical IPv6 prefix length.

How to generate random IP addresses

  1. Choose the version. Pick IPv4, IPv6, or both, or press a preset.
  2. Pick the type. Choose a class, a private range, or an IPv6 type, and how many addresses you want.
  3. Press Generate addresses. Copy or download the list and read the details table for the type and binary form.

Frequently asked questions

Are these real IP addresses?

They are valid addresses in the chosen range, but picked at random. A public one may belong to a real network, so use them for testing and examples, never to scan or contact hosts.

What are private IP addresses?

The ranges 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 are reserved for home and office networks. They are not routed on the internet, which makes them safe for examples.

What are IPv4 classes?

An older scheme that split addresses by the first number: class A (1–126) for huge networks, B (128–191) for medium ones, and C (192–223) for small ones. CIDR replaced it, but the terms are still taught.

How does IPv6 shortening work?

Leading zeros in each group are dropped, and the longest run of all-zero groups becomes ::, once per address. 2001:0db8:0000:0000:0000:0000:0000:0001 becomes 2001:db8::1.

Which addresses should I use in documentation?

RFC 5737 reserves 192.0.2.0/24, 198.51.100.0/24, and 203.0.113.0/24 for IPv4 examples, and RFC 3849 reserves 2001:db8::/32 for IPv6, so they never reach a real host.