IP Calculator
Enter CIDR to get network, mask, usable range and host count, plus private/public/CGNAT type detection.
Supports /24 or bare IPv4; bare means /32.
How to use
- Enter IP/CIDR like 192.168.1.0/24 (bare IP counts as /32).
- Read network, broadcast, mask, usable range, host count and type.
- For subnetting: decide subnet or host count first, then derive prefix (4 subnets → /26, 8 → /27).
FAQ
What is CIDR?
CIDR like /24 means the first 24 bits are the network prefix: mask 255.255.255.0, 256 addresses, 254 usable hosts after reserving network and broadcast.
What does it show?
Network address, broadcast, subnet mask, usable range, host count, and address type (private/public/loopback/multicast).
How to split 4 subnets?
Borrow 2 bits from /24 → /26: 4 subnets × 62 hosts each; borrow 3 bits → /27 for 8 subnets.
Why 2 fewer usable hosts?
Each subnet reserves network (all-0) and broadcast (all-1) addresses; /31 and /32 per RFC 3021 reserve none.
Does it support IPv6?
No. This tool is IPv4 only. IPv6 has a different representation.
What are private ranges?
10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, plus 127 loopback, 169.254 link-local, 224+ multicast etc.