Networks
How to check the format of an IPv4 address
Checking how an address is written can reveal simple errors before reviewing a configuration; it does not test the connection.
Before you start
Text is processed in the browser. Consider the content before using it and read the privacy policy.
PrivacyHow to use it
Enter 192.0.2.1 in the IPv4 validator and validate it.
Try 999.0.2.1 and compare the message.
Check each of the four numbers: they must be between 0 and 255.
Worked example
192.0.2.1 is a documentation example; 999.0.2.1 has a first octet greater than 255.
Result: 192.0.2.1 valid; 999.0.2.1 invalid.
Limits and checks
Use dotted decimal without leading zeroes in octets. This checks syntax only, not whether an address is assigned, reachable or configured.
Next step
To represent the same IPv4 address as an integer, see the converter.
How to convert a dotted IPv4 address to an integer and back