Skip to content

IPv6 subnet calculator

Type a compressed, IPv4-embedded or zone-qualified IPv6 address and see the full and short form, the network address, the first and last address, the address count, the type and the reverse DNS name. Split a prefix into subnets and derive a SLAAC interface ID from a MAC address. The calculation runs in your browser.

Free tool · Infrastructure

Checking your session…

01

How to use

  1. A

    Type the IPv6 address with its prefix length (for example 2001:db8:abcd:12::5/48). Compressed, IPv4-embedded and %zone forms are accepted; if there is an error, the character position is shown.

  2. B

    In the result read the full and short form, the network range, the address count, the address type and the reverse DNS name; the network address is calculated from the prefix.

  3. C

    If you like, split a /48 into /64s in the "Split the prefix into subnets" section, derive an interface ID from a MAC address in the "EUI-64" section, and copy the result.

02

Writing and reading IPv6 addresses

An IPv6 address is 128 bits, written in hexadecimal as eight groups of 16 bits. Leading zeros in each group can be dropped and one run of consecutive zero groups can be shortened once to '::'. RFC 5952 recommends a single short form: lower case, the longest zero run shortened, the first on a tie, and a single zero group is not replaced by '::'. The same address can therefore be written in several ways; for comparison and records the short form is preferred.

The last 32 bits may also be written as a dotted IPv4 address (::ffff:192.0.2.4). A zone ID (fe80::1%eth0) says which interface is meant; it is needed for link-local addresses but is not part of the network calculation.

03

Prefix, subnet and /64

The prefix length p says that the first p bits of the address identify the network; the remaining 128−p bits are the host part. IPv6 has no broadcast address and a subnet has no address set aside as "network" or "broadcast"; the tool shows the first and last address of the range. The usual subnet for a local network segment is a /64: SLAAC assumes a 64-bit interface ID. A site typically receives a /48, /56 or /60 from its provider and gives each segment a /64, which is why a /48 yields 65,536 /64s.

The splitting section helps with this planning: it shows how many subnets of the chosen length a prefix yields and lists the first ones. Because the IPv6 address space is plentiful, what matters in subnets is not "saving" addresses but keeping the address plan understandable and summarisable.

04

Address types, reverse DNS and EUI-64

The address type follows from the prefix: fe80::/10 is link-local, fc00::/7 unique local (ULA; fd00::/8 in use), ff00::/8 multicast, 2000::/3 global unicast, and 2001:db8::/32 is reserved for documentation and is not routed on the internet. ::ffff:0:0/96 is an IPv4-mapped address, how IPv4 peers appear to applications on dual-stack sockets.

For reverse DNS the 32 hexadecimal digits of the address are written in reverse order followed by ip6.arpa; delegation is possible only at prefixes that are a multiple of 4 bits (one digit). EUI-64 derives a 64-bit interface ID from a MAC address; you meet it in network documentation and older devices, while most modern systems use temporary or stable opaque IDs for privacy.

FAQ

Is the address I enter sent anywhere?
No. The calculation runs as code in your browser; the address and MAC values are not sent to any server or stored.
Does this replace the IPv4 subnet calculator?
No, it complements it. IPv4 needs network and broadcast addresses, VLSM splitting and overlap checks; IPv6 has no broadcast address and splitting is usually done at the /64 boundary. This tool focuses on the IPv6 details.
Why is a single zero group not shortened to '::'?
RFC 5952 recommends that '::' not be used to shorten just one 16-bit zero group; at least two consecutive groups are needed. That way addresses such as "2001:db8:0:1:1:1:1:1" have one written form. When reading input the tool accepts '::' for a single group too; only the output follows the rule.
Why do prefixes longer than /64 give a note?
SLAAC (RFC 4862) uses a 64-bit interface ID and address autoconfiguration does not work on a prefix longer than /64. Long prefixes such as /127 are used on point-to-point links; the tool adds a note for these and does not treat them as errors.
Why is there no reverse zone name for some prefixes?
The ip6.arpa tree uses one label per hexadecimal digit, so it moves in 4-bit steps. For a prefix that is not a multiple of 4, such as /62, a single reverse zone cannot be defined; you use the nearest shorter zone (for example /60) or split it across several zones. The PTR name of a single address is always shown.
Why is EUI-64 no longer recommended?
An EUI-64 interface ID is derived from the device's MAC address and so makes the device trackable across networks. That is why client operating systems mostly use temporary (RFC 4941) or stable opaque (RFC 7217) IDs. You still meet EUI-64 in network documentation and some server and hardware configurations.

Is your IPv6 address plan ready?

Let us review your address plan, your subnet structure, your dual-stack migration and your firewall rules together. In a free discovery call we discuss where you stand and the migration steps.