Subnetting & Classless Inter-Domain Routing (CIDR)

Click a prefix length to highlight the network bits and instantly see the subnet mask and usable host capacity.

Select Network Prefix Length (/CIDR)

Each square represents one of the 32 bits in an IPv4 address. Selecting bit 24 highlights the first 24 bits as network bits (left to right).

Octet 1255
Octet 2255
Octet 3255
Octet 40
Network address192.168.1.0
Hosts254
First host address192.168.1.1
Last host address192.168.1.254
Broadcast address192.168.1.255

Current Selection

Network Bits: 24Host Bits: 8

CIDR prefixes reserve the selected leading bits for network identification; remaining bits define host addresses within the subnet.

CIDRSubnet MaskSubnetsHost BitsUsable Hosts
/24255.255.255.016,777,2168254

CIDR Slider

CIDR Prefix

/24

Subnet Mask

255.255.255.0

Binary Mask

11111111.11111111.11111111.00000000

Usable Hosts

2(32 − 24) − 2 = 254
28 − 2 = 254
256 − 2 = 254
Hosts:254
AddressBinaryIP
Network11000000.10101000.00000001.00000000192.168.1.0
First Host Address11000000.10101000.00000001.00000001192.168.1.1
Last Host Address11000000.10101000.00000001.11111110192.168.1.254
Broadcast11000000.10101000.00000001.11111111192.168.1.255

CIDR Slider

Subnetting Chart

CIDRSubnet MaskSubnetsHost BitsUsable Hosts
/00.0.0.01324,294,967,294
/1128.0.0.02312,147,483,646
/2192.0.0.04301,073,741,822
/3224.0.0.0829536,870,910
/4240.0.0.01628268,435,454
/5248.0.0.03227134,217,726
/6252.0.0.0642667,108,862
/7254.0.0.01282533,554,430
/8255.0.0.02562416,777,214
/9255.128.0.0512238,388,606
/10255.192.0.01,024224,194,302
/11255.224.0.02,048212,097,150
/12255.240.0.04,096201,048,574
/13255.248.0.08,19219524,286
/14255.252.0.016,38418262,142
/15255.254.0.032,76817131,070
/16255.255.0.065,5361665,534
/17255.255.128.0131,0721532,766
/18255.255.192.0262,1441416,382
/19255.255.224.0524,288138,190
/20255.255.240.01,048,576124,094
/21255.255.248.02,097,152112,046
/22255.255.252.04,194,304101,022
/23255.255.254.08,388,6089510
/24255.255.255.016,777,2168254
/25255.255.255.12833,554,4327126
/26255.255.255.19267,108,864662
/27255.255.255.224134,217,728530
/28255.255.255.240268,435,456414
/29255.255.255.248536,870,91236
/30255.255.255.2521,073,741,82422
/31255.255.255.2542,147,483,64810
/32255.255.255.2554,294,967,29600

CIDR Slider