Subnet calculator: IPv4 CIDR, mask and address range

Enter an IP address with a prefix or mask to get the network address, subnet mask, broadcast address, host range and number of hosts.

Network address192.168.1.0/24
Subnet mask255.255.255.0 (/24)
Wildcard mask0.0.0.255
Broadcast address192.168.1.255
Host range192.168.1.1 – 192.168.1.254
Usable hosts254
Total addresses256
Private network (RFC 1918)yes
Address in binary11000000.10101000.00000001.00001010
Mask in binary11111111.11111111.11111111.00000000

How to use

Enter an IP address with a prefix (192.168.1.10/24) or a mask (10.0.0.0 255.255.0.0). You’ll get the network address, subnet mask and wildcard mask, broadcast address, the usable host range and how many hosts it holds.

To divide a network, pick a new prefix under “Split into subnets” — say, a /24 into four /26 subnets — and you’ll get the network, range and broadcast address of each. The address and mask are also shown in binary, so you can see which bits belong to the network and which to hosts.

Example

192.168.1.10/24:

How it works

/24 means the first 24 bits identify the network and the remaining 8 identify the host. That’s 2⁸ = 256 addresses, but the first (network) and last (broadcast) aren’t assigned to hosts, leaving 254. For /31 (point-to-point links, RFC 3021) and /32 (a single address), those two aren’t subtracted.

FAQ

What are private networks? 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918) are used inside home and office networks and aren’t routed on the internet.

What’s a wildcard mask for? Cisco ACLs and OSPF use it: bits set to 1 mean “any value”.

Is IPv6 supported? Not yet — IPv4 only.