ProxySpace

Subnets · free

CIDR calculator

Everything about an IPv4 block in CIDR notation.

Network
192.168.1.0/24
Address range
192.168.1.0 – 192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Broadcast
192.168.1.255
First – last host
192.168.1.1 – 192.168.1.254
Addresses
256
Usable hosts
254
Type
Private (RFC 1918)

CIDR notation writes a block of addresses as its first address and the number of fixed leading bits: 192.168.1.0/24 fixes the first 24 bits, leaving 8 bits, or 256 addresses. Each step down in prefix length doubles the block.

In a normal subnet the first address is the network address and the last the broadcast address, so a /24 has 254 usable hosts. A /31 is used for point-to-point links with both addresses usable (RFC 3021), and a /32 is a single host.

PrefixMaskAddresses
/8255.0.0.016,777,216
/16255.255.0.065,536
/20255.255.240.04,096
/22255.255.252.01,024
/24255.255.255.0256
/26255.255.255.19264
/28255.255.255.24016
/30255.255.255.2524
/32255.255.255.2551
What is the difference between a subnet mask and a wildcard mask?
They are bitwise opposites. The subnet mask marks the fixed network bits with ones (255.255.255.0 for a /24); the wildcard mask marks the free host bits (0.0.0.255), which is the form Cisco ACLs and OSPF use.
What if my address is not the start of the block?
The calculator shows the block the address falls in. 192.168.1.77/24 is inside 192.168.1.0/24.

More tools