Developer Tools
IPv6 Expander and Compressor
Expand any IPv6 address to its full 8-group form, compress to RFC 5952 short form, and view decimal, binary, hex, reverse DNS, prefix info, and type.
Accepts shortened (::), full 8-group, embedded IPv4 (::ffff:192.0.2.1), zone identifiers (%eth0), and CIDR prefixes (/64). Bracketed URL form like [2001:db8::1] is also accepted.
Quick samples
Address forms
Expanded (full 8 groups, padded)
2001:0db8:0000:0000:0000:ff00:0042:8329
Every group is exactly four hex digits, zeros included.
No leading zeros
2001:db8:0:0:0:ff00:42:8329
Leading zeros stripped inside each group, no :: compression.
Compressed (RFC 5952)
2001:db8::ff00:42:8329
Canonical short form: lowercase, leftmost longest zero run as ::
Hex (no colons)
20010db8000000000000ff0000428329
32 hex characters, useful for hashing or storage.
Reverse DNS (PTR)
9.2.3.8.2.4.0.0.0.0.f.f.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa
Nibble-reversed form for ip6.arpa PTR records.
Decimal (128 bit integer)
42540766411282592856904265327123268393
Computed with BigInt. Useful when storing addresses as a single numeric value or comparing ordering between two addresses.
Address type
- Documentation (2001:db8::/32, RFC 3849)
- Global unicast (2000::/3)
Binary (128 bits, 8 groups of 16)
0010000000000001 0000110110111000 0000000000000000 0000000000000000 0000000000000000 1111111100000000 0000000001000010 1000001100101001
Group boundaries match the colon-separated hex form above. Each group is 16 bits, most-significant first.
How to use
- Paste any IPv6 address into the input. Compressed (::), expanded (full 8 groups), embedded IPv4 (::ffff:192.0.2.1), bracketed ([2001:db8::1]), zone-tagged (fe80::1%eth0), and prefix-suffixed (2001:db8::/32) forms are all accepted.
- Read the Address forms card to see the expanded full form, the no-leading-zeros form, the RFC 5952 compressed form, the 32-character no-colon hex, the embedded IPv4 view when applicable, and the reverse-DNS (ip6.arpa) PTR name.
- Check the Address type panel for classification, including loopback, link-local, unique local, multicast (with scope), IPv4-mapped, 6to4, documentation, Teredo, or global unicast.
- Add a /prefix at the end of the address (for example 2001:db8::/32 or fd00::1/48) to see the network address and the total number of addresses inside the prefix.
- Use the Copy button on any field to grab the result, or click a Quick sample to load common patterns like loopback (::1), unspecified (::), or link-local (fe80::1ff:fe23:4567:890a%eth0).
About this tool
IPv6 Expander and Compressor turns any IPv6 address into every representation you might need for documentation, network configuration, debugging, or reverse DNS work. Paste an address in any common form: compressed with :: like 2001:db8::1, fully expanded like 2001:0db8:0000:0000:0000:0000:0000:0001, with an embedded IPv4 like ::ffff:192.0.2.1, with a zone identifier like fe80::1%eth0, with surrounding brackets like [2001:db8::1], or with a CIDR prefix like 2001:db8::/32. The tool validates the input strictly, points to the exact group that fails parsing when something is wrong, and then derives the full set of forms in parallel: the expanded eight groups with every group padded to four hex digits, the same address with leading zeros stripped, the canonical RFC 5952 compressed form (lowercase hex, leftmost longest zero run replaced with ::, single zero groups left alone), a 32-character no-colon hex string, the binary breakdown of all 128 bits in eight 16-bit groups, the decimal value computed with BigInt for use as a stable integer key, the reverse-DNS PTR name under ip6.arpa with one nibble per label, and an automatic IPv4-mapped view when the last 32 bits look like a dotted-decimal address. The address type panel classifies the prefix using RFC 4291 and related registries: loopback, unspecified, link-local (fe80::/10), unique local (fc00::/7), multicast (ff00::/8 with the resolved scope), IPv4-mapped (::ffff:0:0/96), 6to4 (2002::/16), documentation (2001:db8::/32), Teredo (2001::/32), and global unicast (2000::/3). When a CIDR prefix is provided the tool also clears host bits to show the network address in both compressed and expanded forms and reports the total address count inside the prefix as a 2^N value. Everything runs locally with bitwise math and BigInt, so no address you paste here is uploaded, logged, or stored. Useful for IPv6 PTR record creation, dual-stack documentation, firewall rule normalization, reading packet captures, verifying configuration files, and any time you need to convert between the compressed and full forms with confidence.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
IP Address Converter
Convert IPv4 between dotted-decimal, decimal, hex, binary, and octal with per-octet breakdown.
Open tool
DeveloperSubnet Calculator
IPv4 CIDR network, broadcast, host range, mask, and binary view.
Open tool
ConverterNumber Base Converter
Binary, octal, decimal, hex, and custom-base conversion with two's complement.
Open tool
DeveloperURL Parser
Break a URL into protocol, host, path, query params, and fragment with decoded values.
Open tool