What is an IPv6 address analyzer?
An IPv6 address is 128 bits written as eight groups of up to four hexadecimal digits, such as 2001:0db8:0000:0000:0000:ff00:0042:8329. Because the format allows leading zeros to be dropped and one run of zero groups to be replaced by ::, the same address has many valid spellings, and comparing two of them by eye is a common source of mistakes in firewall rules, DNS records and configuration files. An IPv6 analyzer takes any of those spellings and shows what the address really is.
This tool expands the address to its full form, compresses it the way RFC 5952 recommends (lower case, the longest run of zeros replaced, a single zero group left alone), and writes it without compression and in binary. It then tells you what kind of address it is, using the IANA registry of special-purpose blocks: loopback ::1, link-local fe80::/10, unique local fc00::/7, multicast ff00::/8, documentation 2001:db8::/32, IPv4-mapped, NAT64, 6to4, Teredo and global unicast 2000::/3. It builds the reverse DNS name under ip6.arpa that a PTR record needs, and when you add a prefix such as /48 it shows the first and last address of the network, how many addresses it holds and how many /64 subnets fit inside.
Everything is calculated in your browser with exact integer arithmetic. Nothing you type is sent anywhere, and the address is never stored.
How to analyze an IPv6 address
- Type or paste the address. The page opens with an example loaded. You can write it in any form: full, compressed, in
[brackets]as in a URL, with a zone such asfe80::1%eth0, or with an IPv4 ending such as::ffff:192.0.2.1. - Add a slash and a prefix length (
/48,/64) if you want the range of a network. Without a prefix the tool analyzes the single address. - Read the type of address and whether it is global, that is, meant to be reachable on the public Internet.
- Click any row to copy it: the compressed form for a config file, the expanded form for a comparison, the reverse name for a DNS zone file.
- Use "Copy all" to take every row at once.
Examples
Compressing a long address
2001:0db8:0000:0000:0000:ff00:0042:8329 becomes 2001:db8::ff00:42:8329. The three zero groups are replaced by :: and the leading zeros are dropped.
A link-local address from a MAC address
fe80::3656:78ff:fe9a:bcde is link-local, and the ff:fe in the middle shows it was built from a MAC address by the EUI-64 method. The tool gives the MAC back, 34:56:78:9a:bc:de, with the universal/local bit flipped to its original value. This is also a privacy hint: such an address identifies the device wherever it goes.
The reverse name for a PTR record
2001:db8::1 becomes 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa: the 32 hexadecimal digits written backwards, separated by dots. With a prefix, 2001:db8::/32, only the network part is written, 8.b.d.0.1.0.0.2.ip6.arpa, which is the zone to delegate.
The size of a prefix
2001:db8:abcd::/48 runs from 2001:db8:abcd:: to 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff. It holds 2^80 addresses and 65,536 subnets of /64, the size most networks use for one segment.
Common mistakes
- Using
::twice. The double colon can replace only one run of zeros, because with two the reader could not tell how many groups each one hides. Write the other zeros as0. - Groups longer than four digits.
12345::1is invalid. Each group has one to four hexadecimal digits. - Counting groups wrong. Without
::an address needs exactly eight groups; with it, at most seven written ones. - Putting the prefix on the wrong side. The prefix length goes after a slash at the end,
2001:db8::/32. A slash inside the address is an error. - Comparing strings instead of addresses.
2001:db8::1and2001:0DB8:0:0:0:0:0:1are the same address. Compare the expanded forms, or use this tool to normalize both.
Frequently asked questions
Which form should I use in a configuration file?
The compressed form of RFC 5952: lower case, the longest run of zeros replaced by ::. It is what most tools print, so it makes searching and comparing text easier.
Is a link-local address reachable from the Internet?
No. Addresses in fe80::/10 are valid only on the local link, which is why they are written with a zone, such as fe80::1%eth0, naming the interface.
What does a unique local address mean?
A unique local address (ULA, fc00::/7, in practice fd00::/8) is the IPv6 counterpart of private IPv4 ranges. It works inside your organization and is not routed on the Internet. You can make one with the ULA generator.
How is an IPv6 network different from an IPv4 one?
The usual unit is the /64 subnet, with 2^64 addresses, so networks are not sized to the host count. For IPv4 ranges and masks use the subnet calculator.
Does the tool look up or ping the address?
No. It only does arithmetic on the text you typed. To identify a device from a hardware address, try the MAC address lookup.