IPv6 Address Expander
Restore omitted hexadecimal groups.
IPv6 Address Expander: inputs and results
Enter an IP address, CIDR prefix, or range. Then check its first and last address below.
Calculated Boundaries & ParametersReady
Key Capabilities
- •100% Client-Side: Zero telemetry or server latency.
- •RFC Compliant: Exact 32-bit and 128-bit integer precision.
- •Quick Copy: Instant access to CIDR, mask, and range bounds.
- •Cross-Platform: Works on desktop, tablet, and mobile browsers.
Related IPv6 ToolsAll Tools
IPv6 Range Calculator
Find IPv6 prefix boundaries.
IPv6 Subnet Calculator
Calculate prefix details and address counts.
IPv6 /127 Link Planner
Divide a parent prefix into address pairs.
IPv6 /128 Address Calculator
Calculate single-address IPv6 prefix details.
IP Address Validator
Check IPv4 or IPv6 address syntax.
IPv6 Binary Converter
Display address bits.
How IPv6 Address Expander Works?
The IPv6 Address Expander works by replacing the :: with the missing zero groups and padding every group to 4 hex digits, producing the full 39-character form.
Enter a compressed address
Type an address such as
fe80::1ff:fe23:4567:890a.Count the visible groups
The address shows 5 groups, so
::stands for 8 − 5 = 3 zero groups.Insert the zero groups
The expander writes 3 groups of
0000in place of::.Pad each group
Short groups gain leading zeros:
1ff→01ff.
IPv6 Address Expander Formula
The IPv6 Address Expander formula is Missing Groups = 8 − Visible Groups, followed by left-padding every group to 4 digits.
Missing groups
m = 8 − visible groupsInserted at the "::" position.
Group padding
pad(group, 4, "0")Restores omitted leading zeros.
Full length
8 × 4 + 7 = 39 characters32 hex digits and 7 colons.
Worked example: fe80::1ff:fe23:4567:890a
Visible groups = fe80, 1ff, fe23, 4567, 890a → 5 Missing groups = 8 − 5 = 3 Expanded = fe80:0000:0000:0000:01ff:fe23:4567:890a
IPv6 Address Expander Conversion Table
The IPv6 Address Expander conversion table expands 10 compressed IPv6 addresses and shows how many zero groups each :: replaced.
| Compressed | Zero Groups Restored | Expanded Form |
|---|---|---|
| :: | 8 | 0000:0000:0000:0000:0000:0000:0000:0000 |
| ::1 | 7 | 0000:0000:0000:0000:0000:0000:0000:0001 |
| fe80::1ff:fe23:4567:890a | 3 | fe80:0000:0000:0000:01ff:fe23:4567:890a |
| 2001:db8:: | 6 | 2001:0db8:0000:0000:0000:0000:0000:0000 |
| 2001:db8::8a2e:370:7334 | 3 | 2001:0db8:0000:0000:0000:8a2e:0370:7334 |
| ff02::1:ff00:1 | 4 | ff02:0000:0000:0000:0000:0001:ff00:0001 |
| 2001:db8:0:1:: | 4 | 2001:0db8:0000:0001:0000:0000:0000:0000 |
| fd12:3456:789a:1::1 | 3 | fd12:3456:789a:0001:0000:0000:0000:0001 |
| 2001:db8:a::123 | 4 | 2001:0db8:000a:0000:0000:0000:0000:0123 |
| 64:ff9b::c000:201 | 4 | 0064:ff9b:0000:0000:0000:0000:c000:0201 |
What is IPv6 Address Expander?
The IPv6 Address Expander is a tool that rewrites a compressed IPv6 address into its full form with all 8 groups and all 32 hexadecimal digits.
RFC 4291 allows 2 shortcuts: leading zeros in a group may be dropped, and 1 run of zero groups may become ::. The shortcuts make addresses easier to type but harder to compare. 2001:db8::1 and 2001:0db8:0000:0000:0000:0000:0000:0001 are the same address.
The full form is fixed-width, which makes it the safest form for sorting, string comparison, and reverse DNS generation.
What are the uses of IPv6 Address Expander?
There are 4 main uses of the IPv6 Address Expander, including string comparison, reverse DNS, and log matching.
Comparing addresses as strings
Expanded addresses compare correctly with plain text tools such as
grepandsort.Building reverse DNS names
ip6.arpa names need all 32 hex digits, which come from the expanded form.
Matching log formats
Some systems log the full form. Expanding a compressed address matches those records.
Teaching IPv6 notation
Students see exactly which zeros the shorthand removed.