ZapKit

IPv6 calculator

Make sense of IPv6 addresses: write them in full or in short form, see what kind of address each is, and work out what a prefix covers.

What is an IPv6 calculator?

An IPv6 calculator helps you read, write and plan IPv6 addresses. Because they're long and can be abbreviated in several ways, comparing two addresses or knowing what a prefix contains is hard to do by eye.

Enter one or more addresses, each optionally followed by a prefix length. For each you get the canonical compressed form, the fully expanded form and the address type. With a prefix you also get the network address, the first and last address in it, the total number of addresses and how many /64 subnets fit, plus an optional reverse DNS name.

How to use the IPv6 calculator

  1. 1.Enter addresses

    One per line, with an optional /prefix.

  2. 2.Read each result

    Compressed and expanded forms and the address type.

  3. 3.Check prefixes

    Network, first and last address and how many /64s fit.

Example: a documentation prefix

2001:db8:85a3::8a2e:370:7334/64:

Expanded
2001:0db8:85a3:0000:0000:8a2e:0370:7334
Type
Documentation
Network / last
2001:db8:85a3::/64 / 2001:db8:85a3:0:ffff:ffff:ffff:ffff
Addresses
2^64

The address sits in a reserved example range, so it's safe to use in guides and tests.

Short form, done properly

IPv6 addresses are 128 bits written as eight groups of four hex digits. The short form drops leading zeros and replaces the longest run of zero groups with ::, following RFC 5952, so different spellings of the same address always come out identical. IPv4-mapped addresses keep their dotted tail, as in ::ffff:192.0.2.128.

Types include global unicast, unique local (fc00::/7, the IPv6 equivalent of private addresses), link-local (fe80::/10), multicast, loopback, documentation (2001:db8::/32), 6to4, Teredo and NAT64. Zone suffixes like %eth0 are accepted and ignored.

Frequently asked questions

Why do many prefixes end at /64?

A /64 is the standard subnet size; devices build their own addresses inside it.

How many /64s are in a /48?

65,536. Sites commonly receive a /48 or a /56 (256 subnets).

What is the reverse DNS option?

It writes the address as an ip6.arpa name, used for PTR records.

Can it convert IPv4 to IPv6?

The IP address converter shows any IPv4 address in IPv4-mapped IPv6 form.

More Developer tools