IPv4 Subnet Calculator

Convert IPv4 CIDR notation.

Network breakout

32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
255.255.255.255
255.255.255.254
255.255.255.252
255.255.255.248
255.255.255.240
255.255.255.224
255.255.255.192
255.255.255.128
255.255.255.0
255.255.254.0
255.255.252.0
255.255.248.0
255.255.240.0
255.255.224.0
255.255.192.0
255.255.128.0
255.255.0.0
255.254.0.0
255.252.0.0
255.248.0.0
255.240.0.0
255.224.0.0
255.192.0.0
255.128.0.0
255.0.0.0
254.0.0.0
252.0.0.0
248.0.0.0
240.0.0.0
224.0.0.0
192.0.0.0
128.0.0.0
1
2
2
6
14
30
62
126
254
510
1022
2046
4094
8190
16382
32766
65534
131070
262142
524286
1048574
2097150
4194302
8388606
16777214
33554430
67108862
134217726
268435454
536870910
1073741822
2147483646
0.0.0.0
0.0.0.1
0.0.0.3
0.0.0.7
0.0.0.15
0.0.0.31
0.0.0.63
0.0.0.127
0.0.0.255
0.0.1.255
0.0.3.255
0.0.7.255
0.0.15.255
0.0.31.255
0.0.63.255
0.0.127.255
0.0.255.255
0.1.255.255
0.3.255.255
0.7.255.255
0.15.255.255
0.31.255.255
0.63.255.255
0.127.255.255
0.255.255.255
1.255.255.255
3.255.255.255
7.255.255.255
15.255.255.255
31.255.255.255
63.255.255.255
127.255.255.255

Classless Inter-Domain Routing (CIDR)

CIDR is a system used for allocating IP addresses and routing IP packets. In short, IP addresses are considered to have two parts: the network address and the host identifier. These parts are represented by the bits in the IP address, and is commonly represented with CIDR notation.

CIDR notation

Standard syntax for writing IP addresses with a routing prefix. It consists of an IP address, a slash, then a number of bits to measure the routing prefix. The bits are applied to the address from left to right. 192.0.2.0/24 is an example of CIDR notation.

Subnet mask

Bit mask that can be used to define the network portion of an IP address.

Wildcard masks

Bit masks used in computer networking. While uses may vary, a common scenario is to specify a range of hosts for access control lists (ACLs). These masks are the inverse of a subnet mask.