Tools / IP address
IP Address Validator
Check whether a string is a valid IPv4 or IPv6 address, and see what kind of address it is.
What counts as valid
An IPv4 address is four decimal numbers from 0 to 255 separated by dots, with no leading zeros: 198.51.100.7. An IPv6 address is up to eight groups of one to four hexadecimal digits separated by colons; one run of zero groups may be shortened to ::, and the last 32 bits may be written in IPv4 style, as in ::ffff:192.0.2.1.
The validator is strict on purpose. It rejects ports (192.0.2.1:80), brackets ([2001:db8::1]), zone identifiers (fe80::1%eth0) and CIDR suffixes (10.0.0.0/8), and explains which of these it found.
Address kinds
| Kind | IPv4 | IPv6 |
|---|---|---|
| Private | 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 | fc00::/7 |
| Loopback | 127.0.0.0/8 | ::1 |
| Link-local | 169.254.0.0/16 | fe80::/10 |
| Carrier-grade NAT | 100.64.0.0/10 | - |
| Documentation | 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 | 2001:db8::/32, 3fff::/20 |
| Multicast | 224.0.0.0/4 | ff00::/8 |
Questions and answers
Is 192.168.1.1 a valid IP address?
Yes. It is a syntactically valid IPv4 address in a private range (RFC 1918). It works inside a local network but is never reachable from the internet.
Why are leading zeros rejected?
Notations like 010.1.1.1 are ambiguous: some software reads 010 as decimal 10, other software as octal 8. That ambiguity has caused real security bugs, so strict parsers refuse it.
What is the canonical form of an IPv6 address?
RFC 5952 defines it: lowercase hexadecimal, no leading zeros in a group, and the longest run of all-zero groups replaced by ::. The tool shows both the canonical form and the fully expanded form.