NETWORK UTILITY

IPv6 Compressor

Compress IPv6 notation locally without changing the underlying address.

IPv6 CompressorBrowser-only

How IPv6 compression works

IPv6 addresses contain eight 16-bit hexadecimal groups. Leading zeroes in a group can be omitted, and one longest consecutive run of all-zero groups can be represented with ::. Compressing changes the written form, not the underlying 128-bit address.

Equivalent forms

2001:0db8:0000:0000:0000:0000:0000:0001 and 2001:db8::1 represent the same IPv6 address.

Privacy

The transformation is performed entirely in JavaScript in your browser.

How IPv6 compression works

Leading zeroes inside each 16-bit group can be removed, and one longest consecutive run of all-zero groups can be replaced with ::. The compressed representation is shorter for humans but represents the exact same 128-bit address.

Why only one double-colon is allowed

If an address contained two :: sequences, there would be no unambiguous way to know how many zero groups each sequence represents. A valid compressed IPv6 address therefore uses that shortcut at most once.

Compression does not change the network

The operation is purely textual. Routing, prefix length and the actual IPv6 value remain unchanged.