Skip to main content
Back to Dev generators

Dev

Fake IP Address Generator

Code that validates, parses, logs, or geolocates IP addresses needs test data that covers both protocol versions and a range of values — not just 127.0.0.1. Writing a varied set of realistic IPs by hand is tedious and tends to cluster around the same familiar ranges. This tool generates random addresses in the correct format for either version, in any quantity up to 12. The version selector switches between IPv4 and IPv6. IPv4 addresses are four octets from 0 to 255, joined by dots. IPv6 addresses are eight groups of four hexadecimal digits separated by colons, with no compression applied. The count input goes from 1 to 12. Each address is generated independently, so you get a varied spread across the full range. Paste the batch into access-log fixtures, request mocks, or IP-validation test cases. The addresses span the full numeric range, including values that fall into reserved blocks like 0.x, 127.x, and 192.168.x, which can be useful for testing edge cases in geolocation or filtering code.

Read the complete guide — 4 min read

How to use

  1. Choose your options above
  2. Click Generate
  3. Copy your result

Detailed instructions

  1. Choose IPv4 or IPv6.
  2. Pick how many addresses you want.
  3. Click Generate to produce IP addresses.
  4. Copy them into your tests or data.

Use Cases

  • Testing IP address validation
  • Seeding mock request or access logs
  • Filling sample analytics data
  • Writing networking documentation
  • Building test fixtures with IPs

Tips

  • Use IPv4 unless you specifically need IPv6.
  • They are safe to share in docs.
  • Constrain to a subnet in your own code.
  • Generate a varied batch for testing.

FAQ

what is the difference between IPv4 and IPv6

IPv4 uses four numbers from 0 to 255 separated by dots, like 192.0.2.1, while IPv6 uses eight groups of hexadecimal digits separated by colons. IPv6 exists because the world ran out of available IPv4 addresses.

does the generator avoid reserved address ranges

No — it generates addresses from the full numeric range, which means some may fall into reserved ranges like 0.x, 127.x, 10.x, or 192.168.x. If your test requires addresses only from routable public ranges, filter or constrain the output in your own code.

can I get addresses in a specific range

This tool generates addresses across the full range. If you need a particular private range or subnet — say, a 10.x or 192.168.x block — it is easy to constrain the output in your own code once you have the format.

You might also like

Popular tools from other categories that share themes with this one.

Try these next

More free tools from other corners of the catalog, picked by shared themes.