Expand an IPv6 address to all eight groups, or compress it back correctly.
Either form. Compressed addresses use :: for a run of zero groups.
2001:db8::1
The two forms are the same address. Compression follows RFC 5952: "::" replaces the longest run of zero groups, appears at most once, and is not used for a single zero group — that last rule exists because shortening one group saves nothing and makes the address harder to read back correctly. Leading zeros inside a group are always dropped.
What this cannot tell you
Take this with you
IPv6 Expand / Compress on RunTheTests — free browser-based netmath tools, no sign-up.