• ARTICLE
  • STRING
  • CONVERTER
  • ENCRYPT
  • NETWORK
  • MORE
    CHART
    MATH
    COORDINATE
    IMAGE
    FILE
  • ARTICLE
    STRING
    CONVERTER
    ENCRYPT
    NETWORK
    MORE
    CHART
    MATH
    COORDINATE
    IMAGE
    FILE
logo Online Tools
5 Comments Favorite Copy Link Share

IPv6 Address Compress and Expand

TAG ip

Should the IPv4-Mapped IPv6 addresses be converted to IPv6 format, such as converting ::ffff:192.168.0.1 to ::ffff:c0a8:1
IPv6 Address Compress and Expand-summary

Online IPv6 address compress and expand tool that supports the compression and expansion of 0 in IPv6 addresses.

IPv6 Address Compress and Expand-instructions
  1. IPv6 Addresses : Input the IPv6 addresses to be compressed or expanded, with one record per line. Support the input of IPv6 addresses, or IPv4 mapped IPv6 addresses. For example: 0019:0000:0000:0104:8000:0000:0000:0035, ::ffff:192.168.0.1 .
  2. Convert IPv4 : Should the IPv4-Mapped IPv6 addresses be converted to IPv6 format, such as converting ::ffff:192.168.0.1 to ::ffff:c0a8:1 .
  3. Compress : Compress leading 0 and consecutive 0 in IPv6 addresses.
  4. Expand : Expand the leading 0 and consecutive 0 in the IPv6 address.
  5. Open and Download : Text files that are supported for opening are encoded in UTF-8. The downloaded file encoding format is UTF-8.
  6. IPv6 Address compress:
    1. Leading zeros MUST be suppressed. For example, 2001:0db8::0001 is not acceptable and must be represented as 2001:db8::1. A single 16- bit 0000 field MUST be represented as 0.
    2. The use of the symbol "::" MUST be used to its maximum capability. For example, 2001:db8:0:0:0:0:2:1 must be shortened to 2001:db8::2:1. Likewise, 2001:db8::0:1 is not acceptable, because the symbol "::" could have been used to produce a shorter representation 2001:db8::1.
    3. The symbol "::" MUST NOT be used to shorten just one 16-bit 0 field. For example, the representation 2001:db8:0:1:1:1:1:1 is correct, but 2001:db8::1:1:1:1:1 is not correct.
    4. When there is an alternative choice in the placement of a "::", the longest run of consecutive 16-bit 0 fields MUST be shortened (i.e., the sequence with three consecutive zero fields is shortened in 2001: 0:0:1:0:0:0:1). When the length of the consecutive 16-bit 0 fields are equal (i.e., 2001:db8:0:0:1:0:0:1), the first sequence of zero bits MUST be shortened. For example, 2001:db8::1:0:0:1 is correct representation.
    5. The characters "a", "b", "c", "d", "e", and "f" in an IPv6 address MUST be represented in lowercase.
    6. For detailed information on IPv6 address compression, please refer to the rfc5952 document.
  7. IPv4 Map : A typical IPv6 embedded IPv4 address has the following three methods:
    1. ::x.x.x.x Format : The first 96 bits are represented in hexadecimal separated by colons, all of which are 0. The last 32 bits represent the corresponding IPv4 address in dotted decimal. For example ::192.168.5.72 .
    2. ::ffff:x.x.x.x Format : The first 96 bits are represented in hexadecimal separated by colons, where the first 80 bits is 0, the middle 16 bits are ffff, and the last 32 bits represent the corresponding IPv4 address in dotted decimal. For example ::ffff:192.168.5.72 .
    3. 64:ff9b::x.x.x.x Format : The first 96 bits are represented in hexadecimal separated by colons, with a value of 64:ff9b::/96. The last 32 bits represent the corresponding IPv4 address in dotted decimal. For example 64:ff9b::192.168.5.72 .