IPv6 Address Expander
Expand and compress IPv6 addresses (RFC 5952) — validate and normalize entirely in your browser
About this tool
IPv6 Expander validates an IPv6 address and shows both its fully expanded eight-group representation and the canonical compressed spelling. It restores leading zeroes and replaces the correct run of zero groups with :: according to RFC 5952.
The tool also handles IPv4-mapped IPv6 addresses such as ::ffff:192.0.2.1. It normalizes one address at a time rather than calculating a subnet boundary, and all processing happens locally in the browser.
How to use this tool
Enter an IPv6 address
Paste a compressed, fully written, or IPv4-mapped IPv6 address without a CIDR suffix.
Validate the input
Run the expander to catch invalid groups, misplaced colons, non-hex characters or an incorrect number of groups.
Compare representations
Read the eight four-digit groups alongside the RFC 5952 compressed form.
Copy the needed form
Copy the expanded value for diagnostics or the canonical compressed value for configuration and comparison.
Use cases
Normalizing configuration values
Convert equivalent IPv6 spellings to one canonical form before storing firewall, DNS or allow-list entries.
Debugging network logs
Expand a shortened address to inspect each 16-bit group and compare it with packet captures or documentation.
Checking IPv4-mapped addresses
Verify the hexadecimal representation of an IPv4 address embedded inside an IPv6 endpoint.
Common mistakes
Mistake:Treating an expanded address as a different endpoint.
Fix:Expanded and compressed forms represent the same 128-bit address; compare normalized groups rather than punctuation.
Mistake:Using :: more than once.
Fix:The double-colon shorthand can replace only one contiguous run of zero groups; use single colons for all other separators.
Mistake:Expecting CIDR input to produce a network address.
Fix:Enter an address without /prefix. Use a subnet calculator when you need host-bit masking or network ranges.
Frequently asked questions
What does expanding an IPv6 address do?
It writes the address in full: eight groups of four hex digits with all leading zeros restored and any :: shorthand filled in. For example, 2001:db8::1 expands to 2001:0db8:0000:0000:0000:0000:0000:0001.
What is the compressed (canonical) form?
The RFC 5952 canonical form: lowercase hex, leading zeros omitted, and the longest run of zero groups collapsed to :: (the first run if two tie). It's the single 'correct' spelling used for storage and comparison.
Does it handle IPv4-mapped addresses?
Yes. An embedded IPv4 suffix like ::ffff:192.168.0.1 is converted to its hex group form and then expanded and compressed like any other address.
Can I paste a CIDR prefix?
No — enter an address only. A prefix like /64 is rejected with a message, since this tool normalizes a single address rather than a subnet.
Related guides
Related tools
API Mock Server
Define mock REST routes and intercept fetch calls client-side
Bandwidth Calculator
Estimate how long a file takes to transfer at a given connection speed — correctly handling bits vs bytes (Mbps vs MB/s) and SI vs binary size units
Broken Link Checker
Extract http(s) links from pasted HTML and check them via proxy
cURL to Code Converter
Convert cURL commands to code snippets in multiple languages. Parse cURL and generate JavaScript, Python, PHP, and more.
DNS Lookup Tool
Query DNS records and resolve domain names to IP addresses
DNS Propagation Checker
Compare DNS answers from global public resolvers and see propagation consensus instantly