1001Ferramentas
🛡️ Security

IPv6 CIDR Visual Explainer

Explain an IPv6 prefix visually: hex breakdown, address count, expanded/compressed range — quick reference for SREs.

Expanding an IPv6 address and understanding the prefix

An IPv6 address holds 128 bits written as eight hexadecimal groups, but it almost never appears in that full form: leading zeros are dropped and the longest run of zeroed groups becomes a double colon. The abbreviation helps reading and hinders comparing — two addresses written differently can be the same one.

Paste the address with its prefix and the page returns the expanded form, the canonical compressed form and what the prefix delimits. Expansion is the step that clears up most of the confusion: with all eight groups visible, you can compare addresses, check whether one falls inside a range and see where the prefix cuts.

On prefix sizes, the IPv6 convention differs sharply from IPv4. The standard block a provider hands a residential customer is a /56 or a /48, and each local network gets a /64 — which is the size stateless autoconfiguration expects. Subnets smaller than /64 break autoconfiguration, which is why economising addresses in IPv6 almost never makes sense: the space was sized so you would not have to.

Frequently asked questions

Why /64 and not something smaller?
Because stateless autoconfiguration uses the final 64 bits for the interface identifier. With a prefix longer than /64 that mechanism stops working and the network has to rely on manual configuration or DHCPv6. The recommendation is using /64 even on a network with two devices.
Where can the double colon appear?
Once per address only. Two occurrences would make expansion ambiguous, since there would be no way to tell how many zeroed groups each represents. The canonical form also requires using the abbreviation on the longest run of zeros, not on any run.
How do I tell whether an address falls inside a prefix?
By comparing the prefix bits after expanding both. With the full form in hand you just look at how many hexadecimal groups the prefix covers — a /48 covers the first three groups, a /64 the first four — and check whether they match.

Related Tools