IPv4 Subnet Calculator

Network address, broadcast, host range, wildcard mask and binary breakdown for any IPv4 CIDR block.

Accepts 10.0.0.5/26, 10.0.0.5 255.255.255.192, or a bare IP.

Results for 198.51.112.0/20

198.51.112.0/20 is the network in CIDR notation · Public
Network address
198.51.112.0
Broadcast address
198.51.127.255
Subnet mask
255.255.240.0
Wildcard mask
0.0.15.255
Total addresses
4,096
Usable hosts
4,094 (excludes network & broadcast)
First usable host
198.51.112.1
Last usable host
198.51.127.254
CIDR notation
198.51.112.0/20
IP type
Public

How the bits line up

Octets (binary)
IP address11000110001100110111000000000000
Subnet mask11111111111111111111000000000000
Network11000110001100110111000000000000
Broadcast11000110001100110111111111111111

The mask's 20 leading ones select the network portion; the remaining 12 bits are available for hosts.

Keep exploring

See every fact about the /20 subnet mask, plan multiple subnets with the VLSM calculator, or convert ranges on the range-to-CIDR tool.