IPv6 Subnet Calculator

Range, address count, type and reverse DNS name for an IPv6 prefix, and the subnets inside it.

About IPv6 Subnet Calculator

An IPv6 subnet calculator that shows the network, address range, address count, reverse DNS name and address type of a prefix, and splits it into subnets.

How to use

  1. Type an IPv6 address with a prefix length, for example 2001:db8:abcd:12::1/56. A bare address is read as /128.
  2. Read the results on the right. Each row has its own copy button, and the panel copies them all at once.
  3. Under Subnets, enter a longer prefix such as 64 to list the subnets inside the network, then copy or download the list.

What it does

  • Accepts the full form, the :: short form and addresses with an IPv4 tail such as ::ffff:192.0.2.1. Upper and lower case both work.
  • Shows the address in its RFC 5952 form (lower case, no leading zeros, the longest run of zero groups as ::) and in its full eight-group form.
  • Gives the network, first and last address, and the number of addresses, exactly and as a power of two. IPv6 has no broadcast address, so the whole range is listed.
  • Names the address type: global unicast, unique local, link-local, multicast with its scope, loopback, documentation (2001:db8::/32 and 3fff::/20), IPv4-mapped, 6to4, Teredo and other special ranges. Where an IPv4 address is embedded, it is shown.
  • Writes the PTR name under ip6.arpa and the reverse zones that cover the prefix. A prefix that is not a multiple of 4 needs more than one zone, and all of them are listed.
  • Splits the network into subnets of a longer prefix, lists the first 256 and says how many there are in total.
  • Does not accept zone ids such as %eth0, which only mean something on one machine. It does not look anything up in DNS or check who holds an address.

Example

Input:          2001:db8:abcd:12::1/56
Network:        2001:db8:abcd::/56
Last address:   2001:db8:abcd:ff:ffff:ffff:ffff:ffff
Addresses:      4,722,366,482,869,645,213,696 (2^72)
Address type:   Documentation (RFC 3849)
Reverse zone:   0.0.d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
Subnets of /64: 256, from 2001:db8:abcd::/64 to 2001:db8:abcd:ff::/64

Privacy

Everything is worked out in the browser from what you type. No request is made and nothing is stored.

Frequently asked questions

How many /64 subnets are in a /48?
65,536, which is 2 to the power of 16. A /56 holds 256 /64 subnets and a /60 holds 16. Enter the larger prefix and 64 as the subnet prefix to list them.
How do I write the ip6.arpa name for an IPv6 address?
Write the address out in full as 32 hex digits, reverse them, put a dot between each one and add ip6.arpa. Reverse zones are delegated on 4-bit boundaries, so a /48 is one zone of 12 digits.
What is the shortest correct way to write an IPv6 address?
RFC 5952 says to use lower case, drop leading zeros in each group, and replace the longest run of two or more zero groups with ::. On a tie the first run is shortened, and a single zero group stays as 0.
Why is fe80::1%eth0 rejected?
The part after % is a zone id. It names a network interface on one machine, so it has no meaning for subnet maths. Remove it and the address is read normally.