IPv6 Compress / Expand
Convert IPv6 addresses between compressed and expanded forms.
An IPv6 address is 128 bits, written as eight groups of 16 bits separated by colons (e.g. 2001:0db8:0000:0000:0000:0000:0000:0001). A compressed form that omits zeros (2001:db8::1) is also common. This converter translates between the two forms, showing both the canonical compressed and the full expanded version no matter how you type it.
When the same address appears in different forms across firewall rules, logs and config files, normalize to the expanded form to compare them reliably.
Conversion result
| Compressed (canonical) | 2001:db8::1 |
|---|---|
| Expanded (full) | 2001:0db8:0000:0000:0000:0000:0000:0001 |
Compression rules
- Drop leading zeros in each group:
0db8→db8. - Replace only the longest run of all-zero groups with
::. If runs tie, the first one is compressed.
Common IPv6 addresses
::1— loopback (IPv4 127.0.0.1)::— unspecified address (all zeros)fe80::/10— link-local2001:db8::/32— documentation range
Frequently asked questions
Why can :: appear only once?
Using it twice makes it ambiguous how many zero groups belong to each position, so the address can't be restored. The standard allows :: once per address.
Are zone identifiers (%eth0) handled?
The zone id after % is ignored; only the address part is converted.
Can I type uppercase?
Yes. RFC 5952 recommends lowercase, so output is normalized to lowercase.
Related tools
CIDR Calculator
Calculate IP range, subnet mask and host count from CIDR notation.
Public / Private IP Checker
Check whether an IP is private, loopback or a reserved range.
Domain Status Code Decoder
Explain EPP domain status codes like clientTransferProhibited.
DNS Change Impact Checklist
Check risks before changing NS, MX or TXT records.
SSL Error Message Decoder
Explain browser SSL errors like ERR_CERT_COMMON_NAME_INVALID.
Email Bounce Code Decoder
Explain 4xx/5xx SMTP bounce codes and how to fix them.