IPv6 Expander & Compressor
Paste one IPv6 address and select Format IPv6 address. The tool shows both the fully expanded and compressed forms.
Results
How IPv6 expansion and compression work
Expand an address to compare all eight hexadecimal groups, or compress it for logs and configuration. Compression removes leading zeros and replaces the longest run of two or more zero groups with ::. If two runs tie, it uses the first.
For example, 2001:0db8:0000:0000:0001:0000:0000:0001 compresses to 2001:db8::1:0:0:1. Both forms represent the same address.
Frequently asked questions
Can I paste an address with a prefix or zone ID?
Enter the address by itself. Remove a suffix such as /64 or %eth0 before formatting.
How are IPv4-mapped addresses formatted?
The compressed form uses a dotted IPv4 suffix, as in ::ffff:192.0.2.1. The expanded form shows all eight hexadecimal groups.
For location and network details in your application, see the IPWho geolocation API.