IPv6 Subnet Calculator

Network Client-side ipv6 subnet network cidr

This tool runs entirely client-side, in your browser: your data is never sent anywhere.

What it does

Enter an IPv6 address with a prefix length (e.g. 2001:db8::/32) and get the expanded network address, the first and last address in the block, and the total number of addresses it contains.

Try it

Result will appear here.

How it works

  1. The IPv6 address is expanded to its full 128-bit representation (handling the :: zero-compression shorthand).
  2. The prefix length defines how many of the leading bits are fixed (network bits); the rest are host bits.
  3. The network (first) address is the input address with all host bits cleared to 0; the last address has all host bits set to 1.
  4. The total address count is 2^(128 - prefix), shown using scientific notation for very large ranges since it can vastly exceed what JavaScript numbers can represent precisely.

Everything runs locally in your browser — no data leaves your machine.