IPv6 Tools · Free tool

IPv6 Compress

Compress any IPv6 address to its shortest canonical form per RFC 5952 — leading zeros dropped, the longest zero run squashed with ::.

How to use the ipv6 compress

  1. Paste an IPv6 address in any valid notation.
  2. Read the canonical compressed form and how many characters you saved.
  3. Copy the compressed form for configs, documentation, or DNS records.
  4. Compare with the input to spot inconsistent notation in your data.

About this tool

RFC 5952 defines exactly one recommended way to write each IPv6 address: remove leading zeros in each group, then replace the single longest all-zero group run with ::, choosing the leftmost on ties. Following it makes logs, configs, and documentation consistent and diff-friendly.

This tool normalizes any valid input to that canonical form — handy when you merge data from different sources and discover the same address written three different ways.

Frequently asked questions

Why is :: used only once?

RFC 4291 allows a single zero-run abbreviation per address; using two would make the address ambiguous to parse.

My address got longer after compression — why?

If the input had no zero run of two or more groups, the canonical form simply drops leading zeros, which can add characters if your input was unusually terse.

Does it validate the input?

Yes — invalid addresses produce a clear error instead of a silently wrong output.

Looking for more? Browse the full tools library, read the site FAQ, or contact us.