IPv6 Compressor
Compress a full IPv6 address to its shortest RFC 5952 form, or expand it back out.
| Compressed | 2001:db8::1 | |
| Expanded | 2001:0db8:0000:0000:0000:0000:0000:0001 |
Paste a full or partially written IPv6 address and this tool compresses it to the shortest valid form following RFC 5952 rules — lowercase hex, no leading zeros, and a single :: for the longest run of zero groups. It also shows the fully expanded form.
How to use
- Enter any valid IPv6 address, expanded or already compressed.
- View the RFC 5952-compliant compressed form.
- Copy either the compressed or fully expanded address.
Frequently asked questions
- What is RFC 5952?
- RFC 5952 defines the canonical text representation of IPv6 addresses, including lowercase hex and using :: only for the single longest run of zero groups.
- What if there are two equal-length runs of zero groups?
- The leftmost run is compressed with ::, per the RFC 5952 tie-breaking rule.
- Does this tool send my address anywhere?
- No, all parsing and compression happen locally in your browser.