IPv4 / CIDR Calculator
Instantly calculate the network, broadcast, mask, wildcard, host range and binary form of an IPv4 address in CIDR notation.
How it works
An IPv4 address is a 32-bit number, written as four decimal octets separated by dots. The mask (or CIDR prefix) separates the network part from the host part: /24 means the first 24 bits identify the network.
For a /24 network, the network address sets all host bits to 0 (192.168.1.0) and the broadcast address sets them all to 1 (192.168.1.255). Neither can be assigned to a machine: that leaves 254 usable hosts. The /31 (point-to-point link) and /32 (single machine) cases are exceptions covered by RFC 3021 and RFC 4632.
Examples
Classic office network
192.168.1.0 network, 254 usable hosts.
| address | 192.168.1.10/24 |
Frequently asked questions
How do you calculate the network address from an IP?
Perform a bitwise AND between the address and the mask. The tool does it automatically and also displays the broadcast address and the usable range.
What is the difference between a network address and a broadcast address?
The network address identifies the network itself (host bits set to 0), while the broadcast reaches every host on the network (host bits set to 1). Neither can be assigned to a device.
How many hosts in a /24?
256 addresses in total, 254 of which are usable (the network and broadcast addresses are removed).
Is my IP public or private?
The tool detects RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback, link-local addresses and reserved ranges.