IP MANAGE

Free CIDR calculator

CIDR Calculator

Type a CIDR block such as 192.168.1.0/24 to get its subnet mask, wildcard mask, network and broadcast address, usable host range and number of hosts. For /24 that is 255.255.255.0, wildcard 0.0.0.255 and 254 usable hosts.

Calculate a CIDR block

For example 10.0.0.0/16, 10.0.0.0/255.255.0.0, 10.0.0.0 0.0.255.255 or 2001:db8::/48. A host address such as 10.4.2.17/22 shows its network.

Result for 192.168.1.0/24

This is an example result. Type your own block above and press Calculate.

CIDR notation
192.168.1.0/24
Prefix length
/24
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Network address
192.168.1.0
Broadcast address
192.168.1.255
Usable host range
192.168.1.1 – 192.168.1.254
Usable hosts
254
Total addresses
256

Binary view

Address
11000000101010000000000100000000
Subnet mask
11111111111111111111111100000000

Coloured bits are the network part (24 bits); the grey bits are for hosts.

Split into two /25 blocks

CIDRUsable rangeUsable hosts
192.168.1.0/25192.168.1.1 – 192.168.1.126126
192.168.1.128/25192.168.1.129 – 192.168.1.254126

Plan subnets inside 192.168.1.0/24

How CIDR notation works

CIDR writes a network as an address and a prefix length: /24 means the first 24 bits identify the network and the rest identify hosts. The longer the prefix, the smaller the network: a /24 holds 256 addresses, a /25 holds 128, a /26 holds 64.

To get the subnet mask, set the first n bits to 1: a /26 is 26 ones followed by 6 zeros, 11111111.11111111.11111111.11000000, which is 255.255.255.192. The wildcard mask is the same mask with every bit flipped, 0.0.0.63, as used in router access lists and OSPF.

Hosts per subnet: 2(32 − prefix) addresses, minus the network and broadcast address. A /31 keeps both addresses for point-to-point links and a /32 is a single host. Need to split a block? VLSM calculator, or plan subnets by number of devices.

CIDR to subnet mask chart: /16 to /32

CIDRSubnet maskWildcardAddressesUsable hosts
/16255.255.0.00.0.255.25565,53665,534
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011

Built and maintained by Bhavesh Vala. Last reviewed . Every calculation uses the same tested rules as the subnet planner, including /31, /32 and IPv6. About

CIDR Calculator: Subnet Mask, Wildcard and Binary View · IP MANAGE