2001:db8::1 into 2001:0db8:0000:0000:0000:0000:0000:0001: eight groups of four hexadecimal digits, with nothing left implied.
How to expand an address
Type or paste an IPv6 address into the field, for example 2001:db8::1.Click Calculate. Copy the full form from the Result row.
/64, square brackets around the address, or an IPv4 address leads to the message "Enter a valid IPv6 address."
How to read the result
What the short form leaves out
0db8 is written db8 and 0000 is written 0. On top of that, one run of groups that are entirely zero may be replaced by a double colon, which can appear only once in an address.
How to expand an address by hand
Look for a double colon ( ::). If there is none, the address already has eight groups and only the last step applies.Count the groups that are written out, on both sides of the double colon. Subtract that count from eight. The answer is the number of zero groups the double colon stands for. Write the address again with that many groups of 0000in place of the double colon.Pad every group to four digits by adding zeros on the left.
2001:db8:a0::1:2. Five groups are written out: 2001, db8 and a0 before the double colon, 1 and 2 after it. Eight minus five is three, so the double colon stands for three zero groups. Putting them in gives 2001:db8:a0:0000:0000:0000:1:2, and padding each group gives 2001:0db8:00a0:0000:0000:0000:0001:0002.
fe80::202:b3ff:fe1e:8329. One group stands before the double colon and four after it, five in all, so three zero groups are missing. Only 202 needs padding. The full form is fe80:0000:0000:0000:0202:b3ff:fe1e:8329.
::1 has one written group, so seven zero groups go in front of it. 2001:db8:: has two, so six zero groups follow.
Padding on the wrong side. Zeros go on the left: a0becomes00a0. Writinga000would produce a different address.Counting only the groups before the double colon. The groups after it count as well. Treating the double colon as one zero group. It stands for a single group only when seven groups are written. Skipping a zero group that is written as a plain 0. In2001:db8:0:1::1the third group is present and still has to be padded to0000.
Short and full forms side by side
| Short form | Full form |
|---|---|
:: | 0000:0000:0000:0000:0000:0000:0000:0000 |
::1 | 0000:0000:0000:0000:0000:0000:0000:0001 |
ff02::2 | ff02:0000:0000:0000:0000:0000:0000:0002 |
2001:db8::1 | 2001:0db8:0000:0000:0000:0000:0000:0001 |
2001:db8:1:: | 2001:0db8:0001:0000:0000:0000:0000:0000 |
2001:db8:0:1::1 | 2001:0db8:0000:0001:0000:0000:0000:0001 |
2001:db8:10::20 | 2001:0db8:0010:0000:0000:0000:0000:0020 |
2001:db8:abcd:12::5 | 2001:0db8:abcd:0012:0000:0000:0000:0005 |
2001:db8:85a3::8a2e:370:7334 | 2001:0db8:85a3:0000:0000:8a2e:0370:7334 |
ff02::2 is the multicast address for all routers on the local link. The remaining rows come from 2001:db8::/32, the range reserved for documentation.
Why the full form is needed
2001:db8::10 comes before 2001:db8::2, although 2 is the smaller number. In full form the same addresses end in 0002 and 0010, and a text sort gets them right. For addresses in full lowercase form, text order and numeric order are the same.
ip6.arpa at the end. For 2001:db8::1 the name is 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. Nobody can write that name from the short form without expanding it first. To query the record itself, use Reverse DNS Lookup.
2001:db8:0:1::/64 start with 2001:0db8:0000:0001: in full form, which a text filter can match directly.
2001:0db8:85a3:0000:0000:8a2e:0370:7334 has the network 2001:0db8:85a3:0000 and the interface 0000:8a2e:0370:7334. The short form 2001:db8:85a3::8a2e:370:7334 hides the boundary inside the double colon.
/48 from its provider commonly divides the address like this.
| Groups | Bits | Usual meaning |
|---|---|---|
/56 covers three groups plus the first two digits of the fourth.
Tasks where expanding helps
Creating a reverse DNS zone for a network. The zone name for 2001:db8:0:1::/64uses the first 16 digits of the full form in reverse order:1.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.Checking whether two differently written addresses are the same. Expand both and compare the results character by character. Feeding addresses to a script or spreadsheet that splits on colons and expects eight parts. Working out which subnet an address is in. In a site that was given a /48, the fourth group of the full form is the subnet number.
What the expander does not do
ip6.arpa name for you. It gives the full form, and reversing the digits is a manual step.
/64 or /48 aside. It works on one address at a time and on IPv6 only.