Random Generators100% Client-Side

Generate Sample IPv4 or IPv6 Addresses

Choose an IP version and the number of sample addresses to generate. IPv4 appears as four decimal octets separated by dots. IPv6 appears as eight four-digit hexadecimal groups separated by colons. Use this for text parser tests and interface mockups. The generator chooses values without checking assignment or reachability, so treat the results as text samples for the fixture you are preparing. Save the exact strings so a later test can use the same inputs.

Configuration Options
Output

How to Use the Random IPv4 and IPv6 Address Generator

  1. 1Select IPv4 or IPv6 under IP Version.
  2. 2Set Address Count to control the number of output lines.
  3. 3Use Generate and inspect the separators and groups for the selected version.
  4. 4Copy the example addresses into the local fixture or preview where you need them.

Input & Output Examples

One possible dotted-decimal address shape for a parser fixture.

Input Sample
One IPv4 address
Expected Output
192.0.2.42

One possible expanded address shape. All eight four-digit groups are visible.

Input Sample
One IPv6 address
Expected Output
2001:0db8:0000:0012:0000:0000:0000:0010

Practical Developer Workflows

  • Create a text fixture that exercises a dotted IPv4 parser.
  • Preview how a table displays full-length IPv6 notation.
  • Test a version selector with separate sets of IPv4 and IPv6 samples.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

The generator displays every group with four hexadecimal digits, including leading zeroes. It does not compress a run of zero groups. This makes the overall width consistent when testing an interface that accepts expanded addresses.

Explore Other Tools

12 suggested tools

View all tools