Random IP Address Generator

Generate random IP addresses, IPv4 or IPv6, for testing and sample data.

Sample addresses on demand

Testing anything that handles IP addresses — a log parser, a form, a database column, a piece of network code — is easier with realistic sample addresses than with the same 127.0.0.1 over and over. This generates random, correctly-formatted IPv4 or IPv6 addresses, singly or in bulk, to populate test data and exercise your code against varied input.

Choose the version and how many, and the addresses are generated.

Random, and mostly public-range

A generated address is just a plausible string for testing, not a real host you can reach. Worth knowing: some address ranges are reserved — private ranges for internal networks, loopback, documentation ranges — and if you specifically need addresses that will not collide with anything real, the reserved documentation ranges exist for exactly that. For general test data, a spread of random addresses does the job of making sure your code copes with whatever shape of address it meets.

Random IP Address Generator FAQ

Can it generate IPv6 as well as IPv4?

Yes — both versions, correctly formatted, singly or in bulk.

Are the addresses real hosts?

No — they are plausible strings for testing, not addresses you can reach.

Is anything uploaded?

No. The addresses are generated in your browser.

More Developer tools