Subnet calculator
Enter an IPv4 address with a prefix (/26) or a mask (255.255.255.192). Everything updates as you type, in your browser; nothing is sent anywhere.
| Network address | 192.168.10.0/26 |
|---|---|
| Broadcast address | 192.168.10.63 |
| Usable host range | 192.168.10.1 – 192.168.10.62 |
| Usable hosts | 62 of 64 addresses |
| Subnet mask | 255.255.255.192 |
| Wildcard mask | 0.0.0.63 |
| Binary mask | 11111111.11111111.11111111.11000000 |
| Binary address | 11000000.10101000.00001010.00100101 |
| Hex / decimal | 0xC0A80A25 · 3232238117 |
| Class · scope | C · Private (RFC 1918) |
| Reverse zone | 10.168.192.in-addr.arpa |
See the mask split the address
A prefix is just a line drawn across the 32 bits of an address: everything left of it identifies the network, everything right of it numbers the hosts. Drag the slider and watch the line move, the host count double or halve, and the network address change.
Top row: the address in binary. Bottom row: the mask. AND them and every host bit becomes 0, giving the network address 192.168.10.0; set every host bit to 1 for the broadcast.
Split 192.168.10.0/26 into smaller subnets
| # | Network | Host range | Broadcast |
|---|---|---|---|
| 1 | 192.168.10.0/28 | 192.168.10.1 – 192.168.10.14 | 192.168.10.15 |
| 2 | 192.168.10.16/28 | 192.168.10.17 – 192.168.10.30 | 192.168.10.31 |
| 3 | 192.168.10.32/28 | 192.168.10.33 – 192.168.10.46 | 192.168.10.47 |
| 4 | 192.168.10.48/28 | 192.168.10.49 – 192.168.10.62 | 192.168.10.63 |
Worked example: 192.168.10.37/26
- /26 means 26 network bits and 6 host bits. The mask is 255.255.255.192 (the last octet is 11000000 = 192).
- Block size in the last octet: 256 − 192 = 64. Blocks start at .0, .64, .128, .192.
- 37 falls in the block starting at 0, so the network is 192.168.10.0 and the broadcast is 192.168.10.63.
- Usable hosts: .1 to .62, which is 26 − 2 = 62 hosts.
The "block size" shortcut (256 minus the interesting octet of the mask) is how most network engineers do this in their heads. For IPv6 prefixes use the IPv6 subnet calculator; to turn an arbitrary range into CIDR blocks use the CIDR calculator.