Toolstia / IPv6 address expander and compressor
IPv6 address expander and compressor
Paste an IPv6 address in any form and see its full expanded form, the shortest correct compressed form, the address type, its number in decimal and hex, and the reverse DNS name used in ip6.arpa records.
Accepts compressed and full forms, square brackets and a trailing IPv4 part. Zone IDs (%eth0) and prefix lengths (/64) are not accepted.
How it works
- Paste an IPv6 address.
- Read the expanded and compressed forms and the address type.
- Copy any value you need from the table.
Compression rules
The tool follows RFC 5952: leading zeros in each group are dropped, the longest run of zero groups becomes a double colon, a single zero group is not replaced, and letters are lowercase.
Address types
It labels addresses such as loopback, unspecified, link-local, unique local, multicast, documentation and IPv4-mapped. Anything else is global unicast or reserved.
Reverse DNS
The reverse name lists the 32 hex digits in reverse order with dots, ending in ip6.arpa. It is the name used for PTR records.
Embedded IPv4
Forms such as ::ffff:192.0.2.1 are accepted. Zone IDs after a percent sign and prefix lengths after a slash are not accepted, so remove them first.
Questions
Is the address looked up anywhere?
No. The conversion is arithmetic only. Everything happens in your browser, and nothing you enter is sent anywhere.
Why does an IPv4-mapped address compress to hex?
The tool writes it in pure hex, such as ::ffff:c000:201. Both forms mean the same address.
Can I check a subnet?
This tool handles single addresses. For IPv4 networks, try the subnet calculator.