Random IP generator
Generate random IP addresses.
Input
Output
Guide
What is an IP address?
An IP address identifies a device on a network. An IPv4 address is 32 bits, written as four numbers from 0 to 255 separated by dots. An IPv6 address is 128 bits, written as eight groups of four hexadecimal digits separated by colons. In IPv6, leading zeros can be left out and one run of zero groups can be shortened to ::.
Tool description
The random IP generator shows a random IPv4 address and a random IPv6 address as soon as the page opens, each with a copy button. Press Generate for a new pair.
The addresses come from Faker, a library for fake test data. Each IPv4 number is picked at random from 0 to 255, and each IPv6 group from 0000 to ffff. IPv6 addresses are written out in full, with all eight groups and their leading zeros, in lower case.
Features
- A random IPv4 address and a random IPv6 address at once
- A new pair with one click, each address ready to copy
- IPv6 written in full form, without the
::shortcut
Good to know
The addresses are random across the whole range, so they can be anything: a private address, a multicast or reserved one, or a public address that belongs to a real network. That's fine for filling test forms and checking that a field accepts any valid address.
For documentation, examples and tests that send traffic, use the blocks reserved for that: 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 for IPv4 (RFC 5737), and 2001:db8::/32 for IPv6 (RFC 3849). To see what kind of address you have, use the IP Address Parser.