concept

IPv6 text representation and scope

A 128-bit address has eight 16-bit groups. Canonical hexadecimal notation removes leading zeros and compresses the longest run of at least two zero groups, breaking ties to the left. Link-local addresses require link context; documentation addresses are not public deployment addresses.

Formal Syntax & Structure

networking syntaxnetworking
IPv6 text representation and scope

Working Example

Example Snippetnetworking
2001:0db8:0000:0000:0000:0000:0000:0001 → 2001:db8::1
Networking Reference