Network planning tool

IPv6 Subnet Calculator: Prefixes, Ranges & Address Formats

Find the network prefix, first and last address, compressed and expanded notation and reverse DNS zone for any IPv6 block, then see how many /64 networks it holds and split it into subnets. Enter an address and prefix length to plan a site or data-centre addressing scheme.

  • Free, no sign-up
  • Prefixes /0 to /128
  • Runs in your browser
  • Shareable link

Network

Any address in the block works. Pasting an address with its prefix, such as 2001:db8::/32, sets both fields.

Common prefixes:

Results

2001:db8:abcd::/48
Network prefix 2001:db8:abcd::/48 Address range 2001:db8:abcd:: to 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff 48 network bits, 80 for subnets and interfaces
Compressed2001:db8:abcd::
Expanded2001:0db8:abcd:0000:0000:0000:0000:0000
Total addresses2^80
/64 networks inside65,536
ScopeDocumentation (RFC 3849)
Address typeGlobal unicast format
Reverse DNS zoned.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
Decimal count1,208,925,819,614,629,174,706,176

IPv6 has no broadcast address and reserves nothing at the ends of a prefix, so every address in the block can be assigned. A /48 holds 65,536 /64 networks.

Address nibbles Network Shared nibble Subnet and interface
Hextets2001 0db8 abcd 0000 0000 0000 0000 0000
Interface ID0000:0000:0000:0000 (64 bits, set per host)

IPv6 prefixes compared

Live values for 2001:db8:abcd::
PrefixNetworkAddresses/64 networksTypical useSelect

Every LAN gets a /64 so that SLAAC and other address autoconfiguration work. Sites normally receive a /48 (or a /56 for small sites) from their provider; a /32 is a typical allocation to an ISP.

IPv6 subnet calculator FAQ

What is an IPv6 prefix?

The network part of an address, written as the address followed by a slash and the number of fixed bits, for example 2001:db8:abcd::/48. The first 48 bits identify the site, the next 16 pick one of 65,536 subnets, and the last 64 bits identify the interface on that subnet.

Why does every IPv6 LAN use a /64?

Stateless address autoconfiguration (SLAAC), privacy addresses and most router and firewall features assume a 64-bit interface identifier. A longer prefix on a LAN breaks them. Address space is not scarce: a /64 holds 18 quintillion addresses, so there is no reason to go smaller except on router point-to-point links, where /127 is used.

What is the difference between a /48 and a /56?

Both are site assignments. A /48 gives 65,536 /64 subnets and is the usual size for a business site; a /56 gives 256 /64 subnets and is common for homes and small branches. Ask your provider for a /48 if you plan more than a handful of VLANs or expect the site to grow.

Does IPv6 have a broadcast address?

No. IPv6 replaces broadcast with multicast, so there is no reserved last address and no network address to subtract. Every address in a prefix can be assigned, although the all-zeros address of a subnet is the subnet-router anycast address and is best left to routers.

How is an IPv6 address compressed?

Leading zeros in each 16-bit group are dropped and the longest run of two or more all-zero groups is replaced by a double colon, once per address. Hex digits are written in lowercase. So 2001:0db8:0000:0000:0000:0000:0000:0001 becomes 2001:db8::1. The calculator shows both forms.

What are unique local addresses?

The fc00::/7 range, in practice fd00::/8, is the IPv6 equivalent of private IPv4 space. Pick a random 40-bit global ID to make an fdxx:xxxx:xxxx::/48 and subnet it like any other /48. Unique local addresses are not routed on the internet; use them for internal networks alongside global addresses rather than instead of them.