Skip to content
gohacks.dev
DevOps

IPv6 Expand, Compress and Subnet Tool

Expand or compress an IPv6 address to RFC 5952 form, see its type and prefix range, count its addresses and get the ip6.arpa reverse DNS name.

Free · No sign-up · Your inputs stay in your browser

Input

Expand, compress and inspect IPv6 addresses

Output

2001:db8::ff00:42:8329

Compressed2001:db8::ff00:42:8329
Expanded2001:0db8:0000:0000:0000:ff00:0042:8329
TypeDocumentation (RFC 3849)
Network2001:db8::/64
Last address2001:db8::ffff:ffff:ffff:ffff
Addresses in prefix2^64
Reverse DNS (PTR)9.2.3.8.2.4.0.0.0.0.f.f.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa

The compressed form follows RFC 5952: lowercase, leading zeros dropped and the longest run of zero groups written as ::. Use it in logs and configs so the same address is always the same string. A /64 is the standard size of one LAN.

Runs in this browser. Nothing you paste is sent to a server.

One address, one string

IPv6 allows many spellings of the same address. RFC 5952 picks one: lowercase, no leading zeros, and the longest run of two or more zero groups replaced by ::. Logs, allow-lists and database keys should store that form, or the same client appears as several addresses.

Sizes

A single LAN is a /64, so stateless address autoconfiguration has 64 bits to work with. Providers typically delegate a /48 or /56 to a site. Rate limits and blocklists keyed on single IPv6 addresses are easy to evade, because one client controls a whole /64; key them on the /64 instead.

Share

Frequently asked questions

What does :: mean in an IPv6 address?
One or more groups of zeros. It can appear only once, otherwise the address would be ambiguous.
What is the IPv6 equivalent of 192.168.0.0/16?
Unique local addresses, fc00::/7, in practice fd00::/8 with a random 40-bit prefix (RFC 4193).
Is what I paste sent anywhere?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is sent to our server or stored.

Keep planning

Similar tools