What does a valid IPv4 address look like?

An IPv4 address is four numbers from 0 to 255 separated by dots, such as 192.168.1.1, the address many home routers use. Each number is one byte, so the whole address is 32 bits.

Tool description

Type or paste an address and the IPv4 validator tells you at once whether it's valid. Spaces or a line break around a pasted address are ignored. The check follows the strict dotted decimal form, so it rejects:

  • numbers above 255, as in 256.1.1.1
  • fewer or more than four parts, as in 192.168.1
  • leading zeros, as in 192.168.01.1, because some programs read them as octal numbers
  • a port or a network prefix, as in 192.168.1.1:80 or 10.0.0.0/8
  • shorthand and hex forms such as 127.1 or 0x7f.0.0.1, which some programs accept

The tool checks IPv4 only. For IPv6 addresses, or to see an address's type and range, use the IP Address Parser.

Features

  • Accepts exactly four decimal numbers from 0 to 255
  • Rejects leading zeros, shorthand and hex forms that loose parsers let through
  • Ignores spaces and line breaks around a pasted address