CIDR / Subnet Calculator

Calculate network, broadcast, host range and mask from a CIDR block.

Your CIDR input is processed locally in your browser and nothing is uploaded to a server.

Need to convert an IP between formats? Try the IP Converter.

About CIDR / Subnet Calculator

This cidr calculator turns an IPv4 CIDR block like 192.168.1.0/24 into a full subnet breakdown: network address, broadcast address, netmask, wildcard mask, first and last usable host, prefix length, and total and usable host counts. As a subnet calculator it helps network engineers, sysadmins, DevOps, and developers plan IP ranges, size VPC and VLAN subnets, write firewall and routing rules, and double-check ACLs without doing binary math by hand. Just type a block and the results update instantly. It correctly handles edge cases such as /31 point-to-point links and /32 host routes, where the usual minus-two host rule does not apply. Everything is processed locally in your browser, so your network details and your data never leave your device.

Features

How to use the CIDR / Subnet Calculator

  1. Type or paste a CIDR block such as 192.168.1.0/24 into the CIDR block field.
  2. Read the network, broadcast, netmask and wildcard values from the results grid.
  3. Check the first host, last host, total hosts and usable hosts to confirm the range fits your needs.
  4. Adjust the prefix length to compare how different subnet sizes change the host count.

Example

Input

192.168.1.0/24

Output

Network:      192.168.1.0
Broadcast:    192.168.1.255
Netmask:      255.255.255.0
Wildcard:     0.0.0.255
First host:   192.168.1.1
Last host:    192.168.1.254
Prefix:       /24
Total hosts:  256
Usable hosts: 254

A /24 block expanded into its full subnet details.

Common errors & troubleshooting

Frequently asked questions

What is a CIDR calculator and what does it show?
A CIDR calculator expands an IPv4 block into the network and broadcast addresses, netmask, wildcard mask, first and last usable host, prefix length, and both total and usable host counts.
How do I convert a CIDR prefix to a subnet mask?
Enter a block such as 10.0.0.0/20 in the CIDR calculator and it displays the matching netmask (255.255.240.0) and the wildcard mask alongside it.
How are usable hosts calculated for a subnet?
For most blocks usable hosts equal total addresses minus the network and broadcast addresses. For /31 and /32 blocks the CIDR calculator counts every address as usable.
Does this CIDR calculator support IPv6 subnets?
No, this tool handles IPv4 CIDR blocks with prefixes from 0 to 32. For IPv6 work, convert addresses with the IPv6 to IPv4 Converter instead.
Is my IP and network data kept private in the CIDR calculator?
Yes. The CIDR calculator runs entirely in your browser, nothing is uploaded to a server, and your network details never leave your device.

Related tools

All ArrayKit tools