Subnetcalculator

Random IPv6 Address Generator

Generate test and example IPv6 addresses — inside the safe 2001:db8::/32 documentation prefix, your own prefix, link-local, ULA, or fully random. Everything runs in your browser.

Valid IPv6 Address Examples

::1

Loopback — the IPv6 equivalent of 127.0.0.1.

::

Unspecified address — all 128 bits zero, used before an interface has an address.

fe80::1

Link-local — valid only on the local network segment (fe80::/10).

fe80::21a:2bff:fe3c:4d5e

Link-local with an EUI-64 interface ID derived from a MAC address.

2001:db8::1

Documentation prefix (2001:db8::/32, RFC 3849) — safe to use in examples.

2001:db8:85a3::8a2e:370:7334

Global unicast in compressed form — the classic textbook example.

2001:4860:4860::8888

Global unicast — Google Public DNS.

fd12:3456:789a::1

Unique local address (ULA, fd00::/8) — private IPv6 addressing.

::ffff:192.168.1.1

IPv4-mapped — an IPv4 address represented inside IPv6.

ff02::1

Multicast — the all-nodes group on the local link.

Invalid IPv6 Address Examples

2001::db8::1

Two :: compressions — the number of missing zero groups would be ambiguous.

2001:db8::gggg

"g" is not a hex digit — only 0-9 and a-f are allowed.

2001:12345::1

Group longer than 4 hex digits — each group is exactly 16 bits.

2001:db8:1:2:3:4:5:6:7

Nine groups — an IPv6 address has exactly eight.

1:2:3:4:5:6:7

Only seven groups and no :: to stand in for the missing one.

Not sure about an address? Check it with the IP Validator or normalize it with the IPv6 Compression Calculator.

Frequently asked questions

What is a valid IPv6 address example?

A valid IPv6 address is eight groups of 1-4 hex digits separated by colons, optionally shortened with one :: for consecutive zero groups. Common examples: ::1 (loopback), fe80::1 (link-local), 2001:db8::1 (documentation), 2001:4860:4860::8888 (Google DNS), and ::ffff:192.168.1.1 (IPv4-mapped). See the full annotated list of valid and invalid examples on this page.

Which IPv6 addresses are safe to use in tests and documentation?

Use the 2001:db8::/32 documentation prefix (RFC 3849) — it is reserved specifically for examples and will never be routed on the internet. For private networks use ULA addresses from fd00::/8, and for single-segment lab tests link-local fe80::/64 addresses work too. This generator defaults to 2001:db8::/32 for exactly that reason.

How do I generate a random IPv6 address?

An IPv6 address is just a 128-bit number, so a random address is 16 random bytes formatted as eight hex groups. To stay inside a prefix, keep the prefix bits fixed and randomize only the host bits — e.g. for 2001:db8::/32, keep the first 32 bits and randomize the remaining 96. This tool does that in your browser with the Web Crypto API; nothing is sent to a server.

IPv6 Tools

Everything you need for IPv6 addressing — free, client-side, no signup.

More Network Tools

Free tools for network engineers — no signup, no rate-limit walls.