Last updated
IP Address Validator Examples
The IP Address Validator checks whether IPv4 and IPv6 addresses are correctly formatted, validates check digits, classifies address types, and supports CIDR notation. Below are examples covering valid addresses, common errors, and address classification.
Valid IPv4 Addresses
192.168.1.1 ✓ Valid — Private network address (Class C)
10.0.0.1 ✓ Valid — Private network address (Class A)
172.16.0.1 ✓ Valid — Private network address (Class B)
8.8.8.8 ✓ Valid — Public address (Google DNS)
255.255.255.255 ✓ Valid — Limited broadcast address
0.0.0.0 ✓ Valid — Unspecified address
127.0.0.1 ✓ Valid — Loopback address
Invalid IPv4 Addresses
256.1.1.1 ✗ Invalid — Octet 256 exceeds maximum value of 255
192.168.1 ✗ Invalid — Only 3 octets; IPv4 requires exactly 4
192.168.1.1.1 ✗ Invalid — 5 octets; IPv4 requires exactly 4
192.168.01.1 ✗ Invalid — Leading zero in octet (010 ≠ 10 in strict mode)
192.168.1.-1 ✗ Invalid — Negative octet value
192.168.1.abc ✗ Invalid — Non-numeric characters in octet
192.168.1. ✗ Invalid — Trailing dot with empty octet
IPv4 Address Classification
10.0.0.1
Class: A
Type: Private
Range: 10.0.0.0/8
Use: Internal networks (large enterprises)
172.20.5.10
Class: B
Type: Private
Range: 172.16.0.0/12
Use: Internal networks (medium enterprises)
192.168.100.50
Class: C
Type: Private
Range: 192.168.0.0/16
Use: Internal networks (home/small office)
127.0.0.1
Type: Loopback
Range: 127.0.0.0/8
Use: Refers to the local machine (localhost)
169.254.10.5
Type: Link-Local (APIPA)
Range: 169.254.0.0/16
Use: Auto-configured when DHCP is unavailable
224.0.0.1
Type: Multicast
Range: 224.0.0.0/4
Use: Group communication (all hosts on subnet)
255.255.255.255
Type: Limited Broadcast
Use: Broadcast to all hosts on local network
Valid IPv6 Addresses
2001:0db8:85a3:0000:0000:8a2e:0370:7334 ✓ Full notation
2001:db8:85a3::8a2e:370:7334 ✓ Compressed (:: replaces consecutive zeros)
::1 ✓ Loopback address
:: ✓ Unspecified address
fe80::1 ✓ Link-local address
ff02::1 ✓ Multicast (all nodes)
::ffff:192.0.2.1 ✓ IPv4-mapped IPv6 address
Invalid IPv6 Addresses
2001:db8::85a3::1 ✗ Invalid — :: can only appear once
2001:db8:85a3:0:0:8a2e:0370:7334:1 ✗ Invalid — 9 groups; max is 8
gggg::1 ✗ Invalid — 'g' is not a valid hex digit
2001:db8:85a3 ✗ Invalid — Too few groups without ::
IPv6 Address Classification
::1
Type: Loopback
Scope: Host
Use: Equivalent to 127.0.0.1 in IPv4
fe80::1%eth0
Type: Link-Local Unicast
Prefix: fe80::/10
Scope: Link (not routable beyond local network)
2001:db8::1
Type: Documentation / Example
Prefix: 2001:db8::/32
Use: Reserved for use in documentation and examples
2001:0:4136:e378::1
Type: Global Unicast
Scope: Global (routable on the internet)
ff02::1
Type: Multicast
Prefix: ff00::/8
Scope: Link-local multicast (all nodes)
CIDR Notation Validation
192.168.1.0/24 ✓ Valid CIDR — prefix length 0-32 for IPv4
10.0.0.0/8 ✓ Valid CIDR — Class A private range
172.16.0.0/12 ✓ Valid CIDR — Class B private range
192.168.0.0/16 ✓ Valid CIDR — Class C private range
192.168.1.0/33 ✗ Invalid — prefix length 33 exceeds IPv4 maximum of 32
192.168.1.1/24 ✗ Warning — host bits set; network address should be 192.168.1.0/24
2001:db8::/32 ✓ Valid IPv6 CIDR
fe80::/10 ✓ Valid IPv6 CIDR — link-local range
::/0 ✓ Valid IPv6 CIDR — default route (all addresses)
2001:db8::/129 ✗ Invalid — prefix length 129 exceeds IPv6 maximum of 128
Network Information from CIDR
Input: 192.168.10.0/24
Network Address: 192.168.10.0
Broadcast Address: 192.168.10.255
First Usable Host: 192.168.10.1
Last Usable Host: 192.168.10.254
Total Hosts: 256
Usable Hosts: 254
Subnet Mask: 255.255.255.0
Wildcard Mask: 0.0.0.255
Batch Validation Example
Input list:
192.168.1.1
10.0.0.256
::1
not-an-ip
172.16.5.10/24
Results:
192.168.1.1 ✓ Valid IPv4 — Private (Class A)
10.0.0.256 ✗ Invalid — Octet value 256 out of range
::1 ✓ Valid IPv6 — Loopback
not-an-ip ✗ Invalid — Not a valid IP address format
172.16.5.10/24 ✓ Valid IPv4 CIDR — Private (Class B)
Use the IP Address Validator to verify addresses in form inputs, firewall rules, configuration files, and data imports before they reach your network infrastructure or database.