Tools

Home
Password GeneratorLorem IpsumCoin FlipperRandom NumberToken GeneratorRandom Color

Generate Random IP Addresses

Generate random IPv4 and IPv6 addresses. Useful for testing and development. 100% client-side.

Your files never leave your browser
Presets:
Count:0
IPv4:0
IPv6:0
Ready·Crypto-secure randomness

Spin up a batch of random IPv4 or IPv6 addresses for test fixtures, mock data, or firewall rule drafts — pick the count, the type, and whether to skip private ranges. Addresses come from the browser's Web Crypto API, so each batch is cryptographically random, not some lazy Math.random() shortcut. And everything runs in your browser. Nothing gets uploaded.

How It Works

Set Count & Type
→
Crypto-Random Octets
→
Format & Output

The tool grabs random bytes through crypto.getRandomValues — the same API browsers use for TLS keys. For IPv4, four random octets (0–255) get joined with dots. For IPv6, 16 random bytes become eight colon-separated hex groups. If you checked “exclude private,” it re-rolls any address that falls inside 10.x, 172.16–31.x, 192.168.x, or loopback ranges.

Examples

Populating a Firewall Test Config

You’re writing iptables rules and want 5 random public IPs to test against.

INPUT
Count: 5 Type: IPv4 Exclude private: Yes
OUTPUT
74.201.38.112 213.55.190.7 41.88.3.244 156.22.171.60 89.140.215.33

Generating IPv6 for a DNS Zone File

Need AAAA record placeholders while setting up a staging DNS zone.

INPUT
Count: 3 Type: IPv6
OUTPUT
5e01:a4f3:72b8:0c91:d3e7:814a:29f0:6b5c b270:3d8e:f914:60a5:1c7b:e832:4f0d:a196 8f43:12de:b7c0:5a36:e981:0d4f:63a2:c7b8

Bulk Mixed List for a Load Tester

A QA engineer needs 200 mixed IPs, comma-separated, to paste straight into a load-testing tool’s config. Generate once, copy, paste — three seconds flat.

INPUT
Count: 200 Type: Both Separator: Comma Exclude private: Yes
OUTPUT
74.201.38.112, 5e01:a4f3:72b8:..., 213.55.190.7, b270:3d8e:f914:..., ... (200 addresses, comma-separated)

Who Uses This

👨‍💻 Developers

Fill test databases and config files with realistic-looking IP data without thinking up addresses manually.

🔒 Security Engineers

Generate source IPs for firewall rule testing and intrusion-detection simulations.

🧪 QA Testers

Bulk-create IPs to stress-test geo-lookup services, rate limiters, and access-control lists.

📚 Students

Practice subnetting and CIDR calculations with fresh random addresses for every homework set.

Common Mistakes

Using random IPs as real server addresses

These addresses aren’t reserved for documentation — some could belong to real hosts. Don’t point DNS records or production traffic at them. Use RFC 5737 ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24) if you need officially safe addresses.

Forgetting to exclude private ranges for public-facing tests

If your test expects routable IPs but you left the filter off, you’ll get 10.x and 192.168.x addresses mixed in. Those won’t behave like real traffic in a geo-lookup or firewall test. Check the box.

Treating generated addresses as unique identifiers

With only ~4.3 billion IPv4 addresses, collisions happen in large batches. If you need guaranteed uniqueness, generate more than you need and deduplicate, or switch to IPv6 where the address space is practically infinite.

Technical Details

Frequently Asked Questions

Are random IP addresses legal to use in testing?

Generating random IPs is perfectly fine. The addresses themselves are just numbers. What matters is how you use them — don’t send real traffic to addresses you don’t own. For local config files, mock databases, and CI pipelines, random IPs are standard practice.

What’s the difference between IPv4 and IPv6?

IPv4 addresses have four numbers separated by dots (like 192.0.2.1) and top out at about 4.3 billion combinations. IPv6 uses eight groups of hex digits separated by colons, giving you a practically unlimited pool — roughly 340 undecillion addresses. Most of the internet still runs on IPv4, but IPv6 adoption keeps growing.

Why would I exclude private IP ranges?

Private ranges (10.x, 172.16–31.x, 192.168.x) aren’t routable on the public internet. If you’re testing something that simulates external traffic — like a geo-IP lookup or a WAF rule — private addresses would give you false results. Turning the filter on keeps your test data realistic.

Can I generate the same list again?

No — the tool uses cryptographically random values, so every batch is unique. If you need a reproducible set, copy the output right away and save it. There’s no seed or history feature.

Is my data private when using this tool?

Yes. The entire tool runs in JavaScript inside your browser tab. No network requests are made, no data is stored on any server, and the generated addresses exist only in your local browser memory until you close or refresh the page.

Share: