About IPv6 Calculator
Paste an IPv6 address in any form, with or without a prefix length. The calculator writes it out in full and in the canonical compressed form of RFC 5952, names its type (global, unique local, link-local, multicast, documentation, IPv4-mapped and more), and gives the ip6.arpa name used for reverse DNS.
Add a prefix such as /48 or /64 to see the network it belongs to, its first and last address, how many addresses it holds and how many /64 subnets fit inside. Every figure is computed exactly, without rounding, even for a /0.
How it works
- The address is read as one 128-bit number, accepting :: shorthand, a trailing dotted IPv4 part, brackets and a %zone.
- Compression follows RFC 5952: lower case, no leading zeros, and the longest run of two or more zero groups replaced by ::.
- The prefix keeps the leading bits and clears the rest to give the network; setting the rest gives the last address.
- Address types come from the IANA IPv6 special-purpose and address-space registries.
Questions
Why does my compressed address look different from how I wrote it?
IPv6 allows several spellings of one address. RFC 5952 picks one: lower case, the longest run of zeros shortened (the first one if two runs tie), and a single zero group left as 0.
What is the zone index after the % sign?
It names the network interface a link-local address belongs to, such as eth0. It is kept and shown, but it is not part of the address itself.
Are the counts rounded?
No. The arithmetic uses whole 128-bit numbers, so even 2^128 is shown exactly.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.