Random IP Address Generator

Generate random IPv4 addresses (public, private, documentation or inside your own CIDR block), IPv6 addresses and random MAC addresses for testing.

Use generated addresses as test data only. Public addresses may belong to real networks; never use them to probe, scan or impersonate anyone.

What you can do here

How to generate random IP addresses

Choose IPv4, IPv6 or MAC, pick a range, set how many you need (up to 5,000) and press Generate. Public (routable) only skips every special-purpose block: private networks, loopback, link-local, carrier-grade NAT, documentation, benchmarking, multicast and reserved space, plus addresses ending in .0 or .255. That makes the output realistic for log files, analytics fixtures, geo-IP tests and firewall-rule examples.

Private, documentation and CIDR ranges

RangeBlockUse it for
Private (RFC 1918)10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16Home and office LANs, Docker and VPC examples
Documentation (RFC 5737)192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24Docs, tutorials and screenshots: never routed
Loopback127.0.0.0/8Local services
Carrier-grade NAT100.64.0.0/10ISP NAT test cases
Custom CIDRfor example 10.20.0.0/16Random hosts inside your own subnet

With a custom CIDR the generator normalises the network address, skips the network and broadcast addresses for blocks larger than /31, and tells you how many usable hosts there are. Tick Add a port for ip:port pairs such as 198.51.100.23:50412.

Random IPv6 addresses

IPv6 mode produces global unicast addresses from 2000::/3, documentation addresses in 2001:db8::/32 (the safe choice for examples), unique local addresses in fd00::/8 and link-local fe80:: addresses, in full eight-group form or compressed with :: following RFC 5952.

Random MAC address generator

Choose MAC addresses for 48-bit hardware addresses in colon, dash, Cisco dotted or plain format. Locally administered unicast sets the second-least-significant bit of the first byte and clears the multicast bit, so the address can never clash with a manufacturer-assigned one: the right choice for virtual machines, containers and MAC spoofing tests. Real vendor prefix uses a genuine OUI from Apple, Cisco, Intel, Raspberry Pi, VMware, VirtualBox, QEMU/KVM and others and shows the vendor, useful for testing device-detection logic.

02:4F:A1:7C:3B:90                (locally administered)
b827.eb1c.93fa                   (Cisco format, Raspberry Pi OUI)
00:50:56:3A:C1:7E  (VMware)

Frequently asked questions

Are the random IP addresses real?

They are valid, correctly formatted addresses. Public ones may belong to real networks, so use them only as test data and never to scan or attack anyone. For docs and screenshots choose Documentation (RFC 5737) or 2001:db8:: for IPv6, which are never routed.

Can I generate IP addresses in my own subnet?

Yes. Choose Custom CIDR block and enter a block such as 10.20.0.0/16 or 192.168.1.0/24. Network and broadcast addresses are skipped for blocks larger than /31.

How do I generate a random private IP address?

Choose Private for a mix of 10/8, 172.16/12 and 192.168/16, or pick one of the three blocks on its own.

What is a locally administered MAC address?

A MAC address whose first byte has the local bit set, such as 02:xx or x6:xx. It cannot clash with a manufacturer-assigned address, which is why VMs and privacy features use it.

Can it generate IPv6 addresses?

Yes: global unicast, documentation (2001:db8::/32), unique local (fd00::/8) and link-local (fe80::), in full or compressed notation.

How many addresses can I generate at once?

Up to 5,000 per click, unique by default, with optional ports and sorting, as a text file or CSV.

Related tools

Random String GeneratorHostname to IPRandom Data GeneratorUUID GeneratorRandom Number Generator