Parse IPv6 address

Displays the longhand and shorthand versions of a valid IPv6 address.

Input: TextResult: Text

Text input

Run to see the result

Examples

Recognize that long and compressed IPv6 strings name the same address

Explain the compressed address without contacting any host.

Input

2001:0db8:0000:0000:0000:ff00:0042:8329

Expected checks

Case-insensitive
Contains "2001:db8::ff00:42:8329"
IPv6 loopback

Input

0:0:0:0:0:0:0:1

Expected checks

Case-insensitive
Contains "::1"
The unspecified address

Input

0:0:0:0:0:0:0:0

Expected checks

Case-insensitive
Contains "::"
A second documentation subnet

Input

2001:db8:1:0:0:0:0:abcd

Expected checks

Case-insensitive
Contains "2001:db8:1::abcd"
A link-local address

Input

fe80:0:0:0:0:0:0:1234

Expected checks

Case-insensitive
Contains "fe80::1234"

Recognises all reserved ranges and parses encapsulated or tunnelled addresses including Teredo and 6to4.

Format reference: Parse IPv6 address background and specification

Related tools

Browse networking tools