Random IP
Choose a version and a range.
About this tool
The default IPv4 address is in TEST-NET. Any unicast avoids a few obvious reserved first octets but is still a random address.
These addresses are examples. They are not assigned to you.
How to use it
- Open this page and provide the input it asks for.
- Set the options that are visible, then use Generate address.
- Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.
Limitations
- These addresses are examples. They are not assigned to you.
Documentation constants, or a coarse any-range
Documentation mode is a fixed example
The range control defaults to documentation, and the version control defaults to IPv4. In that mode the page does not draw a random address at all. IPv4 returns the single string 192.0.2.1, which sits in the TEST-NET-1 block set aside for documentation. IPv6 returns the single string 2001:db8::1, the documentation prefix’s usual example. Clicking again repeats the same address. crypto.getRandomValues is not used on this branch. The point is a safe placeholder you can put in a manual, a test fixture, or a screenshot without pointing at someone’s network. The address is not assigned to you, and the page does not claim it routes.
Any-range is not a full unicast filter
Choosing any switches to a draw. Each number still comes from randomInt, which takes crypto.getRandomValues’ 32-bit cell and reduces it by the bound. IPv4 is four octets: the first is randomInt(223) plus 1, so it runs from 1 through 223; the next two are randomInt(256), so they run from 0 through 255; the last is randomInt(254) plus 1, so it runs from 1 through 254. That skips 0 and 224-255 in the first octet and skips 0 and 255 in the last. It does not skip private space, loopback, link-local, or the documentation block. 10.x, 127.x, and 192.168.x can all appear. The label on the control says any unicast. The code is that coarse filter only.
IPv6 in any mode writes eight groups of randomInt(65536) in hex, joined by colons. There is no compression, and there is no rejection of multicast, unspecified, or documentation prefixes. A group can be ff00. Treat those strings as synthetic fixtures, not as addresses you may use on a network.
What not to do with the result
Do not put an any-range address into a live configuration and assume it is unused or publicly routable. Do not treat documentation mode as a generator of many distinct TEST-NET hosts. It has one IPv4 constant and one IPv6 constant. Do not use either mode as a privacy address for a real host. The MAC page is a separate draw with its own local bit. This page only prints an IP-shaped string under the rules above.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

