Random IP Generator
Generate up to 15 random IPv4 or IPv6 addresses at once, from a chosen country block or from any start and end range you type in.The Random IP Generator produces between 1 and 15 IP addresses per click, in either IPv4 (like 104.108.41.217) or IPv6 (like 2a01:4f8:c2c:9e31:0:0:0:1) form. By default it draws from the whole address space. You can narrow that to a block registered to one of 55 countries, or type in your own start and end addresses to get numbers from a specific subnet. The list appears in a panel next to the form with a Copy button that grabs every address at once, one per line.
Options on the form
- IPv4 or IPv6. Two buttons at the top switch between the formats. Switching resets the other fields to their defaults.
- Number of IPs. Anything from 1 to 15. Entering 0, a blank, or more than 15 shows an error instead of results.
- Country (IPv4 only). A dropdown of 55 countries, from China, India and the United States through to Ethiopia, Myanmar and Tanzania. Picking one fills the start and end range with an address block allocated to that country, so every generated address falls inside it.
- Start range and end range. Editable for both formats. Type any two addresses and the results will fall between them. For IPv4 this is a true numeric range: 10.0.0.0 to 10.0.255.255 gives you addresses anywhere inside that /16. The end must not be lower than the start, and both must be valid addresses, or you get an error.
Two limits worth knowing. The IPv6 fields need the full eight-group form (0:0:0:0:0:0:0:0 works, but the :: shorthand does not). And IPv6 ranges are applied group by group rather than as one large number, so each of the eight hextets is picked independently between the corresponding start and end hextet. For most test data that is indistinguishable from a real range; if you need strict subnet math for IPv6, do it in code.
How the country filter works
Each country in the dropdown maps to one contiguous IPv4 block taken from the regional registry allocations (APNIC, ARIN, RIPE, AFRINIC and LACNIC). China uses 1.180.0.0 to 1.185.255.255, the United States 100.128.0.0 to 100.255.255.255, Germany 103.204.204.0 to 103.204.207.255, Nigeria 102.131.64.0 to 102.131.255.255, and so on. A geolocation lookup on the generated address will usually resolve to that country, which is what you want when testing a geo-based feature. It is one block per country, not the country's entire address space, so don't treat the output as a sample of "all US IPs". The addresses are also not checked against live hosts; a random number inside an allocated block may or may not belong to a device that is currently online.
What people use it for
- Seeding logs and fixtures. Fifteen addresses from a chosen country, pasted into a test log file, is enough to exercise a GeoIP dashboard or a rate limiter.
- Testing IP validation and allow-lists. Set a narrow range such as 192.168.1.1 to 192.168.1.254 to generate addresses inside a private LAN, or a public range to make sure your allow-list rejects them.
- Placeholder values in screenshots, mockups and documentation. Real-looking addresses without exposing a real server.
- IPv6 practice. Students and admins getting used to the eight-hextet layout can generate examples and try compressing them by hand.
If your test records need more than an address, the Random MAC Address Generator pairs well with this one for network fixtures, and the Random User Agent Generator covers the browser side of a request log. For account-style data use the Random Email Generator, and for secrets the Random API Key Generator or Encryption Key Generator. The full set is under all developer and test data tools.
IPv4 versus IPv6 in brief
An IPv4 address is 32 bits written as four decimal numbers from 0 to 255 separated by dots, which allows about 4.3 billion addresses. Those ran out years ago at the registry level, which is why carriers use shared address space like 100.64.0.0/10 (the block the US option here draws from) and home networks sit behind NAT. IPv6 is 128 bits written as eight groups of four hexadecimal digits separated by colons, about 3.4 × 1038 addresses. Leading zeros in a group can be dropped and one run of all-zero groups can be replaced with ::, which is why 2001:0db8:0000:0000:0000:0000:0000:0001 is normally written 2001:db8::1. This generator outputs the uncompressed form with leading zeros trimmed in each group.
Frequently asked questions
- Are these fake IP addresses safe to copy and paste?
Yes, in the sense that they are just numbers. Nothing here connects to, scans or claims an address. Whether a generated address currently belongs to a real device is not checked, so use the output for test data, examples and screenshots, not for configuring anything that will send traffic.
- Can I generate a random IP address by country?
Yes, for IPv4. Choose one of the 55 countries in the dropdown and the start and end range fill in with an address block allocated to that country. IPv6 has no country dropdown, but you can type a range by hand.
- Does a generated IP change or hide my own IP address?
No. This is a text generator. Changing the address your traffic uses requires a VPN or proxy, which is a different kind of tool entirely.
- Why does the IPv6 form reject my address?
The IPv6 range fields require all eight groups written out and separated by colons, for example 2001:db8:0:0:0:0:0:1. The :: shorthand and addresses with fewer than eight groups are treated as invalid.
- How many addresses can I generate at once?
Between 1 and 15 per click, in either format. Use the Copy button to grab the whole list, then generate again for another batch.





