CIDR Subnet Calculator
Type an address with a prefix such as 192.168.1.10/24, an address with a netmask, or an IPv6 block. The tool shows the full range of the subnet at once.
- Type an address with a prefix or mask
- Read the network and host range
- Copy the network if you need it
Your files never leave your device
Reading the results
Type an address followed by a prefix, such as 192.168.1.10/24, an address with a netmask, or an IPv6 block. The tool then shows the network address, broadcast address, first and last host, number of usable hosts, netmask and wildcard mask. Everything is calculated at once, so you can compare different prefixes quickly.
- The network address is the first address of the block and the broadcast address is the last one in IPv4.
- Usable hosts are the addresses you can assign to devices. In IPv4 two addresses are reserved, except for /31 and /32.
- The wildcard mask is the netmask inverted, which is the form used in access lists and some routers.
A worked example
For 192.168.1.10/24 the network is 192.168.1.0, the broadcast is 192.168.1.255, the first host is 192.168.1.1, the last host is 192.168.1.254 and the netmask is 255.255.255.0. That gives 256 addresses, of which 254 are usable, and a wildcard of 0.0.0.255.
Now split the same space with a /26 such as 10.0.0.0/26. Each block has 64 addresses and 62 usable hosts, running from 10.0.0.1 to 10.0.0.62 with 10.0.0.63 as the broadcast. The next /26 starts at 10.0.0.64.
Limits and common mistakes
The calculator follows standard CIDR rules, so it does not know about the addresses your own network has already assigned. A frequent mistake is counting all addresses as hosts: remember to subtract the network and broadcast addresses.
An address that is not the start of its block, like 192.168.1.10/24, is still accepted, and the tool simply shows the block it belongs to. Always check that the prefix matches the size you planned.
Frequently asked questions
What does the number after the slash mean?
It is the prefix length, the number of leading bits that belong to the network. A /24 means 24 network bits, which leaves 8 bits for hosts and gives 256 addresses.
Does it support IPv6?
Yes. For an IPv6 block the tool shows the network, the first and last address and the total number of addresses in the block.
Why are two addresses not usable?
In an IPv4 subnet the first address names the network and the last one is the broadcast address. Neither can be given to a device, so a /24 has 254 usable hosts instead of 256.
Can I enter a netmask instead of a prefix?
Yes. Write the address, a space and the netmask, for example 192.168.1.10 255.255.255.0, and the tool works out the same result as for /24.
What is /31 and /32?
A /31 links exactly two devices and both of its addresses are usable. A /32 is a single host address.
Is anything uploaded?
No. All calculations happen in your browser, on your device, and the addresses you type are not sent anywhere.