IPv6 Compression Tool
Shorten IPv6 addresses to their canonical compressed form (RFC 5952).
Leading zeros are dropped and the longest run of zero groups becomes ::, following the canonical format of RFC 5952.
Continue your work
- IPv6 Expand Tool — Write addresses out in full.
- IPv6 Subnet Calculator — Calculate the network for an address.
Share this tool
Found it useful? Send it to a friend or teammate.
Rate this tool
0.0
0 ratings
- 5 stars 0
- 4 stars 0
- 3 stars 0
- 2 stars 0
- 1 star 0
Clear instructions
Find steps, examples and limitations below.
Use online
Open the tool in a supported web browser.
Free to use
No sign-up required. Tool-specific limits may apply.
How to use the IPv6 Compression Tool
Shorten IPv6 addresses to their canonical compressed form (RFC 5952).
- 1 Paste one or more IPv6 addresses, one per line.
- 2 The compressed form of each address appears instantly.
- 3 Copy the results.
Example and practical tips
2001:0db8:0000:0000:0000:ff00:0042:8329 compresses to 2001:db8::ff00:42:8329, and 0000:0000:0000:0000:0000:0000:0000:0001 becomes ::1.
Frequently asked questions
Can :: appear twice?
No. The double colon may replace only one run of zero groups, or the address would be ambiguous.
Why use the canonical form?
RFC 5952 defines one standard way to write each address, so the same address always looks the same in logs and configs.
Report an issue
Something broken or not quite right? Tell us and we will look into it.