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
- Leading zeros in each group can be dropped:
0db8becomesdb8. - 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
| Type | Range | Used for |
|---|---|---|
| Global unicast | 2000::/3 | Public addresses that route on the internet |
| Unique local | fc00::/7 (in practice fd00::/8) | Private internal addresses, like 10.0.0.0/8 in IPv4 |
| Link-local | fe80::/10 | Every interface has one; used by neighbour discovery and routing protocols |
| Multicast | ff00::/8 | One-to-many traffic; IPv6 has no broadcast |
| Loopback | ::1 | The 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
/48has 65,536 possible/64subnets. Plan them like an IPv4 addressing scheme.
Learn more in our notes on IPv6 addressing and SLAAC and neighbour discovery.