SUBNET CALCULATOR

Subnet calculator, CIDR maths, instantly.

Enter an IPv4 address and CIDR prefix to get the network address, broadcast address, host count and subnet mask. Runs locally in your browser.

Input

Presets:

Results

Network address
192.168.1.0
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Usable hosts
254
Total addresses
256
First usable
192.168.1.1
Last usable
192.168.1.254
32-bit address structure
11000000 . 10101000 . 00000001 . 00001010

■ Network prefix bits · ■ Host bits

The entered address is within this subnet’s host range.

Complete CIDR prefix reference

Select any prefix to apply it; all prefixes from /0 through /32 are included.

CIDRSubnet maskUsable hosts
0.0.0.04,294,967,294
128.0.0.02,147,483,646
192.0.0.01,073,741,822
224.0.0.0536,870,910
240.0.0.0268,435,454
248.0.0.0134,217,726
252.0.0.067,108,862
254.0.0.033,554,430
255.0.0.016,777,214
255.128.0.08,388,606
255.192.0.04,194,302
255.224.0.02,097,150
255.240.0.01,048,574
255.248.0.0524,286
255.252.0.0262,142
255.254.0.0131,070
255.255.0.065,534
255.255.128.032,766
255.255.192.016,382
255.255.224.08,190
255.255.240.04,094
255.255.248.02,046
255.255.252.01,022
255.255.254.0510
255.255.255.0254
255.255.255.128126
255.255.255.19262
255.255.255.22430
255.255.255.24014
255.255.255.2486
255.255.255.2522
255.255.255.2542
255.255.255.2551

Split the current network

Enter how many subnets you need. The tool chooses the smallest power-of-two allocation and lists each subnet range.

Most tools process data locally; see this page for details

What can this tool do?

Enter an IPv4 address and prefix separately, or paste a value such as 192.168.1.10/24. Results include network boundaries, subnet and wildcard masks, address counts, usable ranges, and a visual network/host-bit breakdown. The reference covers every prefix from /0 to /32; select one to apply it. You can also split the current network into a requested number of equal-size subnets. Everything runs locally.

FAQ

Why is the usable host count lower than the total?

Ordinary IPv4 subnets usually exclude the network and broadcast addresses. A /31 point-to-point link uses both endpoints under RFC 3021, while a /32 host route contains one address, so neither uses the usual minus-two rule.

What does the number after the slash mean?

It is the network prefix length, i.e. how many leading bits belong to the network. A /24 gives subnet mask 255.255.255.0.

How are usable addresses counted for /31 and /32?

A /31 is commonly used on point-to-point links, where both addresses are endpoints. A /32 is a single-address host route. Neither subtracts network and broadcast addresses as ordinary subnets do.

Why can the allocated subnet count exceed my request?

Equal-size subnets are allocated in powers of two. For example, five requested subnets need capacity for eight. This tool shows only the first five and reports the unused capacity; all subnet boundaries remain CIDR-aligned.

Further reading

觉得好用?Found it useful?