Generate random IPv4 and IPv6 addresses for test data, logs and demos. Choose public, private, documentation-safe or your own CIDR range, keep every address unique, add ports, and export as a list, CSV or JSON.

Addresses

Addresses are generated in your browser with its secure random number generator. No lookups or network requests are made, and nothing is sent to Flipper File. Generated addresses are random and may belong to real networks, so use the documentation ranges for anything published.

Random IP Address Generator

This tool generates random IPv4 and IPv6 addresses for testing, sample data, logs and documentation. Choose public, private or documentation-safe addresses, or enter your own CIDR block or address range. Every address is valid and unique by default, and the list can be exported as plain text, CSV or JSON. Everything runs in your browser.

How to Generate Random IP Addresses

  1. Choose IPv4, IPv6 or Both. In Both mode, set what share of the list should be IPv6.
  2. Enter how many addresses you need, up to 10,000 at a time.
  3. Pick the range to draw from, such as public, private or documentation addresses, or a custom CIDR block.
  4. Optionally add random port numbers, sort the list, or switch the output to CSV or JSON.
  5. Click Generate for a new set, then copy or download it.

IPv4 Address Ranges

Public Internet Addresses

Public mode produces addresses that look like real internet hosts. It skips every special-purpose block in the IANA IPv4 registry, including private networks, loopback (127.0.0.0/8), link-local (169.254.0.0/16), carrier-grade NAT (100.64.0.0/10), benchmarking (198.18.0.0/15), the documentation TEST-NETs, multicast (224.0.0.0/4) and the reserved 240.0.0.0/4 block, which includes the broadcast address 255.255.255.255.

Private Addresses (RFC 1918)

Private mode draws from the three ranges reserved for home and office networks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Addresses are spread evenly across all three, so you get a realistic mix rather than mostly 10.x addresses.

Documentation Addresses (TEST-NET)

RFC 5737 sets aside 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 for examples in books, tutorials and manuals. They will never be assigned to a real network, so they're the safest choice for anything you publish. The three blocks contain 762 usable addresses once .0 and .255 endings are skipped.

Custom CIDR Blocks and Ranges

Enter a CIDR block such as 10.20.0.0/16 or a start and end address such as 10.0.0.5-10.0.0.50, and every address will fall inside it. The tool shows how many usable addresses the range holds. With No duplicates on, it tells you if you ask for more addresses than the range contains.

Skipping .0 and .255

Addresses ending in .0 or .255 are often network and broadcast addresses on /24 subnets, and some systems treat them specially. The tool skips them by default. Uncheck the option if you need every address in a range.

IPv6 Address Ranges

  • Global unicast – public-style addresses from 2000::/3. Special blocks are excluded: 2001:db8::/32 and 3fff::/20 (documentation), 2002::/16 (6to4) and 2001::/23 (IETF protocol assignments).
  • Unique local – private addresses from fd00::/8, the IPv6 equivalent of 10.x or 192.168.x.
  • Link-local – fe80::/64 addresses, which every IPv6 interface has for its local network segment.
  • Documentation – 2001:db8::/32, reserved by RFC 3849 for examples.
  • Custom prefix – any prefix such as 2001:db8:abcd::/48, with random bits filled in after the prefix length.

Compressed vs. Expanded Notation

Compressed notation follows RFC 5952, the standard format for writing IPv6. It uses lowercase letters, drops leading zeros in each group, and shortens the longest run of zero groups to ::, giving 2001:db8::1. Expanded notation writes all eight groups in full, such as 2001:0db8:0000:0000:0000:0000:0000:0001, which is easier to align in tables and fixed-width files.

Ports and Output Formats

Turn on Add random port to append a port between 1024 and 65535, written as 203.0.113.7:51234 for IPv4. IPv6 addresses are wrapped in brackets, as in [2001:db8::1]:51234, so the port can't be confused with the address.

  • List – one address per line, or separated by commas or spaces.
  • CSV – columns for the IP, the port (if used) and the IP version, ready for a spreadsheet or database import.
  • JSON – an array of strings for fixtures, mock APIs and test suites.

Sorted order sorts by numeric value rather than as text, so 10.0.0.9 comes before 10.0.0.10, and IPv4 addresses are listed before IPv6.

Common Uses

  • Seeding development databases and filling sample access logs.
  • Testing IP validation, parsing and storage code with both address families.
  • Building firewall, allowlist or rate-limit test cases inside a specific subnet.
  • Writing documentation and tutorials with addresses that can't point to anyone's real network.
  • Teaching IPv4 and IPv6 notation, subnets and CIDR.

Common Questions

Are these real IP addresses?

They are valid addresses picked at random. Public IPv4 and global IPv6 addresses may belong to real networks, so don't use them to send traffic or name anyone in published material. Use the documentation ranges for examples.

Are the addresses truly random?

Yes. They come from your browser's cryptographically secure random number generator, with unbiased sampling so every address in the chosen range is equally likely.

Does this tool look up or ping any addresses?

No. It makes no network requests at all. Addresses are only generated and formatted in your browser.

Networking Tool Library

Flipper File