IP Address Validator
Validate IPv4 and IPv6 addresses.
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
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?
Why is 192.168.1.256 invalid?
Does it support IPv6?
Does it tell me if the IP is private?
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 YouTubeTypeScript 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.