01What is IPv6 Expander?
IPv6 addresses have many valid spellings. 2001:db8::1 and 2001:0DB8:0000:0000:0000:0000:0000:0001 are the same address, but a string compare in a log search or firewall diff says they differ. This tool shows the fully expanded form and the canonical short form side by side, so you can normalize before you compare. Input is checked against the RFC 4291 text forms first. You can use eight groups of one to four hex digits, at most one ::, an optional dotted IPv4 tail like ::ffff:192.0.2.1, an optional zone ID like %eth0 and an optional /prefix from 0 to 128. Anything else gets a clear error, not a guessed result. Expansion fills the :: with zero groups and pads every group to four hex digits. Compression follows RFC 5952. It lowercases, drops leading zeros and replaces the longest run of two or more zero groups with ::. When two runs tie, the first one wins, and a lone zero group is never compressed. IPv4-mapped addresses come back with their dotted tail, as RFC 5952 recommends. A zone ID is kept on both forms. With a prefix, the tool masks the address bit by bit and shows two extra boxes: the network prefix and the interface or host bits. That works even when the prefix splits a hex digit. Take 2001:db8:abcd:12ff::34/56. The network is 2001:db8:abcd:1200::/56, and the host part is ::ff:0:0:0:34, with 72 host bits left. The Type box uses the IANA IPv6 special-purpose registry. It recognises unspecified, loopback, IPv4-mapped, NAT64 64:ff9b::/96, Teredo, 6to4, documentation (2001:db8::/32 and 3fff::/20), unique local fc00::/7, link-local fe80::/10, multicast and global unicast 2000::/3. Scope comes from the address type, or from the scope field for multicast, so ff02::1 reads as link-local multicast. You also get the 32-character hex string with no colons, handy for databases that store addresses as raw bytes, and all 128 bits in binary grouped by sixteen. Some limits. It handles one address at a time, not a list. It does not compute a range end, a subnet count or a reverse DNS name. The IP Address Validator gives you the ip6.arpa name. The Copy button copies the expanded form, compressed form and type, not the binary or the prefix split. Everything is computed by the page itself as you type, with no request made for your address.
Network engineers and backend developers who need one canonical spelling of an IPv6 address, or a clean prefix and host split, before it goes into a rule, a database or a log query. The tool runs entirely in your browser, so your data never leaves your device.
02How to use IPv6 Expander
- Type or paste an IPv6 address into the input, optionally with a /prefix, or pick one of the examples
- Read the Expanded and Compressed boxes
- Check Type, Scope and Full Hex (no colons)
- If you gave a prefix, read Network Prefix and Interface / Host Bits, then the Binary (128 bits) view
- Click Copy to grab the expanded, compressed and type lines, or Reset to start over
03Worked examples
- Input:
2001:db8::1 - Result:
Expanded 2001:0db8:0000:0000:0000:0000:0000:0001; type Documentation (2001:db8::/32); scope Global - Input:
2001:db8:0:0:1:0:0:1 - Result:
Compressed 2001:db8::1:0:0:1 - Two runs of two zero groups tie, so only the first becomes ::.
- Input:
fe80::1%eth0 - Result:
Expanded fe80:0000:0000:0000:0000:0000:0000:0001%eth0; type Link-local unicast (fe80::/10); scope Link - The zone ID after % is kept on both the expanded and compressed forms.
- Input:
::ffff:c000:201 - Result:
Compressed ::ffff:192.0.2.1; type IPv4-mapped (::ffff:0:0/96) - The last two groups are shown as a dotted IPv4 tail (c000 = 192.0, 0201 = 2.1).
- Input:
2001:db8:abcd:12ff::34/56 - Result:
Network 2001:db8:abcd:1200::/56; host ::ff:0:0:0:34 (72 host bits) - The /56 cut falls inside the fourth group, so 12ff splits into 12 and ff.
- Input:
2001:db8::1::2 - Result:
Error: Invalid IPv6 address: '::' may appear only once
04Common use cases
- Normalizing addresses from two log sources to the RFC 5952 form before you diff or join them
- Expanding an address to its 32 hex digits before storing it in a BINARY(16) or fixed-width column
- Splitting 2001:db8:abcd:12ff::34/56 to see which bits belong to the delegated prefix
- Checking that an fd-prefixed address is unique local and not accidentally global unicast
- Converting ::ffff:c000:201 seen in a socket log back to its readable form ::ffff:192.0.2.1
- Teaching :: compression and the tie-break rule in a networking class
05Tips
- :: can appear only once. With two, there is no way to know how many zero groups each one stands for.
- RFC 5952 never compresses a single zero group, so 2001:db8:0:1:1:1:1:1 keeps its :0: in the short form.
- Most LANs use /64 because SLAAC needs a full 64-bit interface identifier.
- Prefixes that are not a multiple of 4, like /57, split a hex digit. Use the binary view to see exactly where the cut falls.
- Strip the zone ID before storing addresses from several hosts. %eth0 on one machine means nothing on another.
06Related concepts
IPv6, RFC 5952, CIDR notation, Link-local address, Unique local address.
Frequently Asked Questions
What is IPv6 Expander?
IPv6 Expander is a free, browser-based developer tool on AIDToolStack. Expand and compress IPv6 addresses It requires no installation or sign-up and works entirely in your browser.
Is IPv6 Expander free to use?
Yes. No sign-up, no fees and no usage cap.
Does IPv6 Expander store my data?
No. It runs in your browser; nothing is uploaded.