Skip to main content
KalkuNet

IPv6 Address Compressor — The Standard RFC 5952 Short Form

Collapse leading zeros and longest consecutive zero hextets using RFC 5952.

Runs in your browserNetwork · IPv6, MAC, Binary & Address Converters
InputCompressed (RFC 5952)ExpandedType
2001:0db8:0000:0000:0000:ff00:0042:83292001:db8::ff00:42:83292001:0db8:0000:0000:0000:ff00:0042:8329Documentation (2001:db8::/32)
fe80:0:0:0:20c:29ff:fe3a:5b2c%eth0fe80::20c:29ff:fe3a:5b2cfe80:0000:0000:0000:020c:29ff:fe3a:5b2cLink-local (fe80::/10)
2001:db8:0:0:1:0:0:12001:db8::1:0:0:12001:0db8:0000:0000:0001:0000:0000:0001Documentation (2001:db8::/32)
0:0:0:0:0:ffff:c000:280::ffff:c000:280::ffff:192.0.2.1280000:0000:0000:0000:0000:ffff:c000:0280IPv4-mapped (::ffff:0:0/96)
ff02:0000:0000:0000:0000:0000:0000:0001ff02::1ff02:0000:0000:0000:0000:0000:0000:0001Multicast (ff00::/8), scope link-local
fd12:3456:789a:1::/64fd12:3456:789a:1::fd12:3456:789a:0001:0000:0000:0000:0000Unique local (ULA) (fc00::/7)

When to use the IPv6 Address Shortest :: Compressor (RFC 5952)

  • One correct form

    One IPv6 address can be written dozens of ways. RFC 5952 sets one canonical form: lower case, no leading zeros and :: only for the longest zero run, so addresses are easy to compare and to search in logs.

  • The exact :: rules

    The longest zero run is shortened; on a tie the first one wins; and a single zero group is never turned into ::, per RFC 5952 section 4.

  • Prefixes and zones kept

    Addresses with /64 or a zone such as %eth0 stay intact in the result, and IPv4-mapped or NAT64 addresses are also shown in the easier mixed notation.

  • Long lists at once

    Paste routing tables, firewall configs or server logs and get the compressed form, the expanded form and the type of every address in one table.

Frequently asked questions

Why lower case?

RFC 5952 requires lower case so every address has one written form. Upper case is still valid to read but is not the canonical form.

Can :: appear twice?

No. Two :: would make the length of each zero run impossible to know, so such an address is invalid and refused here.

Is the result the same as the operating system's?

Yes, it matches what Python's ipaddress library and Linux inet_ntop produce for ordinary addresses.

What about IPv4-mapped addresses?

The hex form such as ::ffff:c000:280 is the main result, with the mixed notation ::ffff:192.0.2.128 that RFC 5952 recommends shown beneath it.

Is my data sent to a server?

No. Everything is processed in your browser, so internal network addresses never leave your device.

Learn more