What it does
IPv4 subnetting is bit arithmetic. This tool converts an address and mask to binary, highlights network and host bits, and calculates the network, broadcast and usable range. Bitwise operations on IPv4 addresses make subnet boundaries and masks visible without guessing.
How it works
Enter a CIDR such as 192.0.2.0/24 or an address plus a dotted mask. The tool validates that the mask bits are contiguous.
/31 is treated as a point-to-point pair and /32 as a single host. For other prefixes the usable range excludes the network and broadcast addresses.
An address is a 32-bit number. AND with a mask gives the network address; OR with the inverted mask gives the broadcast address.
When to use it
- Check a subnet calculation by hand.
- Teach network and host bits.
- Debug a firewall or routing rule.
Glossary
- Subnet mask
- A 32-bit mask separating network and host bits.
- Network address
- The first address in a subnet, with host bits zero.
- Broadcast address
- The last address, used to reach every host in the subnet.
Frequently asked questions
Why exclude two addresses?+
The network and broadcast addresses are reserved for prefixes shorter than /31.
Can a mask be non-contiguous?+
Not in standard IPv4 routing; the tool rejects it.
Why is /24 equal to 255.255.255.0?+
A /24 keeps 24 network bits, so the mask has 24 ones followed by 8 zeros.
What is the broadcast address?+
The highest address in the subnet, used to reach all hosts on the local segment.
Can I use bitwise math for IPv6?+
Yes, with 128-bit integers, but the display is hexadecimal rather than dotted decimal.
API & MCP
No API endpoint
This tool runs entirely in your browser. It is not available over the REST API or MCP.
Shareable result
https://100www.dev/tools/ipv4-bitwise?cidr=192.0.2.0%2F24

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


