10 GB free data on sign-up · One time only · Valid for 1 monthClaim for free
AnboVPN
Random IP generator

Random IP generator

Generate a batch of random public IPv4 or IPv6 addresses in one click, then copy them or download them as TXT or CSV. Everything happens in your browser and nothing is uploaded.

IP version
How many
Separator for copy and TXT

Generated entirely in your browser. Nothing is sent to or stored on our servers.

Generating…

These are randomly generated public addresses. There is no guarantee that a host is using them, and you can't filter by country or city (we don't have an IP database). Check them yourself before use.

How the addresses are generated

Addresses are calculated in your browser with a few simple rules, all listed below.

  • Only publicly routable ranges

    IPv4 skips private, loopback, link-local, carrier-grade NAT (100.64.0.0/10), documentation, multicast and reserved ranges, and never ends in .0 or .255. IPv6 is drawn from the global unicast block 2000::/3 and also skips documentation and other reserved blocks.

  • Spread out, no duplicates

    IPv4 takes values from different /8 blocks in turn, so results do not pile up in a few ranges, and the same address never appears twice in one batch.

  • Randomness comes from the browser

    Values come from the browser's own crypto.getRandomValues. Everything is calculated on your device, the page has no server endpoint, and the batch is gone when you reload.

  • What it is for, and what it is not

    Good for sample data when testing form validation, log parsers, firewall rule examples and teaching demos. The output is only well-formed public addresses: nobody is guaranteed to be using them, so do not scan or connect to other people's servers. For documentation and example configs, prefer the reserved example ranges 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 and 2001:db8::/32; this tool deliberately never generates addresses from them.

How to use it

  1. Choose the IP version, IPv4 or IPv6. A new batch is generated as soon as you switch.
  2. Choose how many addresses you want: 10, 50, 100, 500 or 1,000. For large batches the list box scrolls.
  3. Press Regenerate for a completely new batch. To keep a batch, copy or export it first, because it disappears when you reload the page.
  4. Pick a separator (one per line, comma or space), then press Copy all, or download a .txt, .csv or .json file to use in test scripts, spreadsheets or code.

Options and output in detail

There are only a few options. The exact rules for each are listed here.

IP version
IPv4 is written as four decimal numbers (a.b.c.d). IPv6 is written in the canonical RFC 5952 form: lowercase, no leading zeros in a group, and the longest run of zero groups compressed to ::.
How many
Five fixed sizes: 10, 50, 100, 500 and 1,000. A batch never contains duplicates. For more, press Regenerate again and merge the results yourself.
Excluded IPv4 ranges
0.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4 and 240.0.0.0/4. Addresses whose last number is 0 or 255 are also left out.
IPv6 range
Drawn at random from the global unicast block 2000::/3, excluding 2001::/23 (IETF protocol assignments), 2001:db8::/32 and 3fff::/20 (documentation) and the 6to4 block 2002::/16.
Distribution
IPv4 takes the first number (the /8) in rotation and shuffles the whole batch at the end, so results do not cluster. The IPv6 space is huge, so addresses are simply drawn uniformly.
Copy and separator
Copy all and the .txt download join addresses with the separator you selected: one per line, comma-separated (no space after the comma) or space-separated.
Export formats
.txt holds addresses only. .csv has two columns, ip and version, with a UTF-8 BOM so Excel opens it correctly. .json is an array of address strings. Files are named like random-ipv4-100.txt.
What it cannot do
It cannot filter by country, region or city, or pick a specific network or carrier. We have no city-level IP database, and a randomly generated address has no country attached to it.

Random IP generator FAQ

How does the random IP generator work?

It takes random numbers from the browser's crypto.getRandomValues, builds IPv4 or IPv6 addresses, discards ranges that are not public (private, loopback, multicast, documentation and so on) and removes duplicates. You can generate 10, 50, 100, 500 or 1,000 at a time.

Are the generated IP addresses really in use?

Not necessarily. The tool only guarantees that an address falls in a publicly routable range. It does not check whether it has been assigned, or whether any host is running on it. To check location or whether it is online, verify addresses one by one with a tool such as IP lookup.

Can I pick a country, region or city?

No. A randomly generated address has no country attached, and we have no city-level IP database. Even the allocation records published by the regional internet registries only tell you which country a block is registered in, not where it is actually used, so we left the filter out. For an IP in a particular region, connect through a server there or use a Dedicated IP.

What can random IP addresses be used for?

Typical uses are preparing test data, sample input for form validation and log parsers, filling demo environments, and teaching subnetting or firewall rules. Do not use them to scan, attack or harass other people's servers, or to connect to them without permission.

Why are there no 192.168.x.x, 10.x.x.x or 192.0.2.x addresses in the results?

Those ranges are private, loopback or reserved for documentation, so they are not public addresses and are excluded. If you need addresses of that kind for docs or examples, use 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 or 2001:db8::/32 directly.

Is anything I generate uploaded?

No. Generating, copying and downloading all happen in your browser and never pass through our servers. The batch is gone when you reload the page.

More free tools

Need an IP in a specific country?

AnboVPN offers dedicated IPs in many regions, and shared IPs billed by data. Compare the options and pick the location you need.