Compress an IPv6 Address

Shorten a valid IPv6 address to canonical compressed notation. The conversion runs on the server without external services.

IPv6 address

Enter a valid IPv6 address in full or already shortened notation.

What this tool does

This tool converts a valid IPv6 address to the canonical shortened notation returned by PHP.

It removes leading zeroes from individual groups and replaces eligible consecutive zero groups with a double colon.

How to use the tool

  1. Enter a full or already shortened IPv6 address in the input field.
  2. Run the conversion to receive the compressed notation.
  3. Use the button next to the compressed address when you need to copy the result.

Useful applications

  • Write a long IPv6 address more readably in configuration files, documentation or support requests.
  • Check whether two differently written IPv6 addresses have the same canonical representation.
  • Prepare an IPv6 address in compact form before pasting it into a technical interface.

Notes and limitations

  • The tool accepts one IPv6 address only and does not accept ports, URLs, prefix lengths or interface identifiers.
  • Compression does not change the address itself; it changes only its textual representation.

Frequently asked questions

Why does a compressed IPv6 address contain a double colon?

A double colon replaces one consecutive sequence of at least two all-zero groups and may appear only once in an IPv6 address.