IPv6 subnet calculator

Enter an IPv6 address with a prefix to see its network, address range, compressed and expanded forms, type and reverse DNS name, then list its subnets.

Private: works in your browser, nothing is uploaded.

How to use the IPv6 Subnet Calculator tool

  1. Enter an address like 2001:db8:abcd:12::1/64.
  2. Read the network, range and other values.
  3. Choose a longer prefix and click “List first subnets” to plan subnets.

How IPv6 prefixes work

IPv6 addresses have 128 bits, written as eight groups of four hexadecimal digits. Leading zeros in a group can be dropped, and one run of all-zero groups can be replaced with ::, which is why 2001:0db8:0000:0000:0000:0000:0000:0001 becomes 2001:db8::1. The calculator shows both forms following RFC 5952.

Subnetting in IPv6 is mostly about prefixes rather than host counts. A /64 is the standard size for a single LAN, because stateless address autoconfiguration (SLAAC) needs 64 bits for the interface identifier. Internet providers typically assign a /48 or /56 to a site, which gives 65,536 or 256 /64 networks.

Address types

  • 2000::/3: global unicast, the public internet.
  • fc00::/7: unique local addresses, the IPv6 equivalent of private ranges.
  • fe80::/10: link-local, present on every interface and never routed.
  • ff00::/8: multicast. IPv6 has no broadcast.
  • 2001:db8::/32: reserved for documentation and examples.

Privacy

All calculations run in your browser. Nothing you enter is sent anywhere.

IPv6 prefix sizes at a glance

PrefixNumber of /64 networksTypical use
/324,294,967,296Allocation to an internet provider
/4016,777,216Large organisation or region
/441,048,576Large organisation
/4865,536One site, company or campus
/524,096Smaller site or building
/56256Home or small office from a provider
/6016Some home connections
/641One LAN or VLAN (needed for SLAAC)
/127n/a (2 addresses)Point-to-point router link (RFC 6164)
/128n/a (1 address)Loopback or a single host route

Planning an IPv6 address plan

With a /48 for a site, a common plan uses the 16 bits between /48 and /64 to describe the network: for example the first hex digit for the building or location, the next for the purpose (users, servers, guests, management) and the last two for the VLAN number. Then 2001:db8:abcd:1210::/64 can be read as location 1, purpose 2, VLAN 10. A readable plan makes firewall rules and troubleshooting much easier than handing out networks one after another.

With a /56 from a home or small-office provider, you have 256 /64 networks, which is still plenty for separate LAN, guest, IoT and lab networks.

Useful special addresses

  • ::1: the loopback address, like 127.0.0.1 in IPv4.
  • ::: the unspecified address, used before an interface has an address.
  • 64:ff9b::/96: the well-known prefix for NAT64, used to reach IPv4-only services from IPv6-only networks.
  • ::ffff:0:0/96: IPv4-mapped addresses, how dual-stack software represents IPv4 connections.

Frequently asked questions

Why is there no broadcast address in IPv6?

IPv6 replaced broadcast with multicast, so every address in a subnet can be used.

Should I use a /64 for every LAN?

Yes. Smaller subnets break SLAAC and some features. Use /127 for point-to-point router links.

How many /64 networks are in a /48?

65,536.

What is the ip6.arpa name used for?

Reverse DNS. It lists every hexadecimal digit of the address in reverse order.

How many /56 networks fit in a /48?

256. Each step of 8 bits multiplies the number of networks by 256.

Should I use unique local addresses (fc00::/7)?

Use them for internal services that must keep the same address when your provider prefix changes. Generate a random /48 inside fd00::/8 rather than picking an easy one, so networks can be connected later without conflicts.

Do I still need NAT with IPv6?

Usually not. Every device can have a global address, and a stateful firewall on the router blocks unsolicited incoming connections, which gives the protection people associate with NAT.