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.
| # | Prefix | Last address |
|---|---|---|
| 0 | 2001:db8:abcd::/64 | 2001:db8:abcd:0:ffff:ffff:ffff:ffff |
| 1 | 2001:db8:abcd:1::/64 | 2001:db8:abcd:1:ffff:ffff:ffff:ffff |
| 2 | 2001:db8:abcd:2::/64 | 2001:db8:abcd:2:ffff:ffff:ffff:ffff |
| 3 | 2001:db8:abcd:3::/64 | 2001:db8:abcd:3:ffff:ffff:ffff:ffff |
| 4 | 2001:db8:abcd:4::/64 | 2001:db8:abcd:4:ffff:ffff:ffff:ffff |
| 5 | 2001:db8:abcd:5::/64 | 2001:db8:abcd:5:ffff:ffff:ffff:ffff |
| 6 | 2001:db8:abcd:6::/64 | 2001:db8:abcd:6:ffff:ffff:ffff:ffff |
| 7 | 2001:db8:abcd:7::/64 | 2001:db8:abcd:7:ffff:ffff:ffff:ffff |
| 8 | 2001:db8:abcd:8::/64 | 2001:db8:abcd:8:ffff:ffff:ffff:ffff |
| 9 | 2001:db8:abcd:9::/64 | 2001:db8:abcd:9:ffff:ffff:ffff:ffff |
| 10 | 2001:db8:abcd:a::/64 | 2001:db8:abcd:a:ffff:ffff:ffff:ffff |
| 11 | 2001:db8:abcd:b::/64 | 2001:db8:abcd:b:ffff:ffff:ffff:ffff |
| 12 | 2001:db8:abcd:c::/64 | 2001:db8:abcd:c:ffff:ffff:ffff:ffff |
| 13 | 2001:db8:abcd:d::/64 | 2001:db8:abcd:d:ffff:ffff:ffff:ffff |
| 14 | 2001:db8:abcd:e::/64 | 2001:db8:abcd:e:ffff:ffff:ffff:ffff |
| 15 | 2001:db8:abcd:f::/64 | 2001:db8:abcd:f:ffff:ffff:ffff:ffff |
| 16 | 2001:db8:abcd:10::/64 | 2001:db8:abcd:10:ffff:ffff:ffff:ffff |
| 17 | 2001:db8:abcd:11::/64 | 2001:db8:abcd:11:ffff:ffff:ffff:ffff |
| 18 | 2001:db8:abcd:12::/64 | 2001:db8:abcd:12:ffff:ffff:ffff:ffff |
| 19 | 2001:db8:abcd:13::/64 | 2001:db8:abcd:13:ffff:ffff:ffff:ffff |
| 20 | 2001:db8:abcd:14::/64 | 2001:db8:abcd:14:ffff:ffff:ffff:ffff |
| 21 | 2001:db8:abcd:15::/64 | 2001:db8:abcd:15:ffff:ffff:ffff:ffff |
| 22 | 2001:db8:abcd:16::/64 | 2001:db8:abcd:16:ffff:ffff:ffff:ffff |
| 23 | 2001:db8:abcd:17::/64 | 2001:db8:abcd:17:ffff:ffff:ffff:ffff |
| 24 | 2001:db8:abcd:18::/64 | 2001:db8:abcd:18:ffff:ffff:ffff:ffff |
| 25 | 2001:db8:abcd:19::/64 | 2001:db8:abcd:19:ffff:ffff:ffff:ffff |
| 26 | 2001:db8:abcd:1a::/64 | 2001:db8:abcd:1a:ffff:ffff:ffff:ffff |
| 27 | 2001:db8:abcd:1b::/64 | 2001:db8:abcd:1b:ffff:ffff:ffff:ffff |
| 28 | 2001:db8:abcd:1c::/64 | 2001:db8:abcd:1c:ffff:ffff:ffff:ffff |
| 29 | 2001:db8:abcd:1d::/64 | 2001:db8:abcd:1d:ffff:ffff:ffff:ffff |
| 30 | 2001:db8:abcd:1e::/64 | 2001:db8:abcd:1e:ffff:ffff:ffff:ffff |
| 31 | 2001:db8:abcd:1f::/64 | 2001:db8:abcd:1f:ffff:ffff:ffff:ffff |
| 32 | 2001:db8:abcd:20::/64 | 2001:db8:abcd:20:ffff:ffff:ffff:ffff |
| 33 | 2001:db8:abcd:21::/64 | 2001:db8:abcd:21:ffff:ffff:ffff:ffff |
| 34 | 2001:db8:abcd:22::/64 | 2001:db8:abcd:22:ffff:ffff:ffff:ffff |
| 35 | 2001:db8:abcd:23::/64 | 2001:db8:abcd:23:ffff:ffff:ffff:ffff |
| 36 | 2001:db8:abcd:24::/64 | 2001:db8:abcd:24:ffff:ffff:ffff:ffff |
| 37 | 2001:db8:abcd:25::/64 | 2001:db8:abcd:25:ffff:ffff:ffff:ffff |
| 38 | 2001:db8:abcd:26::/64 | 2001:db8:abcd:26:ffff:ffff:ffff:ffff |
| 39 | 2001:db8:abcd:27::/64 | 2001:db8:abcd:27:ffff:ffff:ffff:ffff |
| 40 | 2001:db8:abcd:28::/64 | 2001:db8:abcd:28:ffff:ffff:ffff:ffff |
| 41 | 2001:db8:abcd:29::/64 | 2001:db8:abcd:29:ffff:ffff:ffff:ffff |
| 42 | 2001:db8:abcd:2a::/64 | 2001:db8:abcd:2a:ffff:ffff:ffff:ffff |
| 43 | 2001:db8:abcd:2b::/64 | 2001:db8:abcd:2b:ffff:ffff:ffff:ffff |
| 44 | 2001:db8:abcd:2c::/64 | 2001:db8:abcd:2c:ffff:ffff:ffff:ffff |
| 45 | 2001:db8:abcd:2d::/64 | 2001:db8:abcd:2d:ffff:ffff:ffff:ffff |
| 46 | 2001:db8:abcd:2e::/64 | 2001:db8:abcd:2e:ffff:ffff:ffff:ffff |
| 47 | 2001:db8:abcd:2f::/64 | 2001:db8:abcd:2f:ffff:ffff:ffff:ffff |
| 48 | 2001:db8:abcd:30::/64 | 2001:db8:abcd:30:ffff:ffff:ffff:ffff |
| 49 | 2001:db8:abcd:31::/64 | 2001:db8:abcd:31:ffff:ffff:ffff:ffff |
| 50 | 2001:db8:abcd:32::/64 | 2001:db8:abcd:32:ffff:ffff:ffff:ffff |
| 51 | 2001:db8:abcd:33::/64 | 2001:db8:abcd:33:ffff:ffff:ffff:ffff |
| 52 | 2001:db8:abcd:34::/64 | 2001:db8:abcd:34:ffff:ffff:ffff:ffff |
| 53 | 2001:db8:abcd:35::/64 | 2001:db8:abcd:35:ffff:ffff:ffff:ffff |
| 54 | 2001:db8:abcd:36::/64 | 2001:db8:abcd:36:ffff:ffff:ffff:ffff |
| 55 | 2001:db8:abcd:37::/64 | 2001:db8:abcd:37:ffff:ffff:ffff:ffff |
| 56 | 2001:db8:abcd:38::/64 | 2001:db8:abcd:38:ffff:ffff:ffff:ffff |
| 57 | 2001:db8:abcd:39::/64 | 2001:db8:abcd:39:ffff:ffff:ffff:ffff |
| 58 | 2001:db8:abcd:3a::/64 | 2001:db8:abcd:3a:ffff:ffff:ffff:ffff |
| 59 | 2001:db8:abcd:3b::/64 | 2001:db8:abcd:3b:ffff:ffff:ffff:ffff |
| 60 | 2001:db8:abcd:3c::/64 | 2001:db8:abcd:3c:ffff:ffff:ffff:ffff |
| 61 | 2001:db8:abcd:3d::/64 | 2001:db8:abcd:3d:ffff:ffff:ffff:ffff |
| 62 | 2001:db8:abcd:3e::/64 | 2001:db8:abcd:3e:ffff:ffff:ffff:ffff |
| 63 | 2001:db8:abcd:3f::/64 | 2001: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.
Sources
- IANA IPv6 Special-Purpose Address Registry (last updated 2025-10-09) (checked 2026-11-20)
- IANA Internet Protocol Version 6 Address Space (last updated 2025-10-23) (checked 2026-11-20)
- RFC 5952: A Recommendation for IPv6 Address Text Representation (checked 2026-11-20)
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 address2001: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
- Type an IPv6 address, for example 2001:db8:abcd:12::1, and its prefix length, or paste it as address/prefix.
- Read the prefix, address range, counts, both text forms and the reverse DNS zone.
- 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.