IPv6 Address Expander

Expand IPv6 addresses to all eight groups, with the reverse DNS name, binary and hex.

Prefixes (/64), zones (%eth0) and [brackets]:ports are kept. One per line for many; results update as you type.

Result

2001:db8::8:800:200c:417a →

2001:0db8:0000:0000:0008:0800:200c:417a

Expanded2001:0db8:0000:0000:0008:0800:200c:417a
Compressed (canonical)2001:db8::8:800:200c:417a
Reverse DNS name (PTR)a.7.1.4.c.0.0.2.0.0.8.0.8.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
32 hex digits20010db80000000000080800200c417a
Binary0010000000000001:0000110110111000:0000000000000000:0000000000000000:0000000000001000:0000100000000000:0010000000001100:0100000101111010

How to Expand an IPv6 Address

Expanding an IPv6 address restores every zero: 2001:db8::1 becomes 2001:0db8:0000:0000:0000:0000:0000:0001. The full form is needed for reverse DNS names, some firewalls and databases.

Pad each group to four digits and replace :: with as many 0000 groups as needed to reach eight. In 2001:db8::1 there are three groups written, so :: stands for five: 2001, 0db8, five times 0000, then 0001.

The Reverse DNS (ip6.arpa) Name

Reverse DNS for IPv6 uses all 32 hex digits, reversed and dot-separated, under ip6.arpa.

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; the PTR record holding the host name goes there. Add a prefix such as /48 and the expander also gives the reverse zone to create or delegate for that network (only for prefixes on 4-bit boundaries, since each digit is one level). To check what a PTR record returns, use the reverse DNS lookup.

When You Need the Full Form

PTR records, some ACL syntaxes, fixed-width database columns and log normalisation.

  • Reverse DNS: zone files and PTR names use every digit.
  • Databases: fixed-width text or the 32-digit hex form (shown in the result) sorts and compares correctly; for BINARY(16), use the hex value.
  • Logs and spreadsheets: expanded addresses sort correctly as text, and the same address always looks the same.
  • Learning and subnetting: the binary view shows exactly where a /64 or /48 prefix ends.

How This Tool Works

ItemDetail
Where it runsIn your browser; nothing is sent to our server.
Input checksEvery IPv6 text form (RFC 4291), including dotted IPv4 tails, zones, prefixes and [brackets]:ports. Invalid input gets the reason.
OutputRFC 5952 canonical form for the short version; eight groups of four digits for the full one.
Many at onceOne address per line, up to 1,000.
Shareable link?q= followed by an address opens the page with it converted.
StoredNothing.
Last verified10 November 2026

Frequently Asked Questions

How do you expand an IPv6 address?
Add leading zeros so every group has four digits, and replace "::" with as many 0000 groups as needed to reach eight: 2001:db8::1 becomes 2001:0db8:0000:0000:0000:0000:0000:0001.
How many groups are in a full IPv6 address?
Eight groups of four hex digits: 32 digits, 128 bits.
What is the ip6.arpa name of an IPv6 address?
Its 32 hex digits in reverse order, separated by dots, followed by .ip6.arpa. It's the name a PTR record is created under for reverse DNS.

Next steps

Related Tools

IPv6 Compressor
Shorten any IPv6 address to its RFC 5952 form.
IPv6 Subnet Calculator
Prefixes, ranges and address counts for any IPv6 network.
IPv6 to IPv4 Converter
Find the IPv4 address inside an IPv6 address.
Reverse DNS Lookup
The PTR name of an IP.