Method
Mask the host bits
The prefix keeps the leading network bits. Setting remaining bits to zero gives the network; setting them to one gives the upper boundary.
IPv4 subnet calculator
Turn an IPv4 address and prefix into its network range, usable hosts, masks and binary boundary. Clear handling for /31 links and /32 host routes included.
Runs locally. No address leaves your browser.
Calculated range
The network and broadcast addresses are reserved in a traditional IPv4 subnet.
At high zoom, scroll this panel horizontally to see all 32 bits.
Network bitsHost bits
Method
The prefix keeps the leading network bits. Setting remaining bits to zero gives the network; setting them to one gives the upper boundary.
Edge cases
/31 and /32A point-to-point /31 can use both addresses under RFC 3021. A /32identifies one host route, not a multi-address subnet.
Scope
This first release does not pretend to support IPv6, VLSM or cloud reservations. Those need separate, tested workflows rather than cosmetic switches.