IP Subnet Calculator
IPv4 CIDR ranges, masks and hosts
Type an IPv4 address and a prefix length between 0 and 32, and every field of the enclosing block is derived by hand: the network address, the dotted netmask, its bitwise inverse the wildcard, the broadcast address, the first and last usable host, the total address count and the usable host count. The address and the mask are also shown as 32-bit binary with a dot after each octet, which is where the arithmetic stops being magic — the network address is the address ANDed with the mask, and the host bits are simply whatever that AND discards. The /31 and /32 cases follow RFC 3021 rather than the older habit of subtracting two: a /31 reports both addresses as usable for a point-to-point link, and a /32 reports a single address. Chips for the common prefixes sit under the inputs.
Enter an IPv4 address and CIDR prefix (or dotted mask) to get the network address, broadcast, usable host range, wildcard mask, total hosts and binary representation.
Private IP Subnet Calculator In Your Browser
IP Subnet Calculator is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use IP Subnet Calculator
Enter the IPv4 address in the first field, for example 192.168.1.10.
Set the prefix length in the CIDR field between 0 and 32, or press one of the /8, /16, /20, /24, /30 or /32 chips.
Read the Network /n panel for the network address, netmask, wildcard mask, broadcast, first host, last host, total addresses and usable hosts.
Compare the two binary rows to see which bits of the address survive the AND and which become host bits.
- /31 and /32 follow RFC 3021 — a /31 reports two usable addresses and a /32 reports one — rather than subtracting two from the total.
- Prefix 0 is supported and yields the whole address space, with a wildcard of 0.0.0.0 and a broadcast of 255.255.255.255.
- The address and the derived mask are both rendered as dotted 32-bit binary, so the AND that produces the network address can be checked by eye.
- Bad input is caught before anything is drawn: a malformed address raises its own error, and a prefix outside 0–32 leaves the result panel empty.
- A network engineer writes an ACL entry and needs the wildcard mask and host range that go with a proposed block.
- A sysadmin splitting 10.0.0.0/8 into departmental /16s checks the broadcast address and usable count before committing the change.
- A student learning binary arithmetic compares the address and netmask rows to see exactly where the host bits get cut off.