IPv6 Address Calculator

Compress and expand addresses, identify the type, recover a MAC from EUI-⁠64, and work out prefix ranges, /64 counts and subnets.

What it does

  • Shows an IPv6 address in the RFC 5952 compressed form and the zero-padded full form (8 groups of 4 digits), plus the ip6.arpa reverse name and binary
  • Identifies the type: global unicast, link-local, ULA, loopback, unspecified, multicast (with scope), IPv4-mapped, 6to4, Teredo, NAT64 and documentation
  • If the interface ID is in EUI-⁠64 form (contains ff:fe), flips the U/L bit back and shows the original MAC address
  • From a prefix such as /48, works out the first and last address, the number of /64s, the total address count (with digit grouping and as 2^n), whether an address is inside, and /56 or /64 subnets

Use cases

Normalize addresses in logs and configs

Bring forms like 2001:0db8:0000::0001 and 2001:db8::1 to the single RFC 5952 form before comparing them.

Size up a delegated prefix

When your ISP hands you a /48 or /56, see how many LANs (/64) you can make and how they are numbered.

Identify an unfamiliar address

Find out what range an address starting with fe80:: or fd00::, or a multicast address like ff02::1, belongs to.

Set up reverse DNS

Build the ip6.arpa name for a PTR record (all 32 digits in reverse order) without typos.

Privacy

All calculations run in this browser, and the addresses you enter are not sent anywhere. For sharing, the input is kept only after the # in the URL, which browsers do not send to the server.

FAQ

How is the compressed (::) form decided?

It follows RFC 5952. Leading zeros in each group are dropped, and the longest run of two or more zero groups becomes "::". If several runs are equally long, the first one is shortened; a single zero group is never replaced by "::". Hex digits a–f are lowercase. For example, 2001:0db8:0000:0000:0001:0000:0000:0001 becomes 2001:db8::1:0:0:1.

How many /64s are in a /48 or a /56?

A /48 holds 2^16 = 65,536 /64s, a /56 holds 2^8 = 256, and a /60 holds 16. An IPv6 LAN is normally a /64, and stateless address autoconfiguration (SLAAC) assumes a /64.

When can the MAC address be recovered?

Only when the interface ID (the last 64 bits) was built with modified EUI-⁠64, which inserts ff:fe in the middle of the MAC and flips the U/L bit of the first byte; this calculator reverses those steps. Most current operating systems use temporary addresses (RFC 8981) or stable IDs unrelated to the MAC (RFC 7217), so ff:fe is usually absent. A random ID can also contain ff:fe by chance.

Which IPv6 addresses are safe to use as examples?

2001:db8::/32 (RFC 3849) and 3fff::/20 (RFC 9637, added in 2024) are reserved for documentation. They are not routed on the internet, so examples in manuals and articles never point to a real network.

Related tools

Enter an IPv6 address

Add a prefix length

Zone IDs such as fe80::1%eth0, embedded IPv4 such as ::ffff:192.0.2.1 and brackets such as [2001:db8::1] are accepted.

For IPv4 subnets, use the IP Address Lookup →