IPv6 Address Compressor - Free Online Tool

AdSense Placeholder
Slot: header_tool

IPv6 Address Compressor

Compress Any Full IPv6 Address to Its Shortest Form

The compressed address will appear here

AdSense Placeholder
Slot: tool_mid_article

Understanding IPv6 Canonical Form

Standard Canonical Form

RFC 5952 defines the canonical shortest representation — this tool produces exactly that form.

Cleaner Configs

Shorten a verbose, fully-expanded address before pasting it into a config file or documentation.

Learning IPv6

See exactly which run of zero groups gets compressed and why, following the standard longest-run rule.

Client-Side Only

All compression happens locally in your browser — no data is ever sent to a server.

The Longest-Run Rule

Per RFC 5952, only the single longest run of two or more consecutive all-zero groups is compressed with :: — a lone isolated zero group is left as a literal 0, and if two runs of equal length exist, the first (leftmost) one is compressed. This tool implements that exact rule to produce the canonical, standards-compliant shortest form.

Key Takeaways

  • RFC 5952 Compliant: Follows the official canonical compression rule, including the longest-run tiebreak.
  • Lowercase Hex: Output uses lowercase hex digits, matching the RFC 5952 canonical text representation.
  • Client-Side Only: All compression happens locally in your browser — no data is ever sent to a server.
AdSense Placeholder
Slot: footer_leaderboard