Skip to content
DoItJag

IPv6 Subnet Calculator

Enter an IPv6 address in any valid form with its prefix length. The calculator shows the network prefix, first and last address, how many addresses and /64 networks it holds, the compressed (RFC 5952) and fully expanded forms, the address type and the ip6.arpa reverse DNS names. You can then split the prefix into smaller ones, starting from any subnet number.

Any valid form works: 2001:db8::1, the full eight groups, or with a prefix such as 2001:db8::/32.

0 to 128. Ignored if the address has /prefix.

Network (prefix)
2001:db8:abcd::/48
First address
2001:db8:abcd::
Last address
2001:db8:abcd:ffff:ffff:ffff:ffff:ffff
Addresses in this prefix
2^80
/64 subnets inside
65,536
Compressed address (RFC 5952)
2001:db8:abcd:12::1

2^80 = 1,208,925,819,614,629,174,706,176 addresses.

Address type: Documentation (2001:db8::/32, RFC 3849). Not reachable on the public internet.

Expanded address
2001:0db8:abcd:0012:0000:0000:0000:0001
Reverse DNS name (PTR)
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.1.0.0.d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
Reverse DNS zone for the prefix
d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa

Split into smaller prefixes

For example /56 for a site or /64 for one LAN.

0 is the first. Lists up to 64 from here.

65,536 subnets of /64 inside /48.

#PrefixLast address
02001:db8:abcd::/642001:db8:abcd:0:ffff:ffff:ffff:ffff
12001:db8:abcd:1::/642001:db8:abcd:1:ffff:ffff:ffff:ffff
22001:db8:abcd:2::/642001:db8:abcd:2:ffff:ffff:ffff:ffff
32001:db8:abcd:3::/642001:db8:abcd:3:ffff:ffff:ffff:ffff
42001:db8:abcd:4::/642001:db8:abcd:4:ffff:ffff:ffff:ffff
52001:db8:abcd:5::/642001:db8:abcd:5:ffff:ffff:ffff:ffff
62001:db8:abcd:6::/642001:db8:abcd:6:ffff:ffff:ffff:ffff
72001:db8:abcd:7::/642001:db8:abcd:7:ffff:ffff:ffff:ffff
82001:db8:abcd:8::/642001:db8:abcd:8:ffff:ffff:ffff:ffff
92001:db8:abcd:9::/642001:db8:abcd:9:ffff:ffff:ffff:ffff
102001:db8:abcd:a::/642001:db8:abcd:a:ffff:ffff:ffff:ffff
112001:db8:abcd:b::/642001:db8:abcd:b:ffff:ffff:ffff:ffff
122001:db8:abcd:c::/642001:db8:abcd:c:ffff:ffff:ffff:ffff
132001:db8:abcd:d::/642001:db8:abcd:d:ffff:ffff:ffff:ffff
142001:db8:abcd:e::/642001:db8:abcd:e:ffff:ffff:ffff:ffff
152001:db8:abcd:f::/642001:db8:abcd:f:ffff:ffff:ffff:ffff
162001:db8:abcd:10::/642001:db8:abcd:10:ffff:ffff:ffff:ffff
172001:db8:abcd:11::/642001:db8:abcd:11:ffff:ffff:ffff:ffff
182001:db8:abcd:12::/642001:db8:abcd:12:ffff:ffff:ffff:ffff
192001:db8:abcd:13::/642001:db8:abcd:13:ffff:ffff:ffff:ffff
202001:db8:abcd:14::/642001:db8:abcd:14:ffff:ffff:ffff:ffff
212001:db8:abcd:15::/642001:db8:abcd:15:ffff:ffff:ffff:ffff
222001:db8:abcd:16::/642001:db8:abcd:16:ffff:ffff:ffff:ffff
232001:db8:abcd:17::/642001:db8:abcd:17:ffff:ffff:ffff:ffff
242001:db8:abcd:18::/642001:db8:abcd:18:ffff:ffff:ffff:ffff
252001:db8:abcd:19::/642001:db8:abcd:19:ffff:ffff:ffff:ffff
262001:db8:abcd:1a::/642001:db8:abcd:1a:ffff:ffff:ffff:ffff
272001:db8:abcd:1b::/642001:db8:abcd:1b:ffff:ffff:ffff:ffff
282001:db8:abcd:1c::/642001:db8:abcd:1c:ffff:ffff:ffff:ffff
292001:db8:abcd:1d::/642001:db8:abcd:1d:ffff:ffff:ffff:ffff
302001:db8:abcd:1e::/642001:db8:abcd:1e:ffff:ffff:ffff:ffff
312001:db8:abcd:1f::/642001:db8:abcd:1f:ffff:ffff:ffff:ffff
322001:db8:abcd:20::/642001:db8:abcd:20:ffff:ffff:ffff:ffff
332001:db8:abcd:21::/642001:db8:abcd:21:ffff:ffff:ffff:ffff
342001:db8:abcd:22::/642001:db8:abcd:22:ffff:ffff:ffff:ffff
352001:db8:abcd:23::/642001:db8:abcd:23:ffff:ffff:ffff:ffff
362001:db8:abcd:24::/642001:db8:abcd:24:ffff:ffff:ffff:ffff
372001:db8:abcd:25::/642001:db8:abcd:25:ffff:ffff:ffff:ffff
382001:db8:abcd:26::/642001:db8:abcd:26:ffff:ffff:ffff:ffff
392001:db8:abcd:27::/642001:db8:abcd:27:ffff:ffff:ffff:ffff
402001:db8:abcd:28::/642001:db8:abcd:28:ffff:ffff:ffff:ffff
412001:db8:abcd:29::/642001:db8:abcd:29:ffff:ffff:ffff:ffff
422001:db8:abcd:2a::/642001:db8:abcd:2a:ffff:ffff:ffff:ffff
432001:db8:abcd:2b::/642001:db8:abcd:2b:ffff:ffff:ffff:ffff
442001:db8:abcd:2c::/642001:db8:abcd:2c:ffff:ffff:ffff:ffff
452001:db8:abcd:2d::/642001:db8:abcd:2d:ffff:ffff:ffff:ffff
462001:db8:abcd:2e::/642001:db8:abcd:2e:ffff:ffff:ffff:ffff
472001:db8:abcd:2f::/642001:db8:abcd:2f:ffff:ffff:ffff:ffff
482001:db8:abcd:30::/642001:db8:abcd:30:ffff:ffff:ffff:ffff
492001:db8:abcd:31::/642001:db8:abcd:31:ffff:ffff:ffff:ffff
502001:db8:abcd:32::/642001:db8:abcd:32:ffff:ffff:ffff:ffff
512001:db8:abcd:33::/642001:db8:abcd:33:ffff:ffff:ffff:ffff
522001:db8:abcd:34::/642001:db8:abcd:34:ffff:ffff:ffff:ffff
532001:db8:abcd:35::/642001:db8:abcd:35:ffff:ffff:ffff:ffff
542001:db8:abcd:36::/642001:db8:abcd:36:ffff:ffff:ffff:ffff
552001:db8:abcd:37::/642001:db8:abcd:37:ffff:ffff:ffff:ffff
562001:db8:abcd:38::/642001:db8:abcd:38:ffff:ffff:ffff:ffff
572001:db8:abcd:39::/642001:db8:abcd:39:ffff:ffff:ffff:ffff
582001:db8:abcd:3a::/642001:db8:abcd:3a:ffff:ffff:ffff:ffff
592001:db8:abcd:3b::/642001:db8:abcd:3b:ffff:ffff:ffff:ffff
602001:db8:abcd:3c::/642001:db8:abcd:3c:ffff:ffff:ffff:ffff
612001:db8:abcd:3d::/642001:db8:abcd:3d:ffff:ffff:ffff:ffff
622001:db8:abcd:3e::/642001:db8:abcd:3e:ffff:ffff:ffff:ffff
632001:db8:abcd:3f::/642001:db8:abcd:3f:ffff:ffff:ffff:ffff

Pure calculation: this page never pings, looks up or contacts any address you type. Nothing is sent anywhere.

About the IPv6 Subnet Calculator

IPv6 addresses are 128 bits long and written as eight groups of hexadecimal digits, which makes them tedious to work out by hand. Prefixes are usually handed out on 4-bit (one hex digit) boundaries: an internet provider might give a business a /48 and a home a /56, and every LAN is normally a /64. This calculator handles the big numbers exactly, using whole-number arithmetic rather than floating point.

Worked example

Your provider delegates 2001:db8:4c2:ab00::/56 to a branch office. Enter it and you see:

  • First address 2001:db8:4c2:ab00:: and last address 2001:db8:4c2:abff:ffff:ffff:ffff:ffff.
  • 256 networks of size /64 inside it, each with 2^64 addresses.
  • The reverse zone to request: b.a.2.c.4.0.8.b.d.0.1.0.0.2.ip6.arpa.

Now set the new prefix to 64 and the start number to 0. The table lists 2001:db8:4c2:ab00::/64, 2001:db8:4c2:ab01::/64 and so on. Typing 16 as the start jumps straight to ab10, handy when VLAN numbers map to subnet numbers.

Writing addresses the same way every time

The same address can be written many ways: with or without leading zeros, and with the double colon in different places. RFC 5952 fixes one preferred form so logs, tickets and configuration files can be searched reliably. The page prints that form plus the fully expanded one, which helps when comparing addresses character by character or building reverse DNS records.

Address types

Each result names the block it falls in, taken from the IANA registries copied into the page: unique-local addresses (fc00::/7) for internal use, link-local fe80::/10, documentation prefixes such as 2001:db8::/32 and 3fff::/20, multicast ff00::/8 and the global unicast range 2000::/3.

What it does not do

It cannot tell whether a prefix is actually routed to you or who holds it; that needs a registry lookup, and this page never contacts the network. Remove any zone index such as %eth0 before pasting a link-local address.

How to use IPv6 Subnet Calculator

  1. Type an IPv6 address, for example 2001:db8:abcd:12::1, and its prefix length, or paste it as address/prefix.
  2. Read the prefix, address range, counts, both text forms and the reverse DNS zone.
  3. To plan addressing, enter a longer prefix such as 56 or 64 and a starting subnet number to list the subnets.

Privacy: how it works

Calculations run in your browser. The addresses you enter are not sent anywhere or contacted.

Frequently asked questions

How many /64 networks are in a /48?

65,536, because 64 − 48 = 16 bits and 2 to the power 16 is 65,536. A /56 holds 256 of them. Each /64 is one LAN and has 2^64 addresses.

Which compressed form is correct?

RFC 5952 sets one standard text form: lower-case hex, no leading zeros in a group, and :: replacing the longest run of two or more all-zero groups (the first one if two runs tie). The calculator always prints that form.

Can I enter a link-local address with %eth0?

Remove the zone index first (the part after %). It only says which network interface to use on one computer and is not part of the address.