IP Address Validator

Validate IPv4 and IPv6 addresses.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste an IP address and see whether it is valid and whether it is version 4 or 6. IPv4 must be four numbers from 0 to 255 separated by dots. IPv6 is validated using the browser's own URL parser.

How to use

1
Step 1
Paste the address.
2
Step 2
Press Run.
3
Step 3
Read the valid flag and version.

How it works

An IPv4 address is checked against a pattern that allows four octets of 0-255. If that fails, the string is tried as an IPv6 address inside a URL. The result is JSON with valid (true or false) and version (4, 6 or null).

Worked example

An out-of-range octet

Input
192.168.1.256
Output
{ "valid": false, "version": null }
Walkthrough
256 is above 255, so it fails. 2001:db8::1 gives valid true, version 6, and 10.0.0.1 gives valid true, version 4.

Limitations

  • It checks the format only, not whether the address is reachable or in use.
  • It does not classify private, loopback or reserved ranges.
  • CIDR notation (192.168.0.0/24) is not an address; use the CIDR calculator.

Questions

How do I check if an IP address is valid?
Paste it and press Run. The result says valid or not and the IP version.
Why is 192.168.1.256 invalid?
Each IPv4 octet must be between 0 and 255.
Does it support IPv6?
Yes, including shortened forms such as 2001:db8::1.
Does it tell me if the IP is private?
No, it checks format only.

Features

  • IPv4 and IPv6
  • Version detection
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Inspect Network Activity - Chrome DevTools 101

    Chrome for Developers

    Debugging payloads you paste into JSON and JWT tools.

    Watch on YouTube
  • TypeScript in 100 Seconds

    Fireship

    Typed JS snippets often get formatted or hashed nearby.

    Watch on YouTube
  • MDN Web Docs

    MDN

    Primary reference for web APIs these developer tools touch.

  • web.dev

    Google

    Modern web guidance that pairs with encoding and tooling pages.