Skip to content

How to Use IPv6 Compression Tool

Compress IPv6 addresses to the canonical short form from RFC 5952: leading zeros removed and the longest run of zero groups replaced with a double colon.

About this tool

Shorten IPv6 addresses to their canonical compressed form (RFC 5952).

How to use IPv6 Compression Tool

  1. Paste one or more IPv6 addresses, one per line.
  2. The compressed form of each address appears instantly.
  3. Copy the results.

Worked example

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.

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.

Put this guide into practice

Explore IP & Network Tools · More practical guides

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help