HomeValidatorsDataIP Address Validator

IP Address Validator

Data

Check if an IPv4 or IPv6 address is correctly formatted. Auto-detects the version or choose manually — instant result, runs in your browser, no signup.

What is a IP Address?

An IP Address Validator checks whether a string is a correctly formatted IP (Internet Protocol) address. IP addresses are numerical identifiers assigned to every device on a network. There are two versions in active use: IPv4, the familiar four-octet format (192.168.1.1) that has been in use since the early internet, and IPv6, the 128-bit hexadecimal format (2001:db8::1) introduced to address IPv4 exhaustion.

This tool validates both versions. It auto-detects which version to apply based on the input — a colon in the address implies IPv6, otherwise IPv4 rules are applied. You can also force a specific version using the selector, which is useful when you want to confirm that a string is explicitly not a valid IPv4 address.

For IPv4, the tool checks that there are exactly four octets, each is a number from 0 to 255, and no leading zeros are present (which would be ambiguous in some parsing contexts). For IPv6, it validates both full 8-group notation and compressed notation using ::. It also identifies the address range for IPv4 — private, loopback, public, or multicast.

All validation runs in your browser. No address you enter is transmitted. See the URL Validator and Domain Name Validator for related network address checks.

How to use this IP Address calculator

  1. Open the IP Address Validator on this page.
  2. Type or paste the IP address into the IP Address field.
  3. Leave Version set to Auto-detect, or select IPv4 or IPv6 explicitly if you want to enforce a specific version.
  4. The result badge updates instantly. A green Valid badge confirms the address is correctly formatted.
  5. If the badge shows Invalid, read the error detail — it identifies the specific problem (wrong octet count, out-of-range value, leading zero, invalid IPv6 group).
  6. Fix the address and the badge updates immediately.

Formula & Methodology

IPv4: split on ., check exactly 4 parts, each part is a non-negative integer 0–255 with no leading zeros.

IPv6: split on :: (at most one occurrence allowed). Each half is split on :, each group validated as 1–4 hexadecimal digits. With ::, the total groups on both sides must be ≤ 7 (the :: expands to fill the remaining groups).

Valid IPv4 example: 192.168.1.1 — 4 octets, each in range. Range: private (192.168.x.x).

Invalid IPv4 example: 192.168.1.256 — octet 256 exceeds the maximum value of 255.

Valid IPv6 example: 2001:db8::1 — compressed notation with :: replacing six zero groups.

Invalid IPv6 example: 2001::db8::1 — two :: sequences in one address, which is not permitted.
Frequently Asked Questions
What is an IP Address Validator?
An IP Address Validator checks whether a string is a correctly formatted IPv4 or IPv6 address. IPv4 addresses are the familiar four-octet format like `192.168.1.1`, while IPv6 addresses are 128-bit hexadecimal identifiers like `2001:db8::1`. This tool auto-detects the version from the input, or you can select IPv4 or IPv6 explicitly. It also classifies the address range (private, loopback, public, or multicast for IPv4).
What is the format of a valid IPv4 address?
An IPv4 address consists of exactly four octets separated by dots. Each octet must be an integer from 0 to 255, with no leading zeros. For example, `192.168.1.1` is valid, `192.168.01.1` is not (leading zero in the third octet), and `192.168.1.256` is not (256 is out of range). An IPv4 address has exactly four dot-separated parts — no more, no fewer.
What is the format of a valid IPv6 address?
An IPv6 address consists of eight groups of four hexadecimal digits separated by colons: `2001:0db8:0000:0000:0000:0000:0000:0001`. Leading zeros in any group can be omitted, and one consecutive sequence of all-zero groups can be replaced with `::` for compression. So `2001:db8::1` is a valid compressed form. The special address `::1` is the IPv6 loopback equivalent of `127.0.0.1`.
How does auto-detect work?
If the input contains a colon, the tool assumes IPv6 and applies IPv6 validation rules. If it contains only digits and dots, it applies IPv4 rules. If you want to force a specific version — for example, to confirm a string that looks like IPv4 is rejected as IPv6 — use the version selector.
What is a private IP address?
Private IP addresses are ranges reserved for use within local networks (LANs) and are not routable on the public internet. The private IPv4 ranges are: `10.0.0.0/8` (10.x.x.x), `172.16.0.0/12` (172.16.x.x to 172.31.x.x), and `192.168.0.0/16` (192.168.x.x). Routers use NAT to allow devices with private addresses to communicate with the public internet. The validator identifies these ranges in the result.
What is the loopback address?
The loopback address refers to the local machine itself. In IPv4, `127.0.0.1` is the loopback address (the entire `127.0.0.0/8` range is reserved for loopback). In IPv6, `::1` is the loopback address. A connection to the loopback address goes to the local machine's network stack without leaving the device.
Does this tool check if the IP address is reachable?
No. This tool checks format only — it confirms the string is a correctly structured IP address. Checking whether the IP address is actually reachable requires a network ping or traceroute, which cannot be done from a static browser-based tool without server-side assistance. Use a system tool like `ping` or `traceroute` to test reachability.
Is my IP address stored when I use this tool?
No. The validation runs entirely in your browser using JavaScript. The IP address you enter is not transmitted to any server. This tool does not log or store any input.
What are multicast addresses?
Multicast IPv4 addresses (224.0.0.0 to 239.255.255.255, the `224.0.0.0/4` block) are used to send packets to a group of hosts simultaneously. They are not assigned to individual interfaces the way unicast addresses are. Multicast is used for protocols like IGMP, routing protocols, and streaming video to multiple recipients at once.
Can I validate an IPv6 address with embedded IPv4?
IPv6-mapped IPv4 addresses (like `::ffff:192.168.1.1`) and IPv4-compatible IPv6 addresses are edge cases not explicitly handled in v1. Enter the pure IPv6 or IPv4 form for a reliable result. Mixed-notation IPv6 validation may show a false negative for these forms.