Binary subnet calculator
Network bits are preserved by mask 1s. Host bits are cleared for the network address and set for the broadcast address.
Each octet is 8 bits. The prefix decides how many bits are network bits before any decimal range is calculated.