Free tech learning for everyone, from basics to pro

IPv6 expand & compress

Show the full and shortest forms of any IPv6 address, and its type.

Runs on your device · nothing is uploaded

The two shortening rules

  1. Leading zeros in each group can be dropped: 0db8 becomes db8.
  2. One run of all-zero groups can be replaced with ::, but only once per address.

The tool also tells you the address type, such as link-local (fe80::/10), unique local (fc00::/7) or the documentation range 2001:db8::/32.

A worked example

Take 2001:0db8:0000:0000:0000:ff00:0042:8329. Drop the leading zeros in each group to get 2001:db8:0:0:0:ff00:42:8329, then replace the run of zero groups with ::. The result is 2001:db8::ff00:42:8329. Only leading zeros go: db80 stays db80.

The address types you will meet

TypeRangeUsed for
Global unicast2000::/3Public addresses that route on the internet
Unique localfc00::/7 (in practice fd00::/8)Private internal addresses, like 10.0.0.0/8 in IPv4
Link-localfe80::/10Every interface has one; used by neighbour discovery and routing protocols
Multicastff00::/8One-to-many traffic; IPv6 has no broadcast
Loopback::1The device itself

Common mistakes

  • Using :: twice in one address. It makes the address ambiguous, so it is invalid.
  • Giving a LAN anything other than a /64. SLAAC, the automatic addressing most devices use, needs a 64-bit interface ID.
  • Forgetting that a site with a /48 has 65,536 possible /64 subnets. Plan them like an IPv4 addressing scheme.

Learn more in our notes on IPv6 addressing and SLAAC and neighbour discovery.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown