IPv6 Calculator

Paste an IPv6 address in any form, with or without a /prefix. The calculator writes it in the standard short form (RFC 5952) and the full 32-digit form, and for the prefix shows the network, first and last address, how many addresses and /64 subnets it holds, what kind of address it is, and the ip6.arpa name for a PTR record.

Calculator

Full or shortened form; a zone like %eth0 and an embedded IPv4 tail (::ffff:10.0.0.1) are fine.

Compressed (RFC 5952)2001:db8:85a3::8a2e:370:7334
Expanded2001:0db8:85a3:0000:0000:8a2e:0370:7334
Network2001:db8:85a3::/64
First address2001:db8:85a3::
Last address2001:db8:85a3:0:ffff:ffff:ffff:ffff
Addresses in prefix2^64 = 18446744073709551616
/64 subnets in prefix1
Address typeDocumentation (RFC 3849)
Reverse DNS (PTR)4.3.3.7.0.7.3.0.e.2.a.8.0.0.0.0.0.0.0.0.3.a.5.8.8.b.d.0.1.0.0.2.ip6.arpa
Binary0010000000000001:0000110110111000:1000010110100011:0000000000000000:0000000000000000:1000101000101110:0000001101110000:0111001100110100

Every calculation runs in your browser. What you type never leaves this device.

Features

  • Canonical compression per RFC 5952: lowercase, no leading zeros, :: for the longest zero run

  • Full expansion to eight four-digit groups

  • Network, first and last address and size of any prefix from /0 to /128

  • How many /64 subnets a /48 or /56 delegation gives you

  • Address type: global unicast, unique local, link-local, multicast, documentation, IPv4-mapped and more

  • ip6.arpa reverse DNS name, ready for a PTR record

Everyday IPv6 jobs

Reading your ISP's delegation

Indian ISPs such as Jio and Airtel hand out IPv6 prefixes to home and business routers. See how many /64 networks your prefix gives you.

Writing firewall and DNS records

Get the exact compressed form for AAAA records and allow rules, and the ip6.arpa name for reverse DNS.

Comparing addresses in logs

The same address can be written many ways. Expand both to see whether two log entries are really the same host.

Planning cloud and data centre subnets

Check the range a VPC or server prefix covers before you assign it.

IPv6 notation in brief

Shortening rules

  • Leading zeros in each group can be dropped: 0db8 becomes db8.
  • One run of two or more all-zero groups can be replaced with ::, and only once per address.
  • When two runs are the same length, the first one is shortened, and letters are written in lowercase.

Prefix sizes you will meet

  • /64 is the standard size of a single LAN; devices pick their own address inside it (SLAAC).
  • /56 gives 256 such networks and /48 gives 65,536; both are common ISP and business delegations.
  • /128 is a single address.

IPv6 Calculator - FAQ