Test IP Address Generator — Dummy IPs for Fixtures

Generate synthetic IPv4 and IPv6 strings for databases, log fixtures and parser tests. Documentation ranges are the default, and deliberately invalid strings are an option. Not a geolocation tool, a converter or a scanner.

Loading…
How the test IP generator works
Dummy IPv4 and IPv6 strings for fixtures and parser tests. The default pools are the documentation ranges of RFC 5737 and RFC 3849. This is not a geolocation tool, a converter or a scanner.

How generation works

Pick a quantity (1 to 100), the IP version, the range, valid or invalid rows, the format, an optional port and the order. The list is rebuilt each time you change an option. Copy everything or download it as JSON, CSV, SQL or TXT.

Options

Quantity
How many IP strings to generate, from 1 to 100 (10 by default).
Version
IPv4 only, IPv6 only, or mixed, where each row has an even chance of being IPv4 or IPv6. The decimal and binary formats exist for IPv4 only.
Range
Documentation ranges by default (RFC 5737 and 2001:db8::/32). Private, loopback, link-local and multicast presets are also available, as is a custom CIDR for a subnet you own. There is no preset for random public addresses.
Validity
Valid rows stay inside the selected pool. Invalid mode writes broken strings on purpose, chosen in Invalid kind, for negative parser tests.
Format
A plain address, CIDR with the default prefix, the IPv4 address as an unsigned 32-bit decimal (uint32), or dotted binary. Invalid rows always use the address format.
Include port
Appends a random port between 1024 and 65535, as in ip:port tokens of access log fixtures (remote_addr).
Order
Random draws can repeat, Unique never repeats, and Sequence walks the pool in numeric order. A small pool such as ::1 shows an error when the quantity is larger than its usable hosts.

Examples

IPv4 from the documentation ranges

Settings

version=ipv4, range=documentation, validity=valid, format=address

Sample output

192.0.2.14

Invalid row with an overflowing octet

Settings

validity=invalid, invalidKind=overflowOctet

Sample output

256.0.0.1

Related tools

For MAC fixtures, ports or a JSON table, try the test MAC address generator, the test numeric generator and the JSON test data generator. To convert or plan a known address, use the IP address converter or the subnet calculator.

Test IP FAQ

Fixtures, documentation ranges and what this tool does not do

Why documentation ranges like 192.0.2.x?

RFC 5737 and RFC 3849 reserve the TEST-NET blocks and 2001:db8::/32 for examples and fixtures. With the default settings, no generated address points to a real network.

I searched for a random IP generator. Is this it?

Yes, if you need dummy IP strings for fixtures and parser tests. It does not draw random public IPv4 addresses that are routed on the internet. Use the documentation or private presets, or a subnet you own.

I searched for a fake IP generator. Is this it?

Yes for synthetic strings in fixtures. No for geolocation, WHOIS or posing as real users. This is not an IP lookup, and it does not show where an address is located.

Is this an IP lookup or geolocation tool?

No. It generates strings in your browser. It cannot tell you your own IP, a country or an ASN. Keep the documentation defaults and use the output as fixtures only.

Can I calculate subnets or convert formats here?

No, this tool does no subnet math. Paste a known address into the subnet calculator or the IP address converter, both linked below.

Dummy names, emails, phone numbers, addresses, dates, IBANs, card numbers and JSON, CSV or SQL rows for fixtures and database seeds. Everything is generated in your browser.