Subnet calculator
Type a block such as 10.0.0.77/24, an address and mask (10.0.0.77 255.255.255.0), a range (10.0.0.3 - 10.0.0.20) or an IPv6 prefix. The gray values are an example.
Example: a host in a home network.
Good to know
- What it reads
10.0.0.77/24, an address and mask (10.0.0.77 255.255.255.0or10.0.0.77/255.255.255.0), a wildcard as in router access lists (10.0.0.77 0.0.0.255), a range (10.0.0.3 - 10.0.0.20, shown as the fewest blocks that cover it) and IPv6 (2001:db8:abcd::/48). A bare address is one address: /32, or /128 for IPv6.- Usable hosts
- In IPv4 the first address names the network and the last is the broadcast, so a /24 has 254 hosts. A /31 is a point-to-point link with 2 usable addresses and no broadcast (RFC 3021); a /32 is one address.
- Host bits
- An address with host bits set, such as
192.168.1.77/24, is read as a host in its network,192.168.1.0/24. - Leading zeros
010.0.0.1is refused: some systems read a leading zero as octal, so it could mean 8.0.0.1. Write10.0.0.1or8.0.0.1.- IPv6
- Addresses are written as RFC 5952 says: lower case, no leading zeros, the longest run of two or more zero groups as
::, and::ffff:192.0.2.1for IPv4-mapped addresses. There is no broadcast; the first address of a subnet is its subnet-router anycast address (RFC 4291). Sizes are exact: a /64 holds 18,446,744,073,709,551,616 addresses. - Special-use blocks
- Private (RFC 1918), carrier-grade NAT, loopback, link-local, documentation, multicast and other reserved blocks are named. Address classes (A, B, C) are not: CIDR replaced them in 1993 (RFC 1519).
- Open from a link
?input=10.0.0.77/24opens the page with that block. Write a space as%20, as in?input=10.0.0.77%20255.255.255.0.