IPv6 Expander / Compressor
Expand abbreviated IPv6 addresses to full form, or compress full addresses to shorthand notation. Detect address types and view binary representation.
About This Tool
The IPv6 Expander / Compressor is a free browser-based tool that converts IPv6 addresses between their expanded (full) and compressed (shorthand) forms. Enter any valid IPv6 address in either notation and instantly see both representations, along with the binary form, address type, scope, and whether the address is an IPv4-mapped IPv6 address.
IPv6 addresses consist of eight groups of four hexadecimal digits
separated by colons (e.g., 2001:0db8:0000:0000:0000:0000:0000:0001).
The compressed notation removes leading zeros within groups and replaces
the longest consecutive run of all-zero groups with ::
(e.g., 2001:db8::1). This tool handles both directions automatically.
The tool also provides a batch mode for converting multiple addresses
at once, and includes a reference panel of common IPv6 addresses such as
the loopback (::1), link-local (fe80::), multicast, unique local,
and well-known DNS server addresses.
If you work with IPv4 subnets, try the Subnet Calculator for CIDR and network calculations. For converting between number systems, the Number Base Converter can help with hex-to-binary and other base conversions. For DNS configuration, check out the DNS Record Generator.
All processing runs entirely in your browser. No IP addresses or network data are ever sent to any server. This tool is safe to use with production infrastructure addresses.
How to Use
- Enter an IPv6 address in the input field (compressed or expanded form).
- The tool auto-detects the format and displays both expanded and compressed forms instantly.
- Review the Binary Representation to see each group's 16-bit binary value.
- Check the Address Information section for the address type (Global Unicast, Link-Local, Multicast, etc.) and scope.
- Use the Copy button next to any field, or press Ctrl+Shift+C to copy all results at once.
- Switch to Batch Mode to convert multiple IPv6 addresses at once, one per line.
- Click the Reference button to see common IPv6 addresses and click any to use it as input.
Popular IPv6 Examples
FAQ
What is the difference between expanded and compressed IPv6?
Expanded IPv6 shows all eight groups with leading zeros (e.g., 2001:0db8:0000:0000:0000:0000:0000:0001). Compressed IPv6 removes leading zeros and replaces the longest consecutive run of all-zero groups with :: (e.g., 2001:db8::1). Both represent the same address.
What does :: mean in an IPv6 address?
The double colon (::) is a shorthand that represents one or more consecutive groups of all zeros. It can only appear once in an address. For example, ::1 expands to 0000:0000:0000:0000:0000:0000:0000:0001 (the loopback address).
What is an IPv4-mapped IPv6 address?
An IPv4-mapped IPv6 address has the format ::ffff:a.b.c.d, where a.b.c.d is an IPv4 address. It allows IPv6-only applications to communicate with IPv4 hosts. For example, ::ffff:192.168.1.1 maps the IPv4 address 192.168.1.1 into IPv6 format.
How many bits are in an IPv6 address?
An IPv6 address is 128 bits long, compared to 32 bits for IPv4. These 128 bits are divided into eight groups of 16 bits each, written as four hexadecimal digits per group.
What are the main IPv6 address types?
The main types are: Global Unicast (publicly routable, similar to public IPv4), Link-Local (fe80::/10, auto-assigned on each interface), Unique Local (fc00::/7, similar to private IPv4 ranges), Multicast (ff00::/8, one-to-many), Loopback (::1), and Unspecified (::).
Can I convert multiple IPv6 addresses at once?
Yes. Switch to Batch Mode by clicking the Batch button. Enter one IPv6 address per line and click Convert All. The tool will expand and compress all addresses and show the results with type identification for each one.
Is my data safe?
Yes. All processing runs entirely in your browser using JavaScript. No IP addresses, network information, or any other data is ever sent to any server. You can verify this by checking the Network tab in your browser's developer tools.
Related Tools
Subnet Calculator
Calculate IPv4 subnet details including network address, broadcast, host range, and CIDR notation.
CIDR Range Calculator
Calculate CIDR ranges, detect overlaps, check containment, and merge IP blocks. Shows network, broadcast, subnet mask, and host count.
IP Range to CIDR Converter
Convert start-to-end IP address ranges into minimal CIDR notation blocks. Reverse CIDR to IP range, batch mode, host count display.
Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal, and custom bases with bit visualization.
DNS Record Generator
Generate DNS zone records including A, AAAA, CNAME, MX, TXT, NS, and SRV records. Export as BIND zone file format.
IP Address Analyzer
Analyze IPv4 and IPv6 addresses to see class, type, binary representation, private/public status, and IANA reserved range information.