Network · Developer
IPv6 address validator.
Paste an IPv6 address to check its format, compress it to the shortest standard form, expand it to all 32 hex digits, and see what kind of address it is.
Inputs
Result
Enter an address, then press Check address.
How it's calculated
An IPv6 address is 128 bits, written as eight groups of one to four hex digits separated by colons (RFC 4291 section 2.2). One run of zero groups may be replaced by :: (used once, standing for one or more groups), and the last 32 bits may be written as a dotted IPv4 address, as in ::ffff:192.0.2.128.
Compress follows RFC 5952 section 4: drop leading zeros in each group, use lowercase, replace the longest run of zero groups with ::, choose the first run if two are the same length, and never use :: for a single zero group. Expand pads every group to four digits.
Type is matched against the IANA IPv6 address space registry and the IPv6 special-purpose address registry (RFC 6890): ::1 loopback, ::/128 unspecified, ::ffff:0:0/96 IPv4-mapped, fe80::/10 link-local, fc00::/7 unique local, ff00::/8 multicast, 2001:db8::/32 and 3fff::/20 documentation, and 2000::/3 global unicast. Registry read 2026-09-30 (IANA address space last updated 2025-10-23). Need IPv4 ranges? Use the IP range to CIDR converter.
Worked example
Enter 2001:0db8:0000:0000:0001:0000:0000:0001. The compressed form is 2001:db8::1:0:0:1: leading zeros are dropped from each group, and the first of the two equal runs of zero groups becomes ::. The expanded form is the input above, padded to four digits per group. The type is documentation, because the address sits inside 2001:db8::/32 (RFC 3849). A second case: fe80:0:0:0:0:0:0:1 compresses to fe80::1 and is link-local (fe80::/10).
Common mix-ups
-
Often assumedI can use :: in several places in one address to shorten each run of zeros.
What the source saysRFC 4291 says the :: symbol indicates one or more groups of 16 bits of zeros and that it can only appear once in an address. An address with two :: is not valid text, and the validator rejects it. [1]
-
Often assumedThe :: shorthand can replace any zero group, even a single 0.
What the source saysRFC 5952 recommends that :: must not be used to shorten just one 16-bit zero field. Its example is that 2001:db8:0:1:1:1:1:1 is correct and 2001:db8::1:1:1:1:1 is not, although both forms parse to the same address. [2]
- RFC 4291: IP Version 6 Addressing Architecture, section 2.2
- RFC 5952: A Recommendation for IPv6 Address Text Representation, section 4.2.2
Checked against these sources on .
Frequently asked questions
Why did my address change when I pressed Check?
The canonical form is the one standard way to write an address, so two people always get the same text for the same address. 2001:0db8:0000:0000:0001:0000:0000:0001 becomes 2001:db8::1:0:0:1: the first of two equal zero runs is the one that gets shortened.
Why is 2001:db8:0:1:1:1:1:1 not shortened?
RFC 5952 says :: must not replace just one zero group, so the address stays as written.
Does it accept zone IDs, ports or prefix lengths?
No. Forms like fe80::1%eth0, [::1]:80 and 2001:db8::/32 are not a bare address, so the tool asks you to remove the extra part rather than guess.
Sources
Last checked
- RFC 4291 section 2.2 (text forms of IPv6 addresses)
- RFC 5952 section 4 (canonical text representation)
- RFC 3849 (2001:db8::/32 documentation prefix)
- IANA IPv6 Special-Purpose Address Registry and IANA IPv6 Address Space (registry dates are given in the section above)
Standards cited as published; the arithmetic and defaults are this tool’s own. Runs entirely in your browser. Nothing you type is sent or stored.
Format check only
A valid result means the text is a well-formed IPv6 address. It does not show the address is assigned, routed or reachable. Everything runs in your browser and nothing is sent anywhere.